Skip to content
Race condition Write-up Intermediate

A Simple Race Condition with Real-World Impact

A race condition in the user management feature allowed a standard account to add more users than the allowed limit of one. An attacker could send multiple simultaneous requests to bypass the subscription restriction and create additional users.

medium.com

Published on medium.com

Race conditions are vulnerabilities that many security researchers first encounter in training labs. They are simple to understand, yet they still appear in real-world applications.

DrRobik, 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 server checks the user limit and then creates the user without making the check and creation atomic, so concurrent requests can all pass the check before the count is updated.

Impact

An attacker could bypass the subscription restriction and add more users than allowed, potentially gaining additional accounts without paying.

What the attacker needed

A standard account; ability to send multiple simultaneous requests

The fix

The server should handle the check and user creation atomically, for example by using database locking or other synchronisation mechanisms.

How it was found

  1. Intercept the request to add a new user.
  2. Send the request to Burp Suite's Repeater.
  3. Duplicate the request around 20 times and group them.
  4. Use Burp's Single Packet Attack to send all requests simultaneously.
  5. Observe that multiple users are added despite the limit.

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 a rule and then acts on it, but if two actions happen at almost the same time, both can pass the check before the rule is updated. Here, the website checked if you had reached your user limit, but by sending many requests at once, several got through before the limit was recorded, letting you add more users than allowed.

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.

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.