How I Exploited a Race Condition to Bypass Subscription Limits
The application checked the project limit before creating a project, but concurrent requests could all pass the check before any project was created. An attacker could send multiple requests in parallel to create more projects than the free plan allows.
medium.com
Published on medium.com
A race condition occurs when multiple requests are processed at the same time before the system updates its internal state, leading to unexpected behavior, such as bypassing intended restrictions or limits.
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 limit check and the project creation were not atomic, so concurrent requests could all pass the check before any project was recorded.
Impact
An attacker could create more projects than the free plan allows, bypassing subscription limits.
What the attacker needed
A free account; ability to send parallel requests
How it was found
- Intercept the POST request that creates a new project and send it to Burp Repeater.
- Duplicate the request 10 times, group them, and send them in parallel.
- Observe that all requests succeed and more than two projects are 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 system checks a rule and then acts on it, but two actions can happen at the same time before the first one finishes. Here, the system checked 'do you have fewer than two projects?' and then created the project. By sending many requests at once, all of them saw fewer than two projects and all were allowed, so the limit was broken.
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.