Behind the Screen: The Forgotten Password Feature That Almost Failed Us
The password reset feature accepted a request where the reset token was set to null and the email was changed to the victim's address, allowing the attacker to reset the victim's password. The attacker could then log in with the victim's email and a new password, taking over any account.
Published on medium.com
The application at example.com contains a vulnerability that allows for an account takeover (ATO) without any user interaction. By intercepting and modifying the reset password request, an attacker can change the resetpasswordtoken value to null and substitute the victim’s email, thereby initiating a password reset…
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
Impact
An attacker could take over any account without any user interaction.
What the attacker needed
Knowledge of victim's email address; ability to intercept HTTP requests
How it was found
- Initiate a password reset using the legitimate email address linked to the target account.
- Intercept the subsequent password reset request.
- Modify the value of the reset_password_token to null and substitute the victim’s email address.
- Submit the altered request to the server.
- Log in using the victim’s email address and the new 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 prove it's you. Here, the attacker could trick the website into accepting a request with no code at all and someone else's email, so the website reset the victim's password. The attacker then logged in as the victim.
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.