Technology Fingerprinting
Before attacking a website or a service you need to know what it’s built with: which server, framework, CMS, libraries and versions, and what sits in front of it (WAF, CDN, proxy). Each answer shapes the attack: a WordPress site is attacked differently from a Spring Boot app, and an exact, outdated version is often the shortest path to exploitation. It’s cheap and fast, so it comes before any fuzzing.
flowchart LR
A["Headers and cookies"] --> D["Stack hypothesis"]
B["HTML, JS and files"] --> D
C["Errors and default paths"] --> D
D --> E["Exact version"]
E --> F["Public exploits and CVEs"]
D --> G["Vectors per architecture"]
What to identify
Section titled “What to identify”- Web server (nginx, Apache, IIS) and its version.
- Language and framework (PHP/Laravel, Python/Django, Node/Express, .NET, Java/Spring). Each one’s full fingerprint is in web architectures.
- CMS (WordPress, Joomla, Drupal) and, above all, its plugins and themes.
- Front end (React, Angular, Vue, Next.js) and JS libraries with versions.
- WAF and CDN in front (Cloudflare, Akamai, Imperva). See WAF evasion.
- Infrastructure: cloud provider, load balancers, reverse proxies.
Where the clues are
Section titled “Where the clues are”Headers
Section titled “Headers”| Header | What it gives away |
|---|---|
Server |
Software and sometimes version (Apache/2.4.49 (Unix), Microsoft-IIS/10.0). |
X-Powered-By |
Language or framework (PHP/8.1.2, Express, ASP.NET, Next.js). |
X-AspNet-Version · X-AspNetMvc-Version |
Exact .NET version. |
X-Generator · X-Drupal-Cache · X-Drupal-Dynamic-Cache |
CMS. |
Via · X-Cache · CF-RAY · X-Amz-Cf-Id |
Proxies and CDNs (Cloudflare, CloudFront…). |
CSP, HSTS, X-Frame-Options, X-Content-Type-Options |
Not the technology, but the team’s security maturity. |
Session cookie name
Section titled “Session cookie name”| Cookie | Likely technology |
|---|---|
PHPSESSID |
PHP (WordPress, custom apps) |
laravel_session · XSRF-TOKEN |
Laravel |
JSESSIONID |
Java (Tomcat, Spring, WebLogic) |
ASP.NET_SessionId · .AspNetCore.* |
ASP.NET / ASP.NET Core |
csrftoken + sessionid |
Django |
connect.sid |
Express (express-session) |
_<app>_session |
Ruby on Rails |
Files that talk
Section titled “Files that talk”| File | What it reveals |
|---|---|
robots.txt · sitemap.xml |
Paths they don’t want indexed (panels, APIs, environments). |
/.well-known/ |
Standard metadata: security.txt, OpenID configuration (openid-configuration), JWT public keys. |
README, CHANGELOG, readme.html, license.txt |
Exact product version (WordPress exposes readme.html). |
<meta name="generator"> |
CMS and version. |
Static assets with ?ver=x.y.z |
WordPress plugin and theme versions. |
| Comments in HTML and JS | Internal paths, developer names, TODOs. |
Errors and default paths
Section titled “Errors and default paths”Default error pages are the most reliable fingerprint: Tomcat’s 404 page, Spring Boot’s “Whitelabel Error Page”, Django’s yellow debug page, the Werkzeug traceback or IIS’s error page. Request a non-existent path, a parameter of the wrong type or a disallowed method, and see what comes back. Note the input that triggered the error: it’s often the vector.
Favicon
Section titled “Favicon”The favicon hash identifies products even when banners are hidden, and lets you find all the infrastructure using the same icon, sometimes including the origin IP behind a CDN (see Shodan):
# Shodan-style hash (mmh3 over the base64 favicon with line breaks)python3 -c "import mmh3,base64,requests; print(mmh3.hash(base64.encodebytes(requests.get('https://target/favicon.ico').content)))"# then, in Shodan: http.favicon.hash:<value>whatweb -a 3 https://target # -a 3: more aggressive, more clueshttpx -l hosts.txt -td -title -sc -server # inventory: tech, title, status, serverwafw00f https://target # is there a WAF in front?nuclei -t http/technologies/ -u https://target # template-based detectionWappalyzer (extension or CLI) gives a visual summary of the stack as you browse.
Manual checks with curl:
curl -sI https://target # Server, X-Powered-By, Set-Cookiecurl -s https://target | grep -iE 'generator|wp-content|_next|__NEXT_DATA__|csrf'curl -s https://target/robots.txt; curl -s https://target/sitemap.xmlcurl -si https://target/does-not-exist-$(date +%s) | head -40 # default error page (GET: headers and body)CMS scanners
Section titled “CMS scanners”| CMS | Scanner | Example |
|---|---|---|
| WordPress | wpscan | wpscan --url https://target --enumerate vp,vt,u |
| Drupal | droopescan | droopescan scan drupal -u https://target |
| Joomla | joomscan | joomscan -u https://target |
In a CMS, the core version matters less than the plugins’: that’s where almost all vulnerabilities show up.
From version to exploit
Section titled “From version to exploit”The real goal of fingerprinting is an exact version to cross-check against vulnerability databases.
- Pin down the version. “Apache 2.4” is useless; “Apache 2.4.49” isn’t. Cross-check several sources (header,
CHANGELOG, static files), because the banner can be faked or removed. - Search Exploit-DB (offline with
searchsploit), NVD and GitHub Advisories. - Read the exploit before running it: what it does, which parameters it expects, whether it’s Python 2 or 3, which paths it assumes.
- Adapt it: it almost never works as is (paths, port,
LHOST, headers, Python version). Adapting it is part of the job.
searchsploit apache 2.4.49 # searchsearchsploit -x 50383 # read it without copyingsearchsploit -m 50383 # copy it to the current directory to adapt itCommon mistakes
Section titled “Common mistakes”- Trusting the banner blindly:
Servercan be faked or removed. - Mistaking the CDN for the real stack (you see
cloudflareand not the origin technology). - Settling for the framework version and ignoring plugins and libraries, which are usually the weak spot.
- Not repeating the fingerprint per subdomain, port and vhost: each may run a different stack.
- Running a public exploit without reading it.
Defensive note
Section titled “Defensive note”Shrink the footprint: hide or normalise version headers (Server, X-Powered-By, X-AspNet-Version), remove the meta generator and readme/CHANGELOG files from the webroot, customise error pages, disable debug mode and, above all, keep everything updated so the leaked version isn’t vulnerable. Fingerprinting can’t be fully prevented, but it can be made more expensive.
Testing checklist
Section titled “Testing checklist”- HTTP headers (Server, X-Powered-By, session cookies, CDN).
- Clues in HTML/JS (generator, paths,
?ver=, comments). -
robots.txt,sitemap.xml,/.well-known/,README/CHANGELOG. - Default error page triggered and noted.
- whatweb / httpx / Wappalyzer on every host, port and vhost.
- CMS, plugins and themes identified (wpscan, droopescan, joomscan).
- WAF/CDN identified (wafw00f).
- Exact version cross-checked and matched to exploits, read before running.