[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.
- 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
- Go to the https://█████/ForgotPassword.aspx
- Initiate reset password for the
██████(it's my test account) - 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.
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
- Open the forgot-password page.
- Start a password reset for the target email address.
- Load the reset link with the victim's numeric user identifier and an empty token.
- Set and confirm a new password that meets the requirements.
- 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.