Skip to content
Account takeover Write-up Intermediate

Account Take-over Via Password Reset Poisoning

The password reset request included a user-controlled 'server' parameter that was used to build the reset link, so an attacker could replace it with their own domain and receive the victim's reset token. If the victim clicked the poisoned link, the attacker could then reset the victim's password.

umd04843 Follow

Published on medium.com

Hey everyone! Hope y’all are doing great.

Mohamed Usman, 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 trusted a user-supplied 'server' parameter when constructing the password reset URL instead of using a fixed, trusted base URL.

Impact

An attacker could take over a victim's account if the victim clicks the poisoned reset link, because the attacker would receive the reset token.

What the attacker needed

Victim clicks a link; attacker can send a reset request for victim

The fix

The 'server' parameter should be whitelisted to allow only trusted URLs, or the reset link should be built internally without user-controlled input.

How it was found

  1. Request a password reset and observe the request contains a 'server' parameter holding a URL.
  2. Replace the 'server' parameter value with a Burp Collaborator URL.
  3. Send the request and confirm the reset link now points to the Collaborator domain.
  4. When the victim clicks the poisoned link, the reset token is sent to the attacker's Collaborator server.
  5. Use the captured token to craft a URL that resets 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 your password, a website emails you a special link that lets you set a new one. This site let the person requesting the reset choose part of that link, so an attacker could make the link point to their own server and steal the secret code inside it. With that code, the attacker could change 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.