EN \| Race Condition to Users Limit Bypass in Add User Function
The Add User function on a free membership plan enforced a limit of one user per group without any rate limiting, so concurrent requests could each pass the check before the counter was updated. An attacker could therefore add far more users than the plan allowed, reaching a negative counter value and gaining premium-only functionality for free.
Published on lutfumertceylan.com.tr
In September of last year, I found a Race Condition vulnerability at an Online Services company located in the Netherlands. They had a private Zerocopter program and that’s why I was doing bug hunting based on web applications, on their systems.
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 user-count check and the increment were not performed atomically, and no rate limiting slowed concurrent requests, so multiple requests passed the limit check before the counter was updated.
Impact
A free account could add unlimited users to a group, gaining functionality that otherwise required a premium membership worth about 500 euros.
What the attacker needed
A free account; ability to send many parallel requests
The fix
The vulnerability was fixed, though the text does not describe the technical change.
How it was found
- Do pre-research on the target and note that no rate limiting exists on its functions.
- Pick the Add User function, which is limited to one user on a free membership.
- Send the Add User request many times in parallel using the Turbo Intruder extension in Burp Suite.
- Observe that more users than the plan allows are added and the limit counter goes negative.
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 updates a record as two separate steps. If many requests arrive at almost the same moment, they can all pass the check before any of them updates the record, so the rule is broken. Here the rule was 'a free account may add only one user', and sending many requests at once let the attacker add many more.
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.