0-Click ATO Due to Weak Reset Password Tokens and Lack of Rate Limiting
The password reset token was generated using a weak algorithm with a predictable structure, allowing an attacker to brute-force it. By sending over 8,000 requests, the attacker could reset the password of a target account without any interaction from the victim.
Published on h0tak88r.medium.com
In our latest cybersecurity research, we discovered a significant vulnerability in the password reset functionality of a well-known corporation’s private bug bounty program on HackerOne. The flaw lies in the reset password token generation, which uses a weak algorithm making it susceptible to brute-force attacks.
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 reset token was generated with insufficient randomness and a fixed prefix, making it guessable through brute force.
Impact
An attacker could reset the password of any target account without user interaction, leading to account takeover.
What the attacker needed
Knowledge of target account email; ability to send many requests
How it was found
- Request a password reset for a target account and observe the token structure.
- Capture the password reset request and identify the token parameter.
- Set the first three digits to 001 and fuzz the remaining characters to generate many token combinations.
- Send over 8,000 requests to brute-force the token and reset the target account's 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 write-up has not been written yet. The Original tab links to the source.
When you forget your password, a website sends a special link or code to your email to prove it's you. This code should be long and random so nobody can guess it. Here, the code was short and predictable, so an attacker could try many guesses quickly 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.