Skip to content
Race condition Write-up Intermediate

Race condition chained with logic bug leads to full bypass of free-plan site limit

The free tier limited users to two sites, but concurrent site-creation requests during deployment bypassed the limit check and created extra site records. A separate logic flaw exposed all framework identifiers, letting those records be deployed with paid frameworks, so the free plan limit was fully bypassed.

mhmodgm54 Follow

Published on medium.com

This write-up explains two vulnerabilities I discovered and chained together to fully bypass the free-plan site limit. The first issue is a race condition that allows creation of additional site entries beyond the free limit; the second is a logic bug that lets those entries be deployed with paid frameworks so they…

Mahmoud Gamal, 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 site-creation limit was checked without atomicity while deployments were in progress, and the framework list endpoint returned identifiers for paid frameworks without restricting their use.

Impact

An attacker could create many site records and deploy each with frameworks reserved for paid users, using paid features without paying.

What the attacker needed

A free-plan account; ability to send concurrent requests

How it was found

  1. Send concurrent site creation requests while the service is processing deployments to exceed the two-site limit.
  2. Monitor traffic and find the upstreams endpoint that returns framework identifiers.
  3. Take a paid framework identifier from that response.
  4. Call the deployment URL for each created site id, substituting the paid framework identifier.
  5. The previously nonfunctional site records deploy successfully with paid frameworks.

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 is when a program checks a rule and then acts on it, and an attacker sends many requests at the same moment so the check passes more times than it should. Here the site limit was checked during a slow deployment, so firing requests together created more sites than allowed. A second mistake exposed the identifiers of paid frameworks, so those extra sites could then be deployed with paid features.

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.

More by mhmodgm54

View all

7 more disclosed reports, best first.

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.