Skip to content
Race condition Write-up Intermediate

Special Race Condition Exploit in Email Verification Bypass

The update-email function had a race condition: sending many concurrent requests with the same new email changed the account's email without the owner receiving a verification link. An attacker could therefore set an account's email to one they control without proving ownership.

medium.com

Published on medium.com

This write-up describes a special race condition in the update email function that leads to an email verification bypass. It explains the effect of the issue and the potential privilege impact.

Mahmoud Gamal, 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-update handler was not atomic, so concurrent requests with the same address raced and the verification step was skipped.

Impact

An attacker could change an account's email without verification; the author suggests chaining this with invites to escalate privileges, but that chain did not succeed in testing.

What the attacker needed

Ability to send concurrent requests; a target account to change

How it was found

  1. Capture the update-email request.
  2. Send ten update-email requests concurrently with the same new email address.
  3. Observe that the account email changes without any verification link being sent.

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 link to the new address to prove you own it. Here, if many change requests were sent at the same moment, the site saved the new address but skipped sending that proof link. That means someone could attach an email they control to an account without proving they own it.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.