Skip to content
Account takeover Write-up Beginner

The Ghost Email Heist — Stealing Accounts from the Future

The email change feature accepted any email address and sent a six-digit OTP with no rate limiting or cooldown, so an attacker could brute-force the code and link an email they did not own to their own account. Because the email did not need to exist yet, an attacker could pre-register addresses before their real owners signed up, potentially blocking those users or impersonating them.

shxsu1 Follow

Published on medium.com

It started like any other night. I was digging through the usual targets, scrolling through settings, tweaking requests, and trying to find that one thing everyone else missed.

shxsu1, 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 email change flow sent a six-digit OTP to the new address but did not rate-limit or lock out repeated guesses, and it did not verify that the requester owned the address before linking it.

Impact

An attacker could link an email address they do not own to their account, potentially pre-registering addresses before the real owners sign up, blocking those users from registering, or impersonating trusted addresses; the report notes the vendor rated it Informative, saying the victim may never register.

What the attacker needed

A Professional/Educator account; ability to send requests to the email change endpoint

The fix

The email change flow should rate-limit and lock out repeated OTP attempts and verify ownership of the address before linking it; the text does not say it was fixed.

How it was found

  1. Open the Change Email option in a Professional/Educator account.
  2. Enter an email address that does not belong to you.
  3. Receive a six-digit OTP sent to that address.
  4. Submit random codes repeatedly with a brute-force script until the correct one is guessed.
  5. The email address becomes linked to your 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 change your email address on a website, the site usually sends a short code to the new address to prove you own it. Here the site let someone try as many codes as they wanted, so a script could guess the right one quickly. The attacker could then attach an email address that belonged to someone else to their own account, even if that person had not signed up yet.

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 shxsu1

View all

3 more disclosed reports, 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.