Skip to content
Race condition Write-up Intermediate

How I Bypassed a Free-Tier Resource Limit via Race Condition

A GraphQL mutation for creating databases did not properly enforce a free-tier limit of five databases when multiple requests were sent simultaneously. An attacker could create more than five databases on a free account, bypassing the quota and consuming extra resources.

medium.com

Published on medium.com

Recently, I was hunting for some Business Logic vulnerabilities in a well-known platform and there was a button to create database so immediately i checked the pricing page if there is any limit to free users about creating more than any limit of databases and yeah free users was limited to create 5 database at max…

Efe Esen, on medium.com

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 database quota and created the database as separate steps without locking, so concurrent requests all passed the check before any creation was recorded.

Impact

Free-tier users could exceed the database quota without upgrading, leading to unauthorised resource usage and potential financial loss; the report notes the issue remains unpatched.

What the attacker needed

A free-tier account; ability to intercept and replay requests

How it was found

  1. Navigate to the platform's UI and create a new database.
  2. Intercept the CreateNewDatabase GraphQL mutation using Burp Suite.
  3. Use Turbo Intruder with a script that queues many requests and releases them together.
  4. Observe that more than five databases with unique IDs are created under the same account.

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 system checks a limit and then acts, but if many requests arrive at the same moment, the check can be passed by several before any of them updates the count. Here, the free plan allowed only five databases, but by sending many creation requests at once, the server created more than five. This let users get more resources than they paid for.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.