Skip to content
Account takeover Write-up Intermediate

Password Reset Poisoning leading to Account Takeover

The password reset request accepted an extra Host header pointing at an attacker-controlled domain, so the reset email sent to the victim contained a link to that domain. When the victim opened the link, the reset token was leaked to the attacker, who could then change the password and take over the account.

Swapnil Maurya Follow

Published on medium.com

As mentioned in my previous blog here is my another blog on Account Takeover which is unique from the previous one.

Swapmaurya, 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

Root cause

Likely the application built the password reset link from the request's Host header without validating it against an allowlist, so an injected Host header redirected the link to an attacker domain.

Impact

An attacker could take over a victim's account, but the attack required the victim to click the poisoned reset link, which is why it was rated P2.

What the attacker needed

Victim clicks the reset link; attacker-controlled domain

How it was found

  1. Request a password reset for the victim account and capture the request.
  2. Add a second Host header pointing at an attacker-controlled domain and forward the request.
  3. The victim receives a reset link that points at the attacker domain.
  4. The victim visits the link and the reset token is leaked to the attacker server.
  5. The attacker uses the leaked token to change the victim's password.

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, a site emails you a special link with a secret code inside it. This site built that link using a value the sender can choose, so the attacker made the link point at their own server. The victim clicked it, the secret code arrived at the attacker, and the attacker used it to set a new 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 Swapnil Maurya

View all

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