Unleashing Chaos: The Tale of the 0-Click Account Takeover
The change-email feature accepted a user ID and new email without proper authorisation, and the confirmation code sent to the victim's email could be brute-forced because there was no rate limit. An attacker could enumerate user IDs and emails, then change any victim's email to their own, leading to account takeover.
Hi There! I’m Hassaan Muhammed, a PT @BugSwagger LLC
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 change-email endpoint lacked proper authorisation checks and rate limiting on the confirmation code, allowing user enumeration and brute-force.
Impact
An attacker could take over any user account by changing the victim's email to their own, without any interaction from the victim.
What the attacker needed
No authentication needed; victim has a known user ID
How it was found
- Intercept the request to change the email.
- Send it to intruder and brute-force the User-ID.
- Notice the users IDs and email’s leaked on Render.
- Use the same request to change the victim email, and the server will send a confirmation “6-Digits” to the victim email.
- Send the request that validate the confirmation code to intruder and brute-force the “6-Digits” number.
- Account Take-Over.
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.
This website let anyone change another person's email address just by knowing their user ID, which was a simple five-digit number. It also sent a six-digit code to the real owner's email, but you could guess that code as many times as you wanted. By guessing the code, an attacker could 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.