[Account Take Over] through reset password token leaked in response, 2500 € Reward
The password reset endpoint returned the victim's reset token, user ID, and other sensitive data in the HTTP response. An attacker could use the leaked token and ID to reset any user's password and take over their account without any interaction from the victim.
infosecwriteups.com
Published on infosecwriteups.com
No routine, that’s what I appreciate in bug bounty. You could start your hunt, and within just five minutes, stumble upon a critical flaw, like spending 10 hours without finding anything ;) It’s this unpredictability that keeps the thrill alive.
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
The password reset API endpoint included the reset token and other sensitive user data in its response instead of only sending the token via email.
Impact
An attacker could take over any user's account without any action from the victim, gaining full access to personal information and account functionality.
What the attacker needed
Know victim's email address; no victim interaction needed
The fix
The issue was fixed by the IT team within hours after the report.
How it was found
- Send a password reset request for the victim's email to the forgot_password endpoint.
- Extract the reset password token and user ID from the response.
- Construct the password reset URL with the token and ID.
- Open the URL in a browser and set a new password for the victim.
- Log in to the victim's 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 sends a special link to your email to reset it. This link contains a secret code. The website made a mistake: it also sent that secret code back in the response to the password reset request, so anyone who asked to reset your password could see the code and use it to change your password. That let an attacker take over any 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.