Skip to content
Account takeover Write-up Beginner

Password Reset Poisoning With Host Header Injection

A password reset request on a video streaming site built the reset link from the X-Forwarded-Host header, so an attacker could make the emailed link point at their own domain. The attacker could then capture the reset token when the victim clicked it, leading to account takeover.

Bharat Singh Follow

Published on infosecwriteups.com

Hey folks, I am Bharat Singh a Security researcher and Bug Hunter. I am here with an amazing writeup about Password Reset Poisoning with Host Header Injection Vulnerability which I recently found on a VDP and got rewarded with a HOF.

Bharat Singh, on infosecwriteups.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 trusted the client-supplied X-Forwarded-Host header when generating the absolute URL for the password reset link.

Impact

An attacker could send the victim a reset link pointing at a malicious site, leaking the reset token and leading to full account takeover, or deliver malware via the link.

What the attacker needed

A victim with an account; victim clicks the poisoned reset link; attacker can intercept their own request

How it was found

  1. Go to the reset password page and enter the email address for the reset link.
  2. Intercept the request in a proxy and send it to the repeater.
  3. Add an X-Forwarded-Host header below the Host header with another host.
  4. Check whether the received reset email contains a link pointing at the injected host.

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 forget a password, the site emails you a special link containing a secret code. This site built that link using a value the sender controls (a header saying which host was used), so a tamperer could make the link point to their own website. If the victim clicks it, the secret code goes to the attacker, who can then reset the victim's password.

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 Bharat Singh

View all

5 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.