Skip to content
Account takeover Write-up Beginner

Welcome to our first article on this account!

A password reset link remains valid after the user changes their email address. An attacker who obtained the old link could still reset the password and access the account even after the victim changes their email.

Dorking1 Follow

Published on medium.com

Welcome to our first article on this account! In this article, we will address a critical vulnerability where a password reset link does not expire after an email change.

d0rking, 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 is not invalidated when the account's email address changes.

Impact

An attacker with the old reset link could gain unauthorised access to the account and maintain control even after the victim changes their email to secure it.

What the attacker needed

Attacker has the old reset link; victim changes email after link issued

How it was found

  1. Request a password reset link for the current email address.
  2. Copy the reset link from the email and save it without using it.
  3. Log in and change the account email to a new one, completing verification.
  4. Open the saved old reset link in the browser.
  5. Reset the password successfully using the old link.

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 or after some time. Here, the link kept working even after the user changed their email address, so anyone who had the old link could still 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.

More by Dorking1

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.