Skip to content
Account takeover Write-up Beginner

How a Single Click Led to a Critical Account Takeover

A password reset token remained valid after being used once, allowing an attacker who obtained the reset link to reuse it to set a new password and be automatically logged into the victim's account. The attacker could silently access the account without the victim's knowledge.

medium.com

Published on medium.com

Last Thursday, I was scrolling through Bugcrowd looking for something fresh to test. A public program caught my eye—a company I’ll just call “ExampleCorp.” Their main site was example.com, and their scope included app.example.com and api.example.com.

Milan Gautam, 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 password reset token was not invalidated after first use, allowing reuse.

What the attacker needed

Attacker obtains victim's reset email; victim requested password reset

How it was found

  1. Sign up for a trial account on the target application.
  2. Request a password reset and receive the reset link via email.
  3. Click the reset link, set a new password, and log in.
  4. Click the same reset link again; the reset form appears again with the email pre-filled.
  5. Open a private browsing window, paste the same link, and confirm the form loads again.
  6. Submit a new password using the reused link and observe automatic login to the account.

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. That link should only work once. Here, the link kept working, so anyone who saw the email could use it again to take over the 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.