Bypassing Application Limit on Free Plan via Parallel Requests
The free plan was meant to cap users at three applications, but sending several create-app requests at the same time let more than three be created. An attacker could therefore exceed the plan limit and use more resources than they paid for.
medium.com
Published on medium.com
The platform is supposed to restrict users on the free plan to a maximum of 3 applications. However, by using a race condition and sending multiple requests in parallel, it’s possible to bypass this limit and create more than 3 apps.
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 application counted existing apps and then created the new one without making that check-and-create sequence atomic, so parallel requests all passed the limit check.
Impact
Users could bypass billing and plan restrictions and abuse resources as free users, though the report gives no measured scale of the overage.
What the attacker needed
A free-plan account; ability to send parallel requests
The fix
The check for the plan limit and the creation of the app should be made atomic, for example with a database constraint or a lock, so parallel requests cannot all pass the check.
How it was found
- Create three applications and confirm a fourth is refused by the free plan limit.
- Delete the third application so only two remain.
- Send several create-app requests in parallel using a repeater or script.
- Observe that more than three applications are created under the free plan.
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 website often checks a rule, such as 'this user already has three apps', and then saves the new app. If two requests arrive at almost the same moment, both can pass the check before either one saves, so the rule is broken. This is called a race condition, and here it let a free user make more apps than allowed.
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.