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
Find website security issues in a flash
Improve your website's security posture with proactive vulnerability detection.
Free website security assessment