Looking for the vulnerability index of Invicti's legacy products?
Version Disclosure (ASP.NET MVC) - Vulnerability Database

Version Disclosure (ASP.NET MVC)

Description

This web application returns an X-AspNetMvc-Version HTTP response header that discloses the specific version of ASP.NET MVC framework in use. This header serves no functional purpose in production environments and provides unnecessary technical information to potential attackers. Version disclosure can aid attackers in identifying known vulnerabilities specific to the detected framework version.

Remediation

Disable the X-AspNetMvc-Version header by setting the DisableMvcResponseHeader property to true in your application's Global.asax file. Add the following code within the Application_Start() method:

protected void Application_Start()
{
    MvcHandler.DisableMvcResponseHeader = true;
    // Other application startup code...
}
After implementing this change, redeploy the application and verify that the X-AspNetMvc-Version header no longer appears in HTTP responses. This configuration change has no impact on application functionality and is recommended for all production environments.

Related Vulnerabilities