Acunetix 360 detected that Elmah.axd / Errorlog.axd is accessible remotely, and Elmah has been used for error logging.

This vulnerability can cause highly sensitive data leaks on current sessions.


Elmah is a powerful tool that helps developers debug and resolve problems in their applications. However, it is configured improperly on target website, and that allows attackers to gain information about requests and responses to the application. An attacker can obtain 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.


Apply the following changes in your web.config file to disable remote access to the Elmah.axd error log:
     <security allowRemoteAccess="no"/>
You can also use ASP.NET's own authorization mechanism to protect your Elmah.axd error log from attackers. The following configuration makes your Elmah.axd error log viewable by only authorized Administrators:
  <location path="elmah.axd">
        <allow roles="Administrators"/>
        <deny users="*"/>
For errorlog.axd you can change the path to errorlog.axd.




PCI v3.2-6.5.6 CAPEC-347 CWE-16 HIPAA-164.306(a) 164.308(a) ISO27001-A.18.1.3 WASC-15 OWASP 2013-A5 OWASP 2017-A6 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:H/RL:O/RC:C