Skip to content
Account takeover Write-up Intermediate

A Strange Tale of Email Verification Bypass

The email verification flow used a client-supplied email parameter to decide where to send the OTP or validation link, but the server verified the originally submitted email address instead. An attacker could therefore verify an email address they did not control by receiving the code at an address they did control.

Arioex Follow

Published on medium.com

I decided to publish two of my weird and, of course, instructive findings. So here we go.

Huntsman, 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 trusted a client-supplied email parameter for sending the verification message but used a different, earlier-stored value when marking the address as verified, so the two were not bound together.

Impact

An attacker could verify an email address they do not own, which the author says violates application policy and potentially GDPR, though triagers may not consider it exploitable.

What the attacker needed

A free account; ability to intercept requests; an email address you control

The fix

The server should bind the verification code or link to the exact email address it was sent to and only mark that same address as verified.

How it was found

  1. Log in and start changing the email to an address you do not control.
  2. Capture the request and change the email parameter to an address you do control.
  3. Receive the 6-digit code at the address you control.
  4. Enter the code and observe that the original address is verified.

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 or change your email, a site sends a code or link to prove the address is yours. Here the site sent that proof to one address but then marked a different address as verified. That means someone could claim an email address that belongs to another person without ever accessing it.

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 Arioex

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.