Skip to content
Race condition Write-up Beginner

Race Condition , Allows creation of unlimited projects, bypassing free-tier limits.

A website limited free users to two projects, but the server did not check the limit properly when many project-creation requests arrived at the same time. An attacker could send requests in parallel and create more projects than the free tier allowed.

dark0x Follow

Published on dark0x.medium.com

A race condition happens when a system tries to handle many requests at the same time without controlling them properly. This can cause problems.

Mahmoud Hatem (0xDark), on dark0x.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 project-count limit was checked and enforced non-atomically, so concurrent requests each saw the count as still under the limit.

Impact

A free user could create more projects than the plan allows, abusing the service's resources; the report does not claim any further impact.

What the attacker needed

A free account; ability to send parallel requests

How it was found

  1. Sign up for a free account that allows two projects and create two projects.
  2. Capture the project-creation request in Burp Suite.
  3. Group many copies of the request and send the group in parallel.
  4. Observe that more than two projects were created.

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 a program handles several actions at once and its checks get confused. Here the site counted projects only after each request, so firing many requests together let several slip past the two-project limit. The result is that a free user gets more than they paid for.

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.