Skip to content
Account takeover Write-up Intermediate

Email Verification Bypass during Account Creation | Insecure Design

During account creation, the application returned the email verification token as part of the user's profile data before registration was finished. An attacker could read that token and call the verification endpoint directly, completing registration with any unused email address without access to the mailbox.

raymondv Follow

Published on raymondv.medium.com

Hello! While hunting on a public program, I discovered a simple flaw that made it possible to create an account without verifying its email address.

Raymond Van Wart, on raymondv.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 profile data returned during registration included the verification token, and the verification endpoint accepted it without any other check that the user controlled the mailbox.

Impact

An attacker could register with any unused email address and potentially impersonate other users or staff, though the report does not show this being carried out.

What the attacker needed

Ability to start a signup; phone number verification step; no mailbox access needed

The fix

The report recommends blocking access to profile data until registration is complete, or storing verification tokens in a restricted Firebase table.

How it was found

  1. Start creating an account and complete the phone number verification step.
  2. Submit the requested personal information when prompted.
  3. Observe the batch query request that fetches profile data from Firebase while registration is still in progress.
  4. Inspect the returned profile data and find the email verification token.
  5. Send a GET request to the verification endpoint with the account identifier and the token to finalise account creation.

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 sign up, the site usually emails you a secret link to prove the address is yours. Here the site also handed that secret back to the browser inside the profile data, so anyone signing up could simply read it and open the link themselves, skipping the email step entirely.

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.