Skip to content
Race condition Write-up Intermediate

Email verification bypass due to race condition.

When a user changed their account email, the site sent a verification link but did not bind that link to the specific email address it was issued for. By sending two change-email requests in parallel, an attacker could get a verification link for their own address that would also verify a different, victim-owned address, allowing them to take over the account.

mohamed.yasser442200 Follow

Published on medium.com

One day, I decided to hunt on a security services company’s public program with a limited scope. In the past, I hesitated with public programs due to security concerns, but this time, I decided to trust myself and simply enjoy testing the program without worrying about finding vulnerabilities.

Spider4, 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 verification token was not tied to the specific email address it was issued for, so any valid token could confirm any pending email change.

Impact

An attacker could verify and take over an email address they do not control, gaining access to that account; the report notes it was triaged as P4.

What the attacker needed

A registered and verified account; ability to intercept and replay requests

How it was found

  1. Register, verify the email and log in.
  2. Go to account settings and change the email.
  3. Intercept the change-email request and send it to the repeater twice.
  4. In the first request put the target email; in the second put your own email.
  5. Group the two requests and send them in parallel.
  6. Open the verification link that arrives for your own email and confirm it verifies the target address.

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 on a website, it usually sends a link to prove the new address is yours. Here the site checked that the link was valid but not which address it belonged to. Sending two change requests at the same moment confused the check, so a link meant for the attacker's own address also confirmed someone else's address.

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.

More by mohamed.yasser442200

View all

3 more disclosed reports, best first.

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.