How I Found a Race Condition That Broke a Resource Limit (Real-World Case Study)
A free-tier workspace creation limit was enforced by the UI and appeared to be enforced by the backend when requests were sent one at a time. By sending many duplicate creation requests in parallel using a single-packet attack, the attacker could create more workspaces than the free tier allowed.
Published on medium.com
Most beginners in bug bounty focus on things like XSS or SQLI. Those are important, but modern applications are often hardened against them.
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 backend checked the workspace count and created the workspace without an atomic operation, so concurrent requests all passed the limit check before any creation was recorded.
What the attacker needed
A free-tier account; ability to send parallel requests
How it was found
- Capture the request that creates a workspace for a free-tier user.
- Duplicate the request in a group more times than the free-tier limit allows.
- Send the group in parallel using a single-packet attack.
- Observe that more workspaces than allowed were created and all work.
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 program checks a rule and then acts on it, but two requests can both pass the check before either one updates the count. Here, the server checked the workspace limit for each request separately, so sending many at the same moment let several slip through before the limit was recorded. The result is that a user gets more resources than their plan allows.
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.