How a Simple Host Header Injection Took Down the Forgot Password
A host header injection vulnerability in the password reset feature allowed an attacker to send a request with two Host headers, causing the entire forgot password page to become unavailable for all users. The attacker could repeatedly trigger this to keep the feature offline, denying password recovery to everyone.
Sometimes, even a single HTTP header is all it takes to break a feature for everyone.
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 backend or reverse proxy uses the Host header for routing or TLS validation and mishandles multiple Host headers, causing a system-wide failure.
Impact
All users were locked out from using the password reset feature, and the attack could be repeated indefinitely to keep it offline.
What the attacker needed
Ability to intercept and modify HTTP requests; no authentication required
The fix
The report suggests validating Host headers strictly, using a fixed host configuration, and implementing rate-limiting or isolating user-triggered errors.
How it was found
- Go to the password reset page.
- Enter a valid email address and click the Forgot Password button.
- Intercept the request using BurpSuite.
- Add a second Host header manually.
- Forward the request.
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.
A Host header tells a web server which website the browser wants to reach. By adding a second Host header, the attacker confused the server, which then returned an error and somehow made the whole password reset page stop working for everyone. This is a denial-of-service (DoS) attack because it prevents legitimate users from using a service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.