Skip to content
Account takeover Write-up Intermediate

0-Click ATO Via reset password weird scenario

The password reset token was validated only for its own validity, not for the email address it was issued to. An attacker could request a reset for their own account, swap the email parameter to the victim's address, and set a new password, taking over the victim's account.

mos693570 Follow

Published on medium.com

The original lives on medium.com

We do not hold its text, 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 take over any account by resetting its password, without any action from the victim.

What the attacker needed

Attacker has an account with an email address; victim's email address is known; no action from the victim

The fix

The reset token should be stored server-side and tied to the email it was issued for, and the server must check that the token matches the email before allowing a password change.

How it was found

  1. Request a password reset link for the victim's email address.
  2. Request a password reset link for the attacker's own email address.
  3. Open the reset link received in the attacker's email.
  4. Change the email parameter in the URL to the victim's email address.
  5. Set a new password and confirm the update succeeds.
  6. Log in with the victim's email and the new 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 with a secret code (a token) to prove it's you. This site put your email address in that link too, but only checked that the code was real, not that it matched the email. So an attacker could use their own real code but change the email to someone else's, and the site would let them set a new password for that person.

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 mos693570

View all

1 more disclosed report, 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.