0-Click Account Takeover Through a Simple Password Reset Paramete
The password reset page trusted an email parameter in the URL without checking that the reset token belonged to that email. An attacker could use a token from their own account to reset any other user's password without the victim's involvement.
Published on g0w6y.medium.com
When it comes to security testing, the password reset flow is one of those places where developers cannot afford to make mistakes. A single weak point can open the door to critical Bugs
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 whose email address they know, with no action needed from the victim; the token's ten-minute expiry and single use did not prevent this.
What the attacker needed
A valid reset token from own account; victim's email address known; no victim interaction
How it was found
- Request a password reset for your own email and receive the link.
- Request a second reset for the same email to get a fresh token.
- Open the link and replace the email parameter with another account's email, keeping the token.
- The page loads and allows setting a new password for the other account.
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 emails you a special link with a secret code (a token) so you can set a new one. This site also put your email address in that link and believed whatever email was written there. So a tester could take their own valid link, swap in someone else's email address, and set a new password for that person'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.