Skip to content
Account takeover Write-up Beginner

Forgot password link doesn’t expire after used.

The password reset link remained valid after being used once, allowing it to be reused multiple times. An attacker who obtains the link could reset the victim's password again, even after the legitimate user has changed it, leading to account takeover.

edahmed008 Follow

Published on medium.com

In this write-up, I’ll share how I discovered a replayable password reset token vulnerability,which allowed reusing the same reset link multiple times — potentially leading to account takeover.

Ahmed Mahmoud, 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 did not revoke or invalidate the password reset token after its first successful use.

Impact

An attacker who obtains the reset link could take over the account and reuse the token multiple times, even after the legitimate user changes their password.

What the attacker needed

Attacker obtains the reset link; victim has requested a password reset

How it was found

  1. Request a password reset for an existing account from the 'Forgot password' page.
  2. Open the reset link received in the email.
  3. Set a new password successfully.
  4. Reuse the same reset link in a new browser or private tab.
  5. Observe that the link still allows setting a new password, and repeat to confirm it remains valid.

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 set a new one. Normally that link should stop working after you use it once. Here, the link kept working, so anyone who later found that same link could use it to change your password again and take over your 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.

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.