Support Article
Application level Information leakage prevention
SA-72496
Summary
An attacker can collect information about a Web Server, the Version, Frameworks, Development Methodology, or any data related to the infrastructure of an application and use it for Targeted Research, Vulnerability, exploit development against known components, or Social Engineering style attacks against application owners. The information collected increases the likelihood of compromise when publicly disclosed vulnerabilities are released.
The below HTTP response headers disclose information about the application and the version of use on the application URL:
- X-Generator: Drupal 8
- X-Varnish: xxx
- Via: 1.1 varnish (Varnish/5.2)
For example, Server: Apache/2.4.34 (Unix) OpenSSL/1.0.1e-fips mod_jk/1.2.42
Error Messages
Not Applicable
Steps to Reproduce
Check the Raw Request header of the application URL.
Root Cause
Security Vulnerability was observed with Apache Server Version Disclosure.
Resolution
Perform the following local-change to hide the Apache Server Version:
- Navigate to the $Web_Server/conf folder.
- Use the vi Editor to modify httpd.conf.
- Add the below directives,
- ServerTokens Prod
- ServerSignature Off
- Save the httpd.conf.
- Restart Apache.
ServerTokens change the Header to Production only (that is, Apache).
Published March 27, 2020 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.