Server Version Disclosure
The Server and X-Powered-By headers disclose the server software and version, helping attackers target known vulnerabilities.
What is Server Version Disclosure?
Web servers often include a "Server" header (e.g., "nginx/1.24.0") and "X-Powered-By" header (e.g., "PHP/8.2.1") in responses. While not directly exploitable, this information helps attackers identify which vulnerabilities to try. Security through obscurity is not a primary defense, but reducing information disclosure makes automated attacks slightly harder.
Why It Matters to Your Business
Low direct impact, but version disclosure helps attackers target known vulnerabilities in your specific server/PHP version. Combined with other findings, it can make attacks more efficient.
How to Fix It
Hide server version information:
Nginx (nginx.conf):
server_tokens off;
Apache (apache2.conf):
ServerTokens Prod
ServerSignature Off
PHP (php.ini):
expose_php = Off
Express.js:
app.disable('x-powered-by');
ASP.NET (web.config):
<system.web>
<httpRuntime enableVersionHeader="false" />
</system.web>
Technical Classification
| OWASP Category | A05:2021 — Security Misconfiguration |
| CWE ID | CWE-200: Exposure of Sensitive Information |
| Detected By | redirect_signature, headers scanner(s) |
| Severity Level | low |
How 2MNY Security Can Help
Check if your website has this vulnerability
Our redirect_signature, headers scanner checks for this issue automatically.
Scan My Website FreeRelated Vulnerabilities
Exposed .git Directory
The .git directory is publicly accessible, allowing attackers to download your entire source code repository.
Directory Listing Enabled on Web Server
The web server lists directory contents to anyone, exposing unlinked files such as backups, archives and internal documents.
Exposed .env File (Config Disclosure)
The .env file is downloadable from the web, leaking database passwords, API keys and application secrets to anyone who asks.
Exposed Backup Files (.bak, .sql, .zip)
Backup archives and .sql dumps left inside the web root can be downloaded by anyone — including your entire database.