Skip to content

In-depth lesson · bug class

Race conditions

What every disclosed Race condition report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
245

Learning Race condition reading list APIs and access control, step 7

Where it is found

57

The features and places the reports found it in, most-reported first.

  1. Privileged file writes, cache saves and cookie jar saves

    Seen in 7 reports
  2. Upvote, downvote and reaction endpoints on community and content pages

    Seen in 6 reports
  3. Download opening and file handling in browsers

    Seen in 5 reports
  4. Team member addition and seat allocation endpoints

    Seen in 4 reports
  5. Subdomain creation, location creation and free domain claim endpoints

    Seen in 4 reports
View all 57

Root causes

50

The mistakes in the code or configuration behind the reports.

  1. The limit check and the creation step were not atomic, so concurrent requests all passed the check

    Seen in 7 reports
  2. The code checked whether an entry was a symlink and then deleted or wrote it, allowing a swap between check and use

    Seen in 6 reports
  3. The check-and-record step was not atomic, so concurrent duplicate requests were all accepted

    Seen in 4 reports
  4. The vote endpoint did not use an atomic operation or lock, so concurrent requests bypassed the duplicate-vote check

    Seen in 3 reports
  5. The redemption process was not locked or serialised, so several requests validated and applied the same coupon or card before the balance updated

    Seen in 3 reports
View all 50

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

Other

of 3 ticked
  • Seen in 129 reports
  • Seen in 7 reports
  • Seen in 6 reports
More in Other
View more things to try

Bypasses and variations

14

How reports got past filters, encoders and other defences.

  1. Send the same request from many threads so all pass the duplicate check before any record is written

    Seen in 6 reports
  2. Send parallel requests with different parameter values so each passes the limit check independently

    Seen in 4 reports
  3. Swap a symlink and a directory repeatedly so a privileged write follows the link

    Seen in 4 reports
  4. Send many requests in one TCP packet to widen the race window beyond the usual byte limit

    Seen in 3 reports
  5. Use one OTP generated for your own address against a parallel request carrying the victim's address

    Seen in 2 reports
View all 14

Payouts

37 paid

Public bounties in US dollars, from the data. 37 of 1,504 reports show an amount.

a quarter paid up to
$1,000
median
$2,000
three quarters paid up to
$4,000
highest
$31k

One in ten paid reports was paid $10k or more.

SeverityReportsPaidMedianHighest
Critical 87 2 $10k $15k
High 587 8 $3,500 $20k
Medium 262 6 $2,440 $3,000
Low 78 8 $490 $2,000
Informational 19 0 None paid None
Unrated 471 13 $2,000 $31k

Typical fixes

49

How programs fixed it, as the reports describe.

  1. Enforce limits with atomic counters or database constraints rather than a separate check

    Seen in 7 reports
  2. Use file descriptors opened with no-follow semantics and avoid check-then-use on paths

    Seen in 6 reports
  3. Use atomic check-and-record operations for follow and reaction endpoints

    Seen in 4 reports
  4. Record votes with an atomic insert or unique constraint per user and item

    Seen in 3 reports
  5. Lock or serialise redemption so the balance update and validation happen in one transaction

    Seen in 3 reports
View all 49

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on Race condition, from around the web.

Keep learning

Where this lesson fits, and what to read next.

Lessons on single techniques in Race condition

How this is made: our model read every listed Race condition report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 26 Nov 2026 from 265 reports. All Race condition reports.