Skip to content
Race condition Write-up Intermediate

One Request, Ten Times: How I Broke Admin Access with a Race Condition

A race condition in the team invitation acceptance endpoint allowed an attacker to send the same invitation acceptance request multiple times in parallel, causing the system to downgrade the admin's paid account to a free plan while the attacker's account remained in the team. The attacker could then access the organisation's documents and workflows without authorisation.

solutionexit5 Follow

Published on medium.com

During a recent bug bounty program, I discovered a critical race condition vulnerability in a team invitation feature that had severe business consequences. This vulnerability allowed me to downgrade an administrator’s paid account to a free plan while maintaining unauthorized access to their team workspace.

0xMoussa, 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 invitation acceptance endpoint lacked proper locking or idempotency checks, so concurrent requests for the same invitation all read the same state and caused inconsistent database updates, triggering an automatic downgrade to the free plan.

Impact

The attacker could downgrade a paying customer's account to a free plan, removing the admin console and paid features, while keeping unauthorised access to the organisation's documents and workflows.

What the attacker needed

A paid admin account; an email address you control; Burp Suite with Repeater; ability to send parallel requests

The fix

The server should ensure each invitation is processed only once, using database locking and idempotency tokens to prevent duplicate processing.

How it was found

  1. Using an admin account, send one invitation to an email address you control.
  2. Click the accept invitation link and intercept the HTTP request with Burp Suite.
  3. Send the captured request to Burp Repeater and create multiple duplicate tabs with the identical request.
  4. Use Burp's 'Send group in parallel' feature to fire all requests at the same moment (single-packet attack).
  5. Check the admin account: the paid subscription is downgraded to free and the admin console becomes inaccessible.
  6. Verify that the invited user account has joined the team and retains access to the organisation's documents.

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 happens when a system tries to do several things at once and gets confused, like two people grabbing the last slice of pizza at the same moment. Here, the server was asked to accept the same team invitation many times simultaneously, and it mishandled the result, accidentally downgrading the admin's paid account to a free one. The attacker's account stayed in the team, so they could still see the organisation's documents.

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 solutionexit5

View all

1 more disclosed report, 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.