Home » Vulnerabilities Knowledge Base » Error Page Disclosure
Any web application displays an error page to let the users know that something went wrong. Improper configuration of such error page would lead to unintentional exposure of sensitive information like file path, stack trace, server information.
Use any proxy tool like Burp Suite to intercept and inspect HTTP requests and responses. Analyze the error page intercepted by proxy to check for presence of server version information in response headers or body.
Using tool like OWASP ZAP to scan the web application for vulnerabilities including server version disclosure.
Some error pages may include default templates disclosed by the web server software which could disclose web server information.
<configuration>
<system.webServer>
<httpErrors existingResponse="PassThrough" />
</system.webServer>
</configuration>
<filter>
<filter-name>RemoveServerHeaderFilter</filter-name>
<filter-class>org.apache.catalina.filters.SetAllHeadersFilter</filter-class>
<init-param>
<param-name>setServer</param-name>
<param-value>false</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>RemoveServerHeaderFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
server="", serverInfo="", xpoweredBy="false" attributes in this element.<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
server=""
serverInfo=""
xpoweredBy="false" />
<error-page>
<error-code>500</error-code>
<location>/errors/500.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/errors/404.html</location>
</error-page>
Content Sniffing
Certain browsers, try to determine the content type and encoding of the response even when these properties are defined correctly...
Content Sniffing
Certain browsers, try to determine the content type and encoding of the response even when these properties are defined correctly...
Content Sniffing
Certain browsers, try to determine the content type and encoding of the response even when these properties are defined correctly...
Content Sniffing
Certain browsers, try to determine the content type and encoding of the response even when these properties are defined correctly...