Skip to content
Race condition Write-up Beginner

Race Condition Leading to Quota Bypass and Unlimited Resource Creation

The application enforced a five-repository licence limit only after checking the current count, without locking, so parallel requests could all pass the check. An attacker could create unlimited repositories beyond their plan, causing resource abuse and possible denial of service.

z3r0_hunter Follow

Published on medium.com

السلا� عليك� ورح� ة الله وبركاته، الله� صلِّ على سيدنا � ح� د النبي ﷺ، الله� انصر إخواننا في غزة والسودان ولبنان

X-Ghost, 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 repository-count check and the creation were not atomic, so concurrent requests all saw a count below the limit.

Impact

Attackers could create unlimited repositories beyond their subscription plan, leading to resource abuse, potential financial loss, and a risk of denial of service.

What the attacker needed

A user account; ability to send parallel requests

How it was found

  1. Notice the workspace limit for Git repositories.
  2. Click 'Add new repository' and capture the request.
  3. Send multiple requests in parallel, for example 50 to 100 at the same time.
  4. Observe that all requests succeed and the limit value becomes 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 acts on it, but two requests can both pass the check before either one updates the count. Here, the app checked how many repositories you had, saw fewer than five, and allowed creation, but many requests did this at once. The result is that you get more repositories than your plan allows.

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.