Vulnerability library
Security checkMay 13, 2024

ASP.NET Version Disclosure

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The presence of the X-AspNet-Version and X-AspNetMvc-Version headers exposes the version of ASP.NET used by the web server, providing valuable information to attackers. This disclosure can aid attackers in identifying vulnerabilities and planning their attacks more effectively.

Test for ASP.NET Version Disclosure Vulnerability with SmartScanner

Donwload FREE!

Recommendation

To mitigate this issue:

  • To remove the X-AspNet-Version header, add the following line in your web.config within the <system.web> section:
<httpRuntime enableVersionHeader="false" />
  • To remove the X-AspNetMvc-Version header, add the following line in Global.asax:
MvcHandler.DisableMvcResponseHeader = true;

References

Could your website be exposed too?

SmartScanner can check your website for ASP.NET Version Disclosure and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2024