Skip to content
Race condition Write-up Intermediate

Race Condition in Team Invitations Vulnerability

The platform allowed multiple invitations for the same email address when two invite requests with different roles were sent simultaneously. An attacker could exploit this to send both a low-privilege and a high-privilege invitation, potentially escalating the invited user's privileges to Owner.

ch1ta Follow

Published on ch1ta.medium.com

As usual, I was exploring platform functionalities and ended up digging into the team invitation system. What started as a simple check turned into something fun — and eventually, I uncovered a neat little race condition that could allow a user to sneak into higher privileges.

Lakshya, on ch1ta.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 backend did not enforce atomicity or idempotency when creating invitations, allowing concurrent requests to bypass the one-invite-per-email rule.

Impact

The race condition bypasses the one-invite-per-email restriction and could allow privilege escalation to Owner, but the vendor considered it low severity because the attacker needs access to the victim's inbox and the victim must explicitly accept the Owner invite.

What the attacker needed

Access to the target's inbox; ability to send parallel requests; victim must accept the Owner invite

The fix

The vendor plans to fix it by tightening backend checks to enforce idempotency and allow only one pending invite per email, rejecting duplicates even under concurrent requests.

How it was found

  1. Admin invites [redacted] as Viewer.
  2. The same request is duplicated with Owner role.
  3. Both requests are sent at the same time using Burp Suite's Send group in parallel feature.
  4. Victim receives two invites: Viewer and Owner.
  5. Victim accepts the Viewer invite first, then later accepts the Owner invite, escalating privileges.

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 checks something and then acts, but another request can slip in between the check and the action. Here, the system checked that an email had no pending invite, but two requests arrived at the same moment, so both passed the check. This let an attacker create two invites for the same person, one with low privileges and one with high privileges.

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 ch1ta

View all

4 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.