Rule from http under security category
Passmarked is made out of users just like you who helped supply some content. Click below to contribute to this rule. We need you.Add content to this rule
When using ASP.net the framework injects the current version that is running as a header in your response. This gives clients quite a overview of what version of ASP.NET the server might be running, which allows malicious users to quite easily search for security vulnerabilities affecting the serving version of ASP.NET.
It is recommended to disable this header to prevent any leaking of potential information that could aid a attacker.
In your your
web.config file on the root of your app add the following:
<system.web> <httpRuntime enableVersionHeader="false" /> </system.web>
To disable the versioning from ASP.NET MVC, add to the following to
MvcHandler.DisableMvcResponseHeader = true;
Passmarked works best when you have an account. It allows you to keep a dashboard with saved data of the sites you have run through the system, we’ll alert you about important updates and you get access to the Passmarked Slack forum.Sign up to get started