Guides · ← All guides
Server Version Banners: Why Your Headers Point Attackers to the Right Exploit
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 7 min read
Run a free BreachHunter assessment on your site →
Version disclosure feels harmless because the information is small. Its power is in what it indexes: the entire public vulnerability record for that exact build, filtered and ready. The assessment's own example in the winner guide is a banner reading Apache/2.4.49 — a pointer, as the guide notes, to the specific path-traversal flaw catalogued as CVE-2021-41773 that affected precisely that version.
This guide explains how banners leak (headers, error pages, service greetings), how the scanner's EOL matcher turns a banner into a HIGH finding, and the two-part response: suppress the gratuitous disclosure where you can, and upgrade the software whose age is the real finding — because hiding a version you still run is cosmetics, and the probe traffic knows it.
Where banners leak, and what the scanner does with them
Three sources: HTTP response headers (Server, X-Powered-By), service greetings grabbed during the port phase (SSH, FTP, mail and database banners announce themselves to anyone who connects), and error pages, where frameworks print versions in stack traces. The recon phase gathers all of them into the report's evidence, and the EOL module regex-matches each against known end-of-life patterns — PHP 7.4 and older, Apache 2.2, OpenSSH vintages and their peers.
The distinction the report draws matters. A current version in a banner is a minor disclosure note: annoying, low-grade, worth suppressing when convenient. An end-of-life version is HIGH, because the sentence changes from “attackers know what you run” to “what you run is unpatched by definition and its exploits are public”. That is the entire content of the end-of-life problem; the banner is how the world finds out.
Suppressing banners: worth it, and not sufficient
Suppression is cheap and standard: server_tokens off in nginx, ServerTokens Prod in Apache, expose_php off for X-Powered-By, generic error pages at the framework. Do it — it raises the attacker's cost from reading to probing, and it removes the version from logs, caches and search-indexed error pages. But be clear-eyed about its limit: version fingerprinting survives suppression. Behavior, header ordering, error shapes and file hashes identify most stacks anyway.
Which is why the honest fix ordering is upgrade first, suppress second. A suppressed banner on supported software is good hygiene. A suppressed banner on end-of-life software is a secret only from yourself — scanners, including this one before suppression, record versions from multiple signals, and exploit kits fingerprint rather than ask. The report's EOL finding closes on the upgrade; the banner note closes on suppression. Confusing the two leaves the HIGH in place behind a quieter header.
Worked example: foundrycoffee.example
Foundry Coffee Roasters' wholesale portal announced itself on every response, and the recon phase's EOL matcher needed exactly one line of it:
Server: Apache/2.4.49 (Unix) X-Powered-By: PHP/7.4.3 -> EOL match: PHP 7.4 (end of life Nov 2022) — HIGH (-8) -> Banner note: Apache 2.4.49 == the CVE-2021-41773 build
The roaster's developer recognized 2.4.49 immediately — the path-traversal build — and the “cute header finding” became a maintenance sprint: Apache and PHP upgraded to supported branches, then server_tokens and expose_php switched off so the stack stopped introducing itself. Retest showed no version disclosure and no EOL match. The portal's report went from a HIGH that anyone could verify with curl to a clean recon section.
The five actions to take
Quieting your stack the right way round:
- Collect your own banners first: response headers on main pages, error-page output, and the greetings on any public ports.
- Upgrade any end-of-life software the banners reveal — this is the finding; everything else is presentation.
- Suppress version output: server_tokens/ServerTokens, expose_php off, generic error pages.
- Check the quiet places too: mail headers, FTP/SSH greetings you cannot change are a reason to scope those ports, per the open-ports guide.
- Re-scan and confirm the report shows neither a version banner nor an EOL match.
Run a free BreachHunter assessment on your site →
Frequently asked questions
Is hiding the version just security through obscurity?
Partly — and obscurity is a legitimate layer when it is not the only layer. Suppression forces attackers to fingerprint behaviorally, which is slower and noisier. It fails as a strategy only when it substitutes for patching, which is the confusion this guide exists to prevent.
The banner shows our framework, not a version. Still a finding?
A product name alone is minor disclosure. The scanner's EOL logic keys on version-bearing banners; the general recon note records what is advertised. Suppress when convenient, but a name without a version is not the HIGH.
Why did the report flag PHP 7.4 specifically?
Because it is end-of-life: support ended in November 2022, so every vulnerability found in it since is permanently unpatched. The EOL table the scanner matches against is a list of exactly such versions across common stacks.
Can a CDN or WAF strip these headers for us?
Often yes — header modification at the edge is a normal CDN feature and a reasonable way to standardize across origins. Keep the origin quiet too where you can: direct-to-origin requests bypass edge rules, and the scan may be pointed at either.
Do banners matter for non-web services?
Yes — the SSH, FTP and database greetings grabbed in the port phase are banners too, and they are a strong argument for scoping those ports to known sources. A version you cannot suppress is a version you should not publish to the whole internet.
The banners you cannot suppress
Some banners refuse to be hidden: a managed host that pins its own Server header, a mail server whose greeting is compiled in, an old appliance with no setting at all. When suppression is genuinely off the table, the banner stops being the problem and becomes the reminder — that version is public information, so it has to be a version you would happily defend.
That means two compensating habits. Patch on the vendor's cadence, not yours, because attackers match banners to exploits the day patches ship. And scope the service: a database or SSH banner that only answers your office and your monitoring is a much smaller confession than one that greets the whole internet.
Sources
The references this guide stands on — standards, specifications and official documentation:
- Apache httpd 2.4 — core directives (2024) — ServerTokens and ServerSignature, the banner controls.
- CWE-200 (2024) — exposure of sensitive information to an unauthorized actor.