Version Disclosure (ASP.NET)
Summary#
Invicti identified a version disclosure (ASP.NET) in the target web server's HTTP response.
This information can help an attacker gain a greater understanding of the systems in use and potentially develop further attacks targeted at the specific version of ASP.NET.
Impact#
An attacker might use the disclosed information to harvest specific security vulnerabilities for the version identified.
Remediation#
Apply the following changes to your
web.config
file to prevent information leakage by using custom error pages and removing X-AspNet-Version
from HTTP responses. <System.Web> <httpRuntime enableVersionHeader="false" /> <customErrors mode="On" defaultRedirect="~/error/GeneralError.aspx"> <error statusCode="403" redirect="~/error/Forbidden.aspx" /> <error statusCode="404" redirect="~/error/PageNotFound.aspx" /> <error statusCode="500" redirect="~/error/InternalError.aspx" /> </customErrors> </System.Web>
Classifications#