Fingerprinting: what is this thing running?
Stage 2 · Lesson 5 · 15 minutes · Requires Lesson 4
The one-line answer
Fingerprinting is working out the exact software and versions behind an application, because knowing the stack tells you which weaknesses to look for.
The boundary: reading the headers and pages a site sends you during normal use is passive. Sending deliberately broken requests to trigger errors is testing — authorised targets only.
Why you should care
"Try every attack on everything" doesn't work — there are too many. If you know an application runs PHP on Apache, or Java on Tomcat, or Node.js with Express, you know which bug classes are likely, which files to look for, and which published vulnerabilities might apply.
It also connects to the blue-team side. When a SOC analyst sees an alert for a new vulnerability in some software, the first question is "do we run that, and which version?" That's fingerprinting your own systems.
How it actually works
Clue 1: response headers
Recall Stage 1 Lesson 4. Many servers announce themselves:
HTTP/1.1 200 OK
Server: Apache/2.4.41 (Ubuntu)
X-Powered-By: PHP/7.4.3That's three facts in two lines: web server (Apache), its version, the OS (Ubuntu) and the language (PHP 7.4.3). Other common giveaways:
| Header | Suggests |
|---|---|
Server: nginx/1.18.0 | nginx web server, version |
Server: Microsoft-IIS/10.0 | Windows server running IIS |
X-Powered-By: Express | Node.js with the Express framework |
X-AspNet-Version: 4.0.30319 | Microsoft ASP.NET |
Server: cloudflare | A CDN in front — the real server is hidden behind it |
Clue 2: cookie names
Frameworks name their session cookies in recognisable ways (recall Stage 1 Lesson 5):
| Cookie name | Usually means |
|---|---|
PHPSESSID | PHP |
JSESSIONID | Java (e.g. Tomcat) |
ASP.NET_SessionId | Microsoft ASP.NET |
connect.sid | Node.js / Express |
laravel_session | PHP Laravel framework |
Clue 3: default error pages and stack traces
Request a page that doesn't exist. A default 404 page often has a distinctive look and sometimes a version line at the bottom. In Lesson 2 you saw that bad input can cause a 500 with a stack trace — a list of the code functions that were running when it crashed. Stack traces can reveal the language, framework, file paths and even library versions.
Clue 4: files, paths and page source
- Paths like
/wp-admin/or/wp-content/→ WordPress. - File extensions:
.php,.aspx,.jsp. - HTML source:
<meta name="generator" content="WordPress 6.4">, framework-specific script names, or comments.
Clue 5: favicon hashing
The small icon in the browser tab (/favicon.ico) is often left as the software's default. Security search engines index favicons by a hash (a fingerprint of the file — recall Stage 0 Lesson 6 on hashing). Matching a favicon's hash to a known value can identify the software — and find other servers on the internet running the same thing. You only need the concept for now.
From version to known weaknesses
Once you have "Apache 2.4.41" or "WordPress 6.4", you check whether that version has known, published vulnerabilities. These are tracked as CVEs (Common Vulnerabilities and Exposures — a public ID like CVE-2021-41773).
Where to look:
- NVD (nvd.nist.gov) — the US national vulnerability database, with severity scores.
- CVE.org — the official CVE list.
- The software vendor's own security advisories.
Two cautions:
- A version banner can be wrong. Linux distributions often patch fixes into old version numbers ("backporting"), and some admins fake banners. Treat it as a lead, not proof.
- Knowing a CVE exists is not permission to exploit it. On an authorised test you report it; you don't run exploit code you found online.
Why this shapes the whole test
| You find | You prioritise |
|---|---|
| Old PHP + MySQL | SQL injection, file upload, path traversal (Stage 3) |
| A JSON-only API | API bugs: BOLA, mass assignment, JWT (Stage 4) |
| WordPress | Plugin versions — most WordPress bugs live in plugins |
| An outdated version with a known CVE | A finding on its own: "unpatched software" |
See it yourself
- With Burp running, browse a Web Security Academy lab. In HTTP history, open several responses and list every header that reveals software.
- Check the cookie names the lab sets. What do they suggest?
- In Repeater, request a path that doesn't exist (e.g.
/does-not-exist). Read the404page. - Use the headers_check.py tool you built in Stage 1 Lesson 7 against the lab URL and compare its output with what you saw in Burp.
- Pick one version string you found (from a lab or Juice Shop) and look it up on NVD. Read one CVE summary — just the description and severity.
How attackers abuse this
Attackers fingerprint at scale: scan many sites, collect version banners, and match them against fresh CVEs. When a serious vulnerability is announced, automated attacks against every site advertising the affected version can start within days — sometimes hours.
The defensive fix:
- Patch. This is the one that actually matters. Hiding a version doesn't fix an old, vulnerable server.
- Suppress version banners: configure the server to send a generic
Serverheader (or none) and removeX-Powered-By. - Use generic error pages in production; log details privately (Lesson 2).
- Change defaults — favicons, default pages, sample apps installed with the software.
- Keep an inventory of what you run and which versions, so you can respond fast when a CVE drops.
Version disclosure on its own is usually reported as a low-severity finding. It becomes serious when the disclosed version is also vulnerable.
Common mistakes
- Trusting a banner as proof. It's a clue. Confirm with other evidence before reporting "vulnerable to CVE-X".
- Missing the CDN.
Server: cloudflaredescribes the CDN, not the application behind it. - Thinking hiding the banner is the fix. It slows attackers slightly; patching stops them.
- Running public exploit code against a target "to confirm". Report the likely issue; don't fire unknown exploits, even on an authorised test, without explicit agreement.
- Not writing it down. The stack you identify drives every later step — record it in your notes.
Check yourself
- A response contains
Set-Cookie: JSESSIONID=.... What does that suggest about the application? - A site shows
Server: Apache/2.4.29. Your colleague says "that version has a CVE, so it's definitely vulnerable." What's the caution? - What's the most important defensive fix for fingerprinting — and why isn't removing the banner enough?
Answers
- It's likely a Java application (e.g. running on Tomcat or a similar Java server).
- The banner might not tell the full story: the vendor or Linux distribution may have backported the fix without changing the version number, or the banner may be faked. Treat it as a lead to verify, not proof.
- Patching. Removing the banner only hides the version; an old, vulnerable server is still vulnerable and can be identified in other ways (error pages, behaviour, favicons).
Your lab
- PortSwigger Information disclosure labs (several involve version and error-message leaks): https://portswigger.net/web-security/information-disclosure
- Run your Stage 1 headers_check.py against a lab and against OWASP Juice Shop on your own machine.
Writeup: the stack you identified, each clue that led you there, and one defensive recommendation.
Summary in your language
தமிழில் சுருக்கம்
Fingerprinting என்பது ஒரு application பின்னால் எந்த software, எந்த version இயங்குகிறது என்று கண்டறிவது. Server, X-Powered-By போன்ற headers, PHPSESSID/JSESSIONID போன்ற cookie பெயர்கள், error pages, stack traces, favicon ஆகியவை தடயங்கள். Version தெரிந்தால் NVD-இல் அதற்கான CVE-களைத் தேடலாம் — ஆனால் banner தவறாக இருக்கலாம், அது ஒரு தடயம் மட்டுமே. மிக முக்கியமான பாதுகாப்பு: patch செய்தல். கூடவே version banners-ஐ மறைத்தல், பொதுவான error pages, default அமைப்புகளை மாற்றுதல்.
हिंदी में सारांश
Fingerprinting का मतलब है पता लगाना कि application के पीछे कौन-सा software और कौन-सा version चल रहा है। Server और X-Powered-By जैसे headers, PHPSESSID/JSESSIONID जैसे cookie नाम, error pages, stack traces और favicon — ये सब सुराग हैं। Version मिलने पर NVD पर उसके CVE देखे जा सकते हैं — पर banner गलत भी हो सकता है, इसलिए वह सिर्फ़ सुराग है। सबसे ज़रूरी बचाव: patching। साथ में version banners छिपाना, साधारण error pages और default settings बदलना।
Want this summary in Malayalam, Telugu, Kannada or another language? Tell us — the most requested languages get added next.
What's next
Stage 2 complete — you can now see, map and identify an application. Time for the bug classes themselves: SQL injection from first principles