How I got Zero-Click Account Takeover (ATO) through Forgot Passwo
The password reset endpoint accepted an email address in the request body that did not match the email tied to the reset token, allowing an attacker to set a new password for any account whose email they knew. This enabled full account takeover without any interaction from the victim.
Published on keroayman77.medium.com
During exploring the functions of the website, I went to test the Forgot Password function after making 2 accounts on the website
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
Full account takeover of any user account whose email address is known, without needing access to the victim's email or session.
What the attacker needed
Knowledge of victim's email address; a valid reset token for any account
How it was found
- Create two accounts on the website.
- Use the forgot password function for the first account and receive the reset link.
- Open the reset link, enter a new password, and intercept the request.
- Change the EmailAddress parameter to the second account's email and forward the request.
- Log in to the second account with the new password to confirm takeover.
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 that lets you set a new password. This report found that the website did not check that the email in the reset request matched the email the link was sent to, so an attacker could change the email to someone else's and set a new password for that person's account. That means the attacker could take over any account if they knew the email address.
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.