Skip to content
Race condition Write-up Advanced

How a Race Condition Became an Account Takeover Vulnerability

A race condition allowed a pending invitee's email to be changed to another user's email while the invitation was being accepted, creating a mismatch between the login email and the project email. This could trick a project owner into transferring ownership to the attacker's account.

mrasg Follow

Published on medium.com

Today, I’m excited to share a unique vulnerability journey with you — a race condition that transformed into an Account Takeover (ATO) exploit. This exploit was discovered in a public and well-established program on HackerOne.

Ahmed Samir Ghallab, 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 application did not properly synchronise the invitation acceptance and email update operations, allowing the email to be changed after the invitee's status became active but before the change was rejected.

Impact

A Member Manager could trick the project owner into transferring ownership to the attacker's account, but the severity was classified as low.

What the attacker needed

Member Manager role in the project; Knowledge of the future owner's email; Ability to intercept and modify requests

How it was found

  1. Send an invitation to a new email address.
  2. Open the invitation link and proceed with account creation, stopping at the invitation acceptance form.
  3. In another tab, navigate to the page to edit the invitee's details and prepare a request to change their email.
  4. Use a proxy rule to add an email parameter to the request that updates the pin code.
  5. Enable interception, click Accept Invitation in the first tab, and simultaneously click Save Changes in the second tab.
  6. Disable interception so the acceptance request is processed first, followed by the email update request.

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.

A race condition is when two actions happen at almost the same time and the system gets confused about the order. Here, accepting an invitation and changing the invitee's email at the same moment let the attacker make the system think a different person was already in the project. That tricked the owner into giving away control of the project.

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 mrasg

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.