Race Condition Allow Limit Bypass Free Tier Account
A free-tier account was limited to 100 projects, but sending many project-creation requests at the same time let the user exceed that limit. An attacker could create more projects than their plan allowed.
medium.com
Published on medium.com
Hello, this is my first post on Medium about bug hunting. Here, I’ll explain how I discovered a race condition bug that allows bypassing the limits on a restricted free account.
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 check and the project creation were not atomic, so concurrent requests all saw a count below the limit.
Impact
A free-tier user could create more projects than their plan allowed, bypassing the paid-tier limit.
What the attacker needed
A free account; ability to send many requests at once
The fix
The bug was fixed, though the text does not describe how.
How it was found
- Create a free account limited to 100 projects.
- Capture the request that creates a new project.
- Duplicate that request many times.
- Send all the duplicated requests together.
- Observe that more than 100 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 happens when a program checks a limit and then acts, but two requests arrive so close together that both pass the check before either is recorded. Here, the app checked the project count and then created the project, so firing many requests at once let extra projects slip through.
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.