Config & design
Host Header Attacks
Applications and intermediaries often trust the Host header, or related headers such as X-Forwarded-Host, to build absolute URLs, route requests, select virtual hosts and make cache keys. When the value is attacker-controlled, the result can be password-reset poisoning, web cache poisoning, routing to internal virtual hosts, SSRF through reverse proxies, and authentication or access-control bypass.
- 79 payloads
- 1 file
- README on GitHub
Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.
These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.
Payload files
Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.
host-header-payloads.txt
79 payloads · 4.7 KBLoading payloads for Host Header Attacks…
Common Attack Vectors#
- Password reset and email-verification links built from the request host
- Absolute URLs in redirects, canonical tags,
<base>elements and generated scripts - Duplicate or overridden host headers (
Host,X-Forwarded-Host,X-Host,Forwarded) - Absolute-form request lines that disagree with the
Hostheader - Virtual-host routing to admin, staging or internal applications
- Reverse proxies that forward the request line to an upstream chosen from the host
- Host-based cache keys and CORS or CSRF origin checks
Testing Approach#
Use a host you control (an OAST domain) so any outbound link or DNS/HTTP interaction is attributable. Change one header at a time and diff the response and any email sent to a test account. For reset poisoning, trigger the reset for your own account and inspect the link in the delivered email, not just the HTTP response. Test duplicate headers, absolute-URL request lines and port or path suffixes on the host. For routing issues, enumerate virtual hosts with candidates from certificates and DNS. Keep cache tests on a unique cache key or a fixture you own.
References#
Responsible Use
All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.
- Systems and applications you own
- Authorized penetration testing engagements
- Bug bounty programs with defined scope
- Educational lab environments (DVWA, WebGoat, HackTheBox)