Skip to content
Account takeover Write-up Beginner

I Found Host Header Injection & Got a Quick $1,000 Bounty! (Full

The web application used the unvalidated Host header when constructing password reset links, so an attacker could inject a malicious domain and poison the reset email. This could allow account takeover, phishing, and cache poisoning.

theindiannetwork Follow

Published on theindiannetwork.medium.com

During a recent bug bounty hunt, I discovered a Host Header Injection vulnerability that led to account takeover, password reset poisoning, and phishing attacks. Within hours of reporting, I received a $1,000 bounty! 💰🔥

TheIndianNetwork, on theindiannetwork.medium.com

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 application used the Host header to generate absolute URLs in password reset emails without validating it against an allowlist.

Impact

An attacker could poison password reset links to hijack accounts, conduct phishing, and perform web cache poisoning.

What the attacker needed

Victim initiates password reset; attacker can send crafted requests

How it was found

  1. Send a request to the login page to check if the server handles the Host header dynamically.
  2. Modify the request to include a fake Host header pointing to an attacker-controlled domain.
  3. Initiate a password reset on a test account and observe the reset email.
  4. Confirm that the reset link in the email uses the attacker-controlled domain.

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 request a password reset, the website often builds a link using the domain name you typed in your browser. If the site trusts that domain without checking it, an attacker can send a request with a fake domain and make the reset email point to their own site. Then the victim clicks the attacker's link, and the attacker can steal the reset token and take over the account.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by theindiannetwork

View all

23 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.