How a YouTube Video Led Me to $650: My Host Header Injection Adve
A subdomain intended for internal users reflected an attacker-supplied Host header, returning a 200 OK response. The author reported this as a blind host header injection, and the program later accepted it and paid a bounty.
Let’s rewind to a few weeks ago. I stumbled upon a fascinating video on YouTube discussing Host Header Injection Vulnerabilities.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted the client-supplied Host header and used it without validation, so a request with an arbitrary host was still processed.
Impact
The text only shows that the server accepted an arbitrary Host header; it does not demonstrate password reset poisoning or any concrete account takeover, and the program initially treated host header injection as out of scope.
What the attacker needed
Access to the internal subdomain; ability to modify the Host header
How it was found
- Scan subdomains with a host header injection scanner.
- Pick an internal-only subdomain and manually look for login pages.
- Replace the Host header value with an attacker-controlled domain.
- Observe that the server responds with 200 OK.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you visit a website, your browser sends a 'Host' header telling the server which site you want. If the server trusts whatever host is written there and uses it in links or responses, an attacker can make it point to their own site. Here the author changed that header and the server still answered normally, which suggested the value was being accepted.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.