Skip to content
Race condition Write-up Intermediate

How a Critical Race Condition in a Management System Led to a $0

A trial account limited to two locations could create more than two by sending many location-creation requests at the same moment. The server checked the existing count and inserted the new location as separate steps, so parallel requests all passed the check before any insertion happened.

Abhishek Gupta Follow

Published on infosecwriteups.com

Hey everyone 👋 If you’re new here, I’m Abhishek — a security researcher and bug hunter who prefers understanding applications like a normal user before attacking them like a hacker.

Abhishek Gupta, on infosecwriteups.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 count check and the insert were not atomic, so concurrent requests each read the same pre-insert count and all passed validation.

Impact

An attacker could exceed the subscription limit on a trial account, though the report was closed as a duplicate and the team asked for proof that extra locations could be kept after the trial ended.

What the attacker needed

A trial account; ability to send parallel requests

How it was found

  1. Capture the POST request that creates a second trial location.
  2. Duplicate the request several times in the Repeater and group the copies.
  3. Send the whole group in parallel so they fire at the same moment.
  4. Refresh the dashboard and observe more than two locations on the trial 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.

The system wanted to allow only two locations on a free trial. It counted your existing locations, then saved the new one. If many requests arrive at the same instant, they all see the old count and all get saved, so you end up with more than the limit. This kind of timing flaw is called a race condition.

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 Abhishek Gupta

View all

1 more disclosed report, 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.