A Race Condition Leads to Bypass Subscription Plan
The application enforced a one-staff-account limit on the free plan, but sending many simultaneous account-creation requests let several succeed at once. An attacker could add more staff accounts than the plan allowed, bypassing the paid subscription.
medium.com
Published on medium.com
In the previous period, I was targeting external programs for hunting because they contain more juicy bugs like that one.
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 staff-account limit was checked and the account created without an atomic operation, so concurrent requests all passed the check before the count was updated.
Impact
Users could access paid features for free, causing revenue loss and damaging trust among paying subscribers.
What the attacker needed
A free account on the platform; ability to send many requests at once
How it was found
- Create one staff account on the free plan to confirm the limit.
- Remove the created staff account and start creating another one.
- Intercept the account-creation request and send it to the repeater.
- Duplicate the request more than 20 times, changing the email in each copy.
- Send all requests simultaneously and observe that three return 202 accepted.
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 several requests arrive so close together that they all pass the check before any of them updates the count. Here the free plan allowed only one staff account, yet firing many requests at once let three accounts be created. The fix is to make the check and the creation happen as one indivisible step.
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.