Account Takeover Via Password Reset Functionality
The password reset flow validated the reset code only on the client side, so an attacker could bypass the code check by editing the server response and then set a new password for any account. This allowed full account takeover of a victim's account.
Published on addictivehackers.blogspot.com
The original lives on addictivehackers.blogspot.com
We do not hold its text, 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 by resetting its password without knowing the emailed code.
What the attacker needed
Victim's email address; ability to edit HTTP responses
The fix
The reset code should be validated on the server before the password change is accepted, and the client should not decide whether the code was correct.
How it was found
- Request a password reset for the victim's email address.
- Submit an incorrect reset code and observe the error response.
- Submit a correct code and note the response contains a script that reveals the new-password form.
- Edit the response body to include the identifier from the first request and show the new-password form.
- Set a new password and log in with it.
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 code and asks you to type it in. Here the site's server sent back a page that only hid the code box using JavaScript, and the real check happened in the browser, not on the server. By changing that page in their browser tools, the attacker skipped the code check and set a new password.
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.