Repository navigation
HeaderHawk v2.0.0
HeaderHawk is an evidence-driven scanner for HTTP request-header vulnerabilities.
This is the first tagged release. The project was previously named
HostHeaderScanner; it now covers the whole family of routing, identity and
caching headers (not justHost), so it was renamed to HeaderHawk.
The oldpython host_header_scanner.pyentry point still works via a thin
compatibility shim.
Detection coverage
- Host header injection — unique per-request marker reflected in the body,
Location, or any response header, acrossHostand 15+ routing headers. - Host validation bypass — duplicate
Host, absolute-URI request lines and
line-folded headers sent with a purpose-built raw HTTP/1.1 client. - Confirmed web cache poisoning — cache-buster planted through an unkeyed
header, then a clean re-request proves the poisoned response is served. - Access-control bypass — internal
Host/X-Forwarded-For/X-Real-IP/
True-Client-IPvalues plusX-Original-URL/X-Rewrite-URLagainst 401/403. - SSRF via routing headers and blind (out-of-band) SSRF — weighted scoring
plus per-scan correlation ids confirmed by polling your listener. - Open redirect, URL-parameter SSRF, and confirmed virtual-host discovery.
Reporting & CI
- Severity-rated findings (High / Medium / Low).
- Reports in JSON, Markdown or SARIF 2.1.0 (chosen by output extension).
- CI-friendly exit codes:
0clean,1findings,2scan could not run. - Batch scanning with
--list, WAF-friendly--rate, and proxy-aware traffic.
Install
git clone https://github.com/kabiri-labs/HeaderHawk.git
cd HeaderHawk
pip install -r requirements.txt
python headerhawk.py http://example.com