Skip to content
Account takeover Disclosed report Beginner

Full account takeover of any user through reset password

The password reset endpoint accepted an array of email addresses, and when two addresses were supplied, both received the same reset token. An attacker could therefore obtain a valid reset token for any victim's account and take it over without any interaction from the victim.

Saajan Bhujel Follow

Originally disclosed on HackerOne

Critical 9.1 View original
  • Disclosed after 18 days

Summary:

Hi Security team members,

Usually, If we reset our password on https://app.upchieve.org that time we got a password reset link on the email. And through that password reset link, we can reset our password.

But, I noticed that if we add another email in the request of forgot password through Burpsuite then both person will get the same password reset token in their email. So, an attacker can takeover any account without the user's interaction.

Steps To Reproduce:

  1. Navigate to: https://app.upchieve.org/resetpassword

  2. Then, enter the victim's email address

  3. Intercept this request

  4. Now, add your email also in the JSON body. like this:

{"email":["[email protected]","[email protected]"]}
  1. Forward this request

  2. Now victim and you will receive the same password reset link

sameEmail.png
sameEmail.png From the original on HackerOne
  1. By using that link which you just received in your email

  2. You can fully takeover the victim's account by reset password.

##POC:

tko.mp4 From the original on HackerOne

Impact

  1. It is a critical issue because an attacker can change any user's password without any user interaction.
  2. This attack does not require any interaction from the victim to perform any actions and yet the account can be taken over by the attacker.
  3. An attacker can fully takeover any user's account

The original report as published on HackerOne, by saajanbhujel. 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

Root cause

Likely the password reset handler accepted an array of email addresses instead of a single address and generated one shared reset token for all of them.

Impact

An attacker could take over any user's account by resetting their password, with no action needed from the victim.

What the attacker needed

Ability to intercept HTTP requests; knowledge of the victim's email address

How it was found

  1. Go to the password reset page.
  2. Enter the victim's email address.
  3. Intercept the reset request.
  4. Add the attacker's email to the JSON body alongside the victim's.
  5. Forward the request.
  6. Both addresses receive the same reset link, which the attacker uses to set a 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 report has not been written yet. The Original tab links to the source.

When you forget a password, a website emails you a special link that lets you set a new one. This site's reset form could be tricked into sending that same link to two people at once: the real owner and the attacker. The attacker then uses the link to change the victim's password and 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 Saajan Bhujel

View all

3 more disclosed reports, best first.

More from UPchieve

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.