Skip to content
Account takeover Write-up Intermediate

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.

hmuhamm3d Follow

Published on medium.com

Hi There! I’m Hassaan Muhammed, a PT @BugSwagger LLC

Hassaan Mohamed, on medium.com

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

  1. Intercept the request to change the email.
  2. Send it to intruder and brute-force the User-ID.
  3. Notice the users IDs and email’s leaked on Render.
  4. Use the same request to change the victim email, and the server will send a confirmation “6-Digits” to the victim email.
  5. Send the request that validate the confirmation code to intruder and brute-force the “6-Digits” number.
  6. 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.

More by hmuhamm3d

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.