0-Click Mass Account Takeover via Password Reset Functionality
The password reset endpoint returned different error responses for valid versus invalid verification codes, letting an attacker distinguish them. By fuzzing the code and submitting a valid one, an attacker could reset another user's password without any interaction from the victim.
.بِسْ� اللَّه الرَّحْ� ن الرَّحِي� . . اللَّه� َّ صَلِّ وَسلَّ� وبارك على نَبِينَا � ُح� َّدHello Hunters , Welcome to my first write-up in bug bounty!
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 password reset endpoint used distinguishable error responses (400 for unknown code, 401 for valid code with failed reCAPTCHA) instead of a single generic failure, and the verification code was short and guessable.
Impact
An attacker could take over any account by resetting its password without user interaction, potentially compromising a large number of users.
What the attacker needed
Ability to send reset-password requests; guessable or fuzzable verification code; recaptchaToken set to true
How it was found
- Request a password reset for an account and receive a reset link containing a verification code.
- Replace the code in the link with random values and observe the server response.
- Capture the reset-password API request and fuzz the verificationCode field.
- Set recaptchaToken to true and note that invalid codes return 400 while valid codes return 401.
- Use the distinguishable responses to find a valid code for the target account.
- Submit the reset request with the valid code to change the target'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 site emails you a link with a secret code. This site's server replied with one error for a wrong code and a different error for a right code, so an attacker could try many codes and tell which ones were real. With a real code, they could set a new password on someone else's 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.