In-depth lesson · Host header injection
Bypasses and variations
Every point the Host header injection reports back under this heading, best-backed first, each with the reports it is seen in.
-
Add a second Host header to the reset request.
-
Put your own domain at the start of the Host header followed by the real domain, then append a colon and the real domain again.
Seen in 1 report
-
Add a trailing full stop to the Host header to get past validation.
Seen in 1 report
-
Use an IDN homograph of the target domain in X-Forwarded-Host.
Seen in 1 report
-
Use a value containing localhost in X-Forwarded-Host to satisfy a substring check.
Seen in 1 report
-
Use the target domain as a prefix of your own domain to get a 200 response.
Seen in 1 report
-
Use a question mark in the Host header to bypass a subdomain check.
Seen in 1 report
-
Use a crafted host value that still matches a regex lacking an end anchor.
Seen in 1 report
-
Add line wrapping to a duplicated Host header to turn a 400 into a 200.
Seen in 1 report
-
Access the origin server directly to bypass the CDN's host header protection.
Seen in 1 report
-
Find the origin IP with a certificate search and send the poisoned request there.
Seen in 1 report
-
Use a Host header trick to get past WAF rules on a recovery flow.
-
Change the Host header to a beta subdomain to skip the 2FA check.
Seen in 1 report
-
Spoof X-Forwarded-For with varying addresses to get past IP-based rate limiting.
Seen in 1 report
-
Remove the redirect URL parameter so the generated code becomes a weak six-digit number.
Seen in 1 report
-
Send many reset requests so many valid codes exist at once because old codes are not discarded.
Seen in 1 report
-
Chain an internal open redirect into the reset link to send the secret code to your host.
Seen in 1 report
-
Inject encoded newline characters into the email field to add a BCC address.
Seen in 1 report
-
Rely on the admin dashboard fetching assets from the poisoned domain to leak the token.
Seen in 1 report
-
After the host fix, inject your own path segment into the emailed login link.
Seen in 1 report