Skip to content
Account takeover Write-up Beginner

How I Discovered an Email Verification Bypass

The sign-up activation endpoint accepted an account creation request with the verification token removed, so the server created an account for an arbitrary email address without any verification. An attacker could register accounts under other people's email addresses without their consent.

medium.com

Published on medium.com

As the internet grows, so do the risks associated with weak authentication and verification mechanisms. In my latest bug bounty submission, I discovered a significant email verification bypass vulnerability that allowed me to take control of an account by simply altering the verification link.

viperx9, 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 server treated the token as optional in the account creation request and did not verify that it matched the submitted email address.

Impact

An attacker could create accounts using any email address without the owner's consent, which could be used for impersonation, phishing or fraud; the author notes that no functionality could be accessed before verification, limiting the practical effect.

What the attacker needed

Ability to register and receive an activation link; a proxy tool to edit the request; victim's email address known

How it was found

  1. Register a new account and receive the activation link containing a token and an email parameter.
  2. Change the email parameter in the activation URL to another address and open it in the browser.
  3. Fill in first name, last name and a password on the loaded page.
  4. Intercept the form submission request with a proxy tool.
  5. Remove the token field from the JSON body and forward the request.
  6. Observe that the account is created for the chosen email address without 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 sign up, a site usually emails you a link with a secret code (a token) to prove the address is yours. Here the server did not check that code when the final form was submitted, so someone could skip the proof step and create an account for any email address they typed in.

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.