--- name: web-fingerprinting description: > Identify web server type/version, framework, and application entry points via banner grabbing, HTTP header analysis (Server, X-Powered-By, X-Generator), cookie names (CAKEPHP, laravel_session, wp-settings), HTML meta generators, robots.txt, source map files (.map), JS hardcoded secrets, and Google dorking (site:, inurl:, filetype:, intitle:) with tools Nikto, WhatWeb, Wappalyzer, Nmap, Shodan, Burp Suite, OWASP ZAP, Waybackurls. license: MIT compatibility: Designed for Claude Code. Requires curl, nikto, nmap, or Burp Suite. metadata: category: web version: "0.1" source: https://owasp.org/www-project-web-security-testing-guide/stable/ source_types: framework wstg: WSTG-INFO-01, WSTG-INFO-02, WSTG-INFO-05, WSTG-INFO-06, WSTG-INFO-08 --- # Web Fingerprinting and Information Gathering ## What Is Broken and Why Web applications leak technology stack details through HTTP response headers, HTML comments, cookie names, error messages, and static file paths. Search engines and archives may index sensitive configuration files, credentials, and internal network diagrams. Collectively this intelligence narrows an attacker's target surface dramatically before any active exploitation begins, enabling precise selection of known CVEs for the identified stack. ## Key Signals - `Server:` header reveals product and version (e.g., `Apache/2.4.41`, `nginx/1.17.3`) - `X-Powered-By:` or `X-Generator:` headers expose backend language/framework - Framework-specific cookies: `CAKEPHP`, `laravel_session`, `wp-settings`, `fe_typo_user` - HTML `` tags (WordPress, Joomla, Drupal) - Accessible paths: `/wp-admin/`, `/wp-content/`, `/wp-includes/` - HTML comments embedding SQL queries, credentials, or internal IPs - JS files with hardcoded API keys, DB connection strings, AWS credentials - `.map` source map files exposing full source trees and internal file paths - `robots.txt` Disallow entries revealing hidden paths - Error responses leaking stack traces, framework names, file paths - `__VIEWSTATE` in forms = ASP.NET; `