Skip to content
Race condition Write-up Intermediate

The Dark Side of Invite Links: A Race Condition Exploit Story (En

A one-time invite link could be reused to grant access to multiple different email addresses by sending parallel requests with different email parameters. An attacker could thus give access to many unauthorised users instead of just the single invited user.

Ajay Kumar Follow

Published on medium.com

“Gala saaf karte hue, ki arz kiya hai” Wah wah to bolo yrr! “Dubara se, ki arz kiya hai” Abhi bhi ni bola? Hdd hai, bol do yrr! “Kher chhodo, mai hi bol leta ho.

Ajay Kumar, 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 one-time-use check and the marking of the link as used were not atomic, so concurrent requests all passed the check before any update was committed.

Impact

All the submitted email addresses received verification links and were listed on the admin dashboard, so multiple unauthorised users could gain access through a link meant for one person.

What the attacker needed

A valid one-time invite link; ability to intercept and replay requests; the invite flow accepts an email parameter

How it was found

  1. Open the invite link in the browser.
  2. Capture the request using Burp Suite.
  3. Open multiple tabs in Repeater.
  4. Change the email parameter to different email addresses in each tab.
  5. Create a group of these tabs.
  6. Send all the requests simultaneously using Parallel Mode.

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.

An invite link is meant to let exactly one person join. The website checked whether the link was still unused, but when several requests arrived at the same moment, they all passed the check before any of them marked the link as used. This is called a race condition: a timing flaw where simultaneous actions slip past a one-time rule.

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 Ajay Kumar

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.