Let Me Takeover Your Account
The password reset endpoint accepted an email parameter that could be changed to another user's address, so an attacker could reset a victim's password and take over the account. The author confirmed this by resetting a second account's password and logging in with it.
Published on systemweakness.com
Hello everyone ! Welcome back again to my medium post, its been a while… i miss all of my fellow bug hunter, or security enthusiast reader :D
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 password reset handler trusted a client-supplied email parameter instead of binding the reset token to the account that requested it.
Impact
An attacker could reset another user's password and log in as them, taking over the account.
What the attacker needed
Attacker has an account; attacker knows victim's email; intercepting proxy
How it was found
- Request a password reset for your own account and open the reset link.
- Turn on interception before submitting the new password.
- In the intercepted request, change the email parameter to the victim's email address.
- Submit the request and observe a redirect indicating success.
- Log in to the victim account with the new password.
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 sends a reset link and then asks you to set a new one. Here the request that sets the new password also contained the email address of the account, and the server trusted whatever email was sent instead of tying the reset to the account that requested it. That meant anyone could put in someone else's email and set 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.