Server Software Version Disclosure
HTTP response headers or default pages name the web server, framework or language and their versions, which helps an attacker select known exploits.
| Severity | Informational |
| CVSS 3.1 | 0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N Open in the calculator |
| CVSS 4.0 | 0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N Open in the calculator |
| CWE | CWE-497: Exposure of Sensitive System Information to an Unauthorized Control Sphere |
| OWASP Top 10 | A01:2025 Broken Access Control |
| MITRE ATT&CK | T1592.002 Software |
| Category | Information Disclosure |
Description
The server identifies the software that handles requests, and often its exact version, in HTTP response headers and default content. Common sources are the Server header, for example naming Apache httpd, nginx or IIS with a version number and operating system; X-Powered-By, for example naming PHP or ASP.NET; X-AspNet-Version and X-AspNetMvc-Version; generator meta tags added by content management systems; and the signature line on default error pages.
The disclosure has no direct impact, but it saves an attacker some reconnaissance effort: a precise version can be compared with published vulnerabilities, and automated tools can target the server with exploits for the identified version, so it matters more if the software is not kept up to date. A version is not proof that the software is vulnerable, however: operating system vendors often backport security fixes without changing the version string, so a version that appears outdated should be confirmed against the vendor's patch information before a missing patch is reported. Where the disclosed version is confirmed to be outdated or unsupported, that should be reported as a separate finding.
The information is collected passively from ordinary responses and is reported by almost every scanner. Removing the banner is a hardening measure that reduces the information freely available, not a substitute for patching, and it does not prevent fingerprinting, as software can usually be identified from its behaviour, default pages and response formats.
Remediation
Remove or minimise identifying headers and banners on every server and proxy in the request path:
- nginx: set
server_tokens off;to remove the version from theServerheader and error pages, and useproxy_hide_headerorfastcgi_hide_headerto dropX-Powered-Byfrom upstream responses. - Apache httpd: set
ServerTokens ProdandServerSignature Offin the main server configuration. - IIS and ASP.NET: remove
X-Powered-ByundercustomHeaders, setenableVersionHeader="false"onhttpRuntime, setMvcHandler.DisableMvcResponseHeader = truefor ASP.NET MVC and, on IIS versions that support it, setremoveServerHeader="true"onrequestFiltering. - PHP: set
expose_php = Offinphp.ini. - Remove generator meta tags and version strings from page templates, and replace default error pages with custom ones.
The nginx and Apache settings still name the product, without its version. Confirm the change by inspecting the headers of normal pages, error pages and static files.
References
Add This Finding to Your Library
In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.
Free trialYour trial starts when your portal goes live, not when you sign up, so the time you spend setting up does not count. · No card required
Only need the reporting? Our reporting tool is free and open source, with the same library.