How a Late Night Hunting Turned Into a Critical ‘Email-Only’
The password reset endpoint accepted a client-supplied email parameter alongside a valid reset token, but did not check that the token belonged to that email. An attacker could change any user's password by supplying the victim's email with their own valid token.
Today I want to share a critical password reset vulnerability I found in a private VDP program
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 by resetting its password, with no user interaction required.
What the attacker needed
Knowledge of victim's email address; a valid reset token from own account; no user interaction
The fix
The reset flow should bind each token to the specific user or email it was issued for and reject mismatches; the report says it is now fixed.
How it was found
- Create two accounts, one as the victim and one as the attacker.
- Start the forgot-password flow and observe that the reset request includes both a token and an email parameter.
- Change the email parameter in the reset request to the victim's email address.
- Submit the request; the victim's password is changed.
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 secret link or code (a token) to prove it's you. This site also let the browser say which email address the reset was for, and it never checked that the token and the email matched. So someone could use their own valid token but type in someone else's email address, and the site would reset that person's 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.