Skip to content
Account takeover Write-up Beginner

How I Hacked an Account Using Reset Password Poisoning

The password reset function trusted the X-Forwarded-Host header, so an attacker could make the reset link point to a domain they control. If a victim clicked the poisoned link, the attacker could steal the reset token and take over the account.

medium.com

Published on medium.com

Hi everyone, it’s Nicole Franz Dizon. I have a report, which is "Reset Password Poisoning via Host Header."

Nicole Franz Dizon, on 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

Impact

An attacker could steal a password reset token and take over a victim's account if the victim clicked the poisoned link.

What the attacker needed

Victim clicks the poisoned reset link; attacker can intercept requests

How it was found

  1. Go to the password reset page.
  2. Intercept the reset request in Burp and send the email.
  3. Add an X-Forwarded-Host header pointing to an attacker-controlled domain and forward the request.
  4. Check the received email and observe that the reset URL points to the attacker's 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 forget your password, a website emails you a special link to reset it. This site built that link using a value the attacker could change, so the link pointed to the attacker's website instead. If the victim clicked it, the attacker could see the secret code in the link and use it to 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.

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.