Skip to content
Account takeover Write-up Beginner

How I Discovered Ato Through Insecure Email Verification Flow Led To Medium Bounty

A password reset link generated for an old email address remained valid after the user changed their email to a new address, allowing an attacker to change the password of the new email account. The attacker could take over the account by using the old reset link.

JEETPAL Follow

Published on infosecwriteups.com

Today I will tell you how I discover account takeover though insecure email verification.

JEETPAL, on infosecwriteups.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 when the email address was changed, so it remained valid for the new email.

What the attacker needed

Access to the old email address; a user account

How it was found

  1. Create an account and verify it.
  2. Request a password reset link on the old email address.
  3. Change the email to a new address and verify it.
  4. Use the old reset link to change the password for the new email.

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 change your email address on a website, the old password reset link should stop working. Here, it still worked, so someone with access to the old email could reset the password of the new email account and take it over.

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 JEETPAL

View all

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