Reset Password Token Lead To Account Takeover
The password reset request on a subdomain returned the reset token in the response body's _token parameter. Anyone who knew a user's email address could obtain the token and use it to reset that user's password, taking over the account.
Published on infosecwriteups.com
This is my first article about the vulnerability that I found in the private responsible disclosure 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
Root cause
Likely the reset form response embedded the generated reset token in the page instead of only sending it by email.
Impact
An attacker who knows a victim's email address could reset that user's password and take over the account.
What the attacker needed
Know the victim's email address
How it was found
- Open the forgot password page on the subdomain
- Submit a request using a test email address and capture it
- Observe the reset token returned in the _token parameter
- Use the token in the reset URL to confirm it works
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 site usually emails you a secret link to set a new one. Here the site also put that secret token directly in the page response, so anyone who typed a victim's email into the reset form could read the token and set a new password for that person.
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.