Skip to content
Account takeover Disclosed report Beginner

[Critical] Possibility to takeover any user account #2 without interaction on the https://██████████

The password reset endpoint accepted an empty token, so the random protection value in the reset link could simply be omitted. Because the user identifier in the link was numeric and incremental, an attacker who knew a victim's email could reset that account's password and take it over.

sp1d3rs Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 6 days
  • Fixed in 24 days
  • Disclosed after 5 months

##Description Hello. This time I discovered a way to tekeover any user's account via unsafe password reset. This time it's much easier than #1 way in the #543678 report. When users requests the password reset, the next link is come to the email:

https://█████/resetpassword.aspx?ru=[user_id]&op=[token]

The [user_id] is numeric, always same for same emaill, and incremental for every new user. The [token] parameter is random and used to protect the link from hijacking. But, I discovered that Reset password endpoint accepts empty token!

So all the attacker needs, it's to initiate password reset for the victim's email, and request the

https://██████████/resetpassword.aspx?ru=[user_id]&op=

Since [user_id] is numeric and static for same account, it can be easily guessed by the attacker.

##POC

  1. Go to the https://█████/ForgotPassword.aspx
  2. Initiate reset password for the ██████ (it's my test account)
  3. Use this link:
https://███/resetpassword.aspx?ru=7655&op=

where 7655 - it's my user numeric ID (as we know, it's incremental, and be easily guessed for other accounts). ██████████ 4) Set the new password and confirm it. You can set something as 111111111aA!!!! to pass the password requirements. 5) You will be logged into my organization as admin.

##Suggested fix Fix the op tooken validation - it should be checked properly.

Impact

Severity: Critical Immediate account Individual/Cprporate account takeover via password reset. Attacker needs to know only email.

The original report as published on HackerOne, by sp1d3rs. 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 reset endpoint validated the token only when one was supplied, treating an empty value as valid, and relied on a guessable sequential user identifier to identify the account.

Impact

An attacker who knows only a victim's email could take over that individual or corporate account, including admin access, with no interaction from the victim.

What the attacker needed

Victim's email address known; no victim interaction needed

How it was found

  1. Open the forgot-password page.
  2. Start a password reset for the target email address.
  3. Load the reset link with the victim's numeric user identifier and an empty token.
  4. Set and confirm a new password that meets the requirements.
  5. The attacker is then logged in as the victim, here as an organisation admin.

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 site emails you a link containing a secret code so only you can set a new one. Here the site never checked that the code was present, so anyone could leave it blank and still reset the password. The link also contained a simple counting number for each user, which is easy to guess.

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 sp1d3rs

View all

62 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.