Skip to content
Account takeover Write-up Beginner

“I Won’t Let Your Future Customers Register” — Hunting an Email Verification Bug Through Recon

The email change feature on an account management subdomain accepted a new email address without any password prompt, OTP, or verification email, immediately making it the account's primary address. An attacker could therefore claim any unregistered email address, preventing its real owner from ever registering with it.

Muhammad_Murtaza Follow

Published on medium.com

Whenever I start hunting on a new program, I don’t immediately jump into fuzzing endpoints or testing APIs. I like to build a map of the application’s attack surface first.

Muhammad Murtaza, 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 endpoint trusted the client-supplied address and updated the account without verifying ownership of the new address.

Impact

An attacker could claim unregistered addresses, including corporate or high-profile ones, and at scale could block many legitimate users from registering, though the text only describes this as a possibility.

What the attacker needed

A free account; access to the account management subdomain

The fix

The email change should require proof of ownership, such as a password prompt plus a verification link or OTP sent to the new address, before the address is associated with the account.

How it was found

  1. Run subdomain enumeration and check which hosts are live.
  2. Create a normal user account and explore the account management subdomain.
  3. Find the edit email address feature and try changing to an address already in use, which returns an error.
  4. Submit an unregistered email address and observe the primary email changing with no verification.

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 the email on an account, a safe site should first send a message to the new address to prove you own it. Here the site skipped that check and simply accepted whatever address was typed in. Because an address can only belong to one account, someone could grab an address that does not yet have an account and stop the real owner from signing up later.

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.

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.