0 Click — Account Takeover | Bug Bounty
The forgot-password endpoint accepted an array of email addresses instead of a single string, and the server generated one OTP for the second address but sent a copy to the first. An attacker could therefore receive the victim's reset OTP and take over any account without the victim clicking anything.
I was searching bug bounty programs on Linkedin! 🫨 Yes you heard it right, we can find latest bug bounty programs on Linkedin that are self hosted. [Research Yourself]
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 server did not validate that the email field was a single string, so when given an array it generated the OTP for one entry and delivered it to another.
Impact
An attacker could take over any account that uses this reset flow without any action from the victim, though the author notes the array behaviour may differ on other servers.
What the attacker needed
Victim has an account on the site; attacker knows the victim's email address; no victim interaction needed
How it was found
- Find the forgot-password endpoint that emails an OTP for password reset.
- Send the reset request with the email field as an array containing the attacker's address first and the victim's address second.
- Receive the OTP that was generated for the victim's address in the attacker's inbox.
- Use the OTP on the reset page to set a new password for 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 a password, a site emails you a one-time code (OTP) to prove the account is yours. Here the site's password-reset form could be tricked by sending two email addresses at once, so the code meant for the victim was also emailed to the attacker. The attacker then used that code to set a new password and take over the 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.