Bug Bounty: Bypass — Forgot Password Verification
The forgot-password flow revealed which emails were registered through verbose error messages, and the reset token could be reused and reissued repeatedly. An attacker could then brute-force the six-digit OTP by requesting a fresh token for each guess, bypassing the retry lockout and resetting the victim's password.
medium.com
Published on medium.com
The first vulnerability in this login form was — We can enumerate the RIGHT emails due to the extremely verbose error message for the forgot password. Simply enter the email and click forgot password and if the email exists on the platform we will automatically move to the next step.
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 not invalidated after use and could be reissued without limit, while the OTP retry limit was enforced per token rather than per account, so fresh tokens allowed unlimited guesses.
Impact
An attacker could enumerate registered emails and take over accounts by resetting passwords, exposing user data and account privileges.
What the attacker needed
Target email address known; ability to send many requests
How it was found
- Enter an email in the forgot-password form and observe whether the response reveals that the email exists.
- Capture the forgot-password request and note that the response contains a token tied to the email.
- Resend the request to obtain a new token and confirm that old tokens remain valid.
- Generate all six-digit codes and submit each guess with a freshly issued token.
- Use the successful OTP to 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 a password, a site emails you a short code to prove the account is yours. Here the site kept giving out new codes and let old ones be reused, and it did not properly stop someone from guessing the six-digit code many times. That let an attacker try every possible code 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.