Skip to content

HeaderHawk v2.0.0

Choose a tag to compare

@kabiri-labs kabiri-labs released this 30 Jul 17:13
· 77 commits to main since this release
3533731

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 just Host), so it was renamed to HeaderHawk.
The old python host_header_scanner.py entry 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, across Host and 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-IP values plus X-Original-URL / X-Rewrite-URL against 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: 0 clean, 1 findings, 2 scan 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