Day 19: A Tale of 0-Click Account Takeover and 2FA Bypass
The password reset endpoint accepted an array of email addresses and sent the reset link to every address in it, so an attacker could add a victim's address and receive the reset link themselves. Separately, the login response leaked an API key that granted full account access, letting an attacker with the victim's password skip the second factor.
medium.com
Published on medium.com
This write-up by Firas Fatnassi describes two critical vulnerabilities: a 0-click account takeover via password reset abuse and a 2FA bypass due to API key leakage.
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 endpoint did not validate that the email field was a single address and sent the reset link to every address supplied, while the login response exposed an API key that bypassed the second factor.
Impact
An attacker could take over any account with no user interaction, and with the victim's password could log in without the second factor by using the leaked API key.
What the attacker needed
Attacker knows victim's email; attacker knows victim's password (2FA bug)
The fix
The development team fixed both vulnerabilities.
How it was found
- Request a password reset for the attacker's own address.
- Intercept the reset request and add the victim's email alongside the attacker's.
- The reset email is sent to both addresses.
- Use the received link to reset the victim's password and take over the 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 a password, a site emails you a special link to set a new one. Here the site trusted a list of email addresses instead of just one, so an attacker could ask for a reset and quietly add the victim's address, receiving the victim's link too. In the second bug, the login reply included a secret key that worked like a master password, so anyone who knew the victim's normal password could get in without the extra code.
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.