Skip to content
Race condition Write-up Intermediate

Race Condition in Team Creation Endpoint Allows Bypass of Daily T

The team creation endpoint did not properly enforce a limit of two teams per user per day. By sending many parallel requests, an attacker could create more teams than the limit allowed in a single day.

geme000 Follow

Published on medium.com

Today, I’m excited to share my first Race Condition vulnerability that I discovered while hunting on a public bug bounty program. This vulnerability demonstrates how improper handling of concurrent requests can lead to a business logic bypass.

geme000, 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 limit check and the team creation were not performed atomically, so concurrent requests all passed the check before any of them was counted.

Impact

An attacker could create an unlimited number of teams in a single day, abusing business logic restrictions and consuming excessive resources.

What the attacker needed

A user account; ability to send parallel requests

How it was found

  1. Open the team creation page and fill in the form.
  2. Intercept the POST request to the store endpoint with a proxy.
  3. Send the request to Repeater.
  4. Duplicate the request into ten or more tabs.
  5. Change the team name in each request so they are unique.
  6. Send all requests in parallel and observe that multiple teams are created.

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 website checks a rule and then acts on it, but several requests arrive at almost the same moment. Each request sees the limit as not yet reached, so all of them succeed. Here the rule was 'two teams per day', and firing many requests at once let the user make far more.

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.