elmah.axd Disclosure

By
Manieendar Mohan
Published on
20 Dec 2021
Vulnerability

Description

Elmah is an application-wide error logging facility that is completely pluggable.This vulnerability can cause highly sensitive data leaks on current sessions. It is a powerful tool that helps developers debug and resolve problems in their applications.it is configured improperly on target websites, and that allows attackers to gain information about requests and responses to the application. Information such as:

  • Session cookies

  • Session state

  • Query string and post variables

  • Physical path of the requested file

This means that the attacker can hijack any active user’s session by using their session details.

Recommendation

Apply the changes in web.config file to disable remote access to the Elmah.axd error log.

Also uses ASP.NET’s own authorization mechanism to protect Elmah.axd error log from attackers. It makes the Elmah.axd error log viewable by only authorized Administrators.

Automated human-like penetration testing for your web apps & APIs
Teams using Beagle Security are set up in minutes, embrace release-based CI/CD security testing and save up to 65% with timely remediation of vulnerabilities. Sign up for a free account to see what it can do for you.

Written by
Manieendar Mohan
Manieendar Mohan
Cyber Security Lead Engineer
Experience the Beagle Security platform
Unlock one full penetration test and all Advanced plan features free for 10 days
Find surface-level website security issues in under a minute
Free website security assessment
Experience the power of automated penetration testing & contextual reporting.