Skip to content
Race condition Write-up Beginner

Win the Race | Exploiting Race Condition Vulnerability

A project builder website allowed free users to create only one project, but by sending multiple project creation requests in parallel, the limit could be bypassed. An attacker could create more projects than allowed, potentially causing financial damage to the organisation.

medium.com

Published on medium.com

Race conditions are a common type of vulnerability which mostly caused Business Logic Bypass. It occurs when websites process requests concurrently without any safe mechanism.

#$ubh@nk@r, 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 application checks the project limit and then creates the project without an atomic operation, so concurrent requests can all pass the check before any project is created.

Impact

A free user could create more projects than allowed, which could cause financial damage to the organisation.

What the attacker needed

A free user account; ability to intercept and resend requests

How it was found

  1. Log in as a free user and go to the dashboard.
  2. Create one project to see the limit message.
  3. Delete the existing project and capture the project creation request in Burp Suite Repeater.
  4. Send the request four times in Repeater.
  5. Group the requests and set the group send type to send in parallel.
  6. Send the group and refresh the dashboard to see multiple projects 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 happens when a website checks a rule (like 'only one project per user') but doesn't lock things properly, so if two requests arrive at almost the same moment, both can pass the check. Here, the attacker sent several 'create project' requests at once, and the server created more than one project even though the free plan only allows one.

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.