Skip to content
Account takeover Disclosed report Intermediate

Password Reset Bug

A password reset link generated for an account remained valid after the account's email address was changed and the password was reset. An attacker who obtained such a link could use it to take over the account even after the legitimate owner changed the email and password.

christypriory Follow

Originally disclosed on HackerOne

Bounty$100 View original
  • Fixed in 3 months
  • Paid in 3 months
  • Disclosed after 5 months

Possible account takeover using the forgot password link even after the email address and password changed.

Steps to Reproduce

Create an account in hackerone E.g [email protected] After account verification logout from the account Reset the password for [email protected] where we get the password reset link but do not use this link.

Now login again and change the email from [email protected] to [email protected] .

A verification email will be sent to teena. After successful verification we can logout.

Now this hackerone.com account belongs to [email protected] and now teena can change the password.

But at this point ( after password change ) all the password reset links generated before should no longer be valid but in hackerone its still valid

Now we can try using the forgot password reset link which we have kept in [email protected] and see if we can take over the account.

The original report as published on HackerOne, by christypriory. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker who possesses a previously issued password reset link could take over the account even after the legitimate owner has changed the email address and password.

What the attacker needed

Attacker has a previously issued reset link; victim changes email and password

The fix

Password reset links should be invalidated when the email address or password is changed.

How it was found

  1. Create an account and verify it, then log out.
  2. Request a password reset link for the account but do not use it.
  3. Log in again and change the account's email address to a new one.
  4. Verify the new email address and log out.
  5. Change the password for the account (now owned by the new email).
  6. Use the old password reset link to attempt account takeover.

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 report 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 once you've used it or changed your email or password. Here, the link kept working even after the account's email and password were changed, so anyone who still had the old link could get back into 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 from HackerOne

View all

The newest disclosed reports for this program.

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.