Tips

Race condition tips

Race conditions appear when requests arrive close enough together that a check and its update happen out of order. Limits, balances, coupons and one-time actions are the classic targets.

Published tips, newest first. Payloads and commands are shown as plain text.

Race condition: how to hunt it

Where to look

  • One-time actions: redeeming a code, claiming a bonus, voting, inviting, withdrawing.
  • Limits checked before an update, such as balances, quotas and rate limits.
  • Multi-step flows whose state between steps can be raced, such as an email change and its confirmation.
  • Requests sent in one burst, for example with the single-packet technique over HTTP/2, to shrink the timing window.

What proves it

Show the same limited action succeeding more often than allowed, with the final state, on accounts and balances of your own.

Read further

Writeups on Race condition, by hunters and researchers, most with a short summary.

Related classes