Skip to content

In-depth lesson · technique

Limit overrun

What every disclosed Limit overrun 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
82

Overview

What it is and why programs pay for it.

Limit overrun is a race condition where a check that should happen once, such as a quota, a one-per-user action or a single-use token, is performed separately from the write it guards. When several requests arrive close together, each one passes the check before any of them has recorded its effect, so the limit is exceeded. The reports behind this lesson show the same shape across very different targets: fee withdrawal and reward claim functions in contracts, upvote and reaction buttons, promo code redemption, email change and verification, team permission mutations and token endpoints.

Programs care because the consequence is usually a direct loss of value or a break in a security boundary: fees paid twice, rewards claimed repeatedly, discounts applied more than once, extra accounts or credentials issued, or admin access surviving a transfer. In the database this lesson draws on 84 reports, 56 with a summary and 17 paid, so it is a well represented class rather than a rare curiosity. It most often appears wherever a limit is enforced in application code without a matching atomic step, and in shared caches and buffers where threads touch the same structure.

The features where it turns up range from staking and lending contracts and governance voting with transferable tokens, through checkout and loyalty claim flows, to lower level code such as shared DNS, cookie and HSTS caches, UTF-8 decoding of shared buffers and file handling around setuid binaries and log rotation. The common thread is a window between a decision and the action that depends on it.

How it works

The mechanics, as the reports show them.

The basic pattern starts with a request that reads some state to decide whether an action is allowed: has this user already voted, has this code been used, is the quota full, has this period been claimed. The decision is made, the request proceeds, and only afterwards is the effect written down. If a second request arrives in that gap, it reads the same pre-action state and is also allowed.

What makes it possible is the absence of an atomic guard. The operation is not wrapped in a transaction, a lock or a unique constraint, so parallel requests each succeed independently. Where a database constraint does exist at application level only, duplicates and cyclic states still get through. Where a lock exists elsewhere for the same structure, one code path may simply not take it.

A second family involves time of check to time of use on files and paths. A file or path is checked and then reopened or executed later, so it can be swapped in between. The same idea appears in shared memory that is validated and then converted in place without copying, letting another thread change it after the check.

A third family is asynchronous or transitional state. Approval removal after a new commit is processed asynchronously, leaving a window to merge. A permission callback runs before the object is marked protected. Resources are accepted before a policy enforcement webhook is operational. A channel is set as active after a check that ignores channels in a transitional state.

The fixes show what the missing ingredient was: enforce limits and duplicate checks atomically in the same step as the write, bind one-time codes to a single request and invalidate them after use, hold an open file handle between check and use, take the cache lock around every mutation, make payment processing idempotent, and add database level constraints. Each of these closes the window rather than narrowing it.

Year by year

10 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 166
Reports per year
20133
20154
20167
20174
20185
20197
202014
202111
202212
202317
202434
202589
2026166
  1. 2026

    166 reports

    New this year3

    • Shared DNS, cookie and HSTS caches used across threads became a clear focus in the disclosed reports.
    • UTF-8 decoding of shared buffers and buffer allocation under VM timeouts appeared as new memory safety race targets.
    • Triggering an HSTS entry deletion with a zero max-age while another thread parsed the same shared cache to check for use after free was a new pattern.

    Kept working6

    • Recent source and hardware reports focused on memory safety races in shared caches, buffers and kernel structures.
    • Running two threads that shared a DNS cache and both resolved non-existent names to watch for heap corruption or a double free worked.
    and 4 more

    Turned up less1

    • Web application races on voting, coupons, invitations and verification flows, common in earlier years, were much rarer in this batch of source and hardware reports.
  2. 2025

    89 reports · median $10k

    New this year3

    • Later reports mention single-packet delivery to widen the race window, a technique that first clearly appears here.
    • Recent source and hardware reports focused on memory safety races in shared caches, buffers and kernel structures.
    • Racing an interchain account channel upgrade by opening a competing channel with a different encoding in the window before the active channel was set appeared.

    Kept working2

    • Interleaving an email change request with a verification request so that the confirmation for one address applied to a different address remained productive.
    • Racing a file upload against the case-sensitivity check on a case-insensitive file system and checking whether the file was later treated as executable was effective.
  3. 2024

    34 reports · median $3,000

    New this year3

    • GraphQL mutations for claiming and updating team permissions during repository transfer or detach appeared as a new target.
    • Racing a user-to-organisation conversion to retain administrative access was a new pattern.
    • Sending parallel verification requests to a cloud backend to exceed the maximum allowed verification count appeared.

    Kept working2

    • Sending several parallel 2FA reset requests, cancelling one, and checking whether the others remained active was productive.
    • Sending the add-email request many times at once with different addresses and checking whether the per-account maximum was bypassed worked.
Every point, year by year

Where it is found

45

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

  1. Voting endpoints for upvoting and downvoting on report, term and post pages.

    Seen in 3 reports
  2. Promo code redemption and payment link checkout flows.

    Seen in 3 reports
  3. Email change and verification flows in account and partner settings.

    Seen in 3 reports
  4. GraphQL mutations for claiming and updating team permissions.

    Seen in 3 reports
  5. One-per-user reaction and like buttons on community and social pages.

    Seen in 3 reports
View all 45

Root causes

14

The mistakes in the code or configuration behind the reports.

  1. A limit or duplicate check runs as a separate step from the write, so concurrent requests all pass before any is recorded.

    Seen in 17 reports
  2. The operation is not wrapped in a transaction, lock or unique constraint, so parallel requests each succeed.

    Seen in 11 reports
  3. Shared state is read or mutated without the lock that other code paths use for the same structure.

    Seen in 5 reports
  4. A file or path is checked and then reopened or executed later, allowing it to be swapped in between.

    Seen in 4 reports
  5. Shared memory is validated and then converted in place without copying, so another thread can change it.

    Seen in 2 reports
View all 14

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

Kernel and privileged operations

of 3 ticked
More in Kernel and privileged operations

Shared memory and cache races

of 3 ticked
More in Shared memory and cache races

Team and organisation permissions

of 3 ticked
More in Team and organisation permissions

Promo codes and discounts

of 3 ticked
More in Promo codes and discounts
View more things to try

Bypasses and variations

23

How reports got past filters, encoders and other defences.

  1. Send one request with the victim's address and one with your own in parallel so both receive the same one-time code.

    Seen in 2 reports
  2. Send many invites at once and cancel them afterwards to regain the credits.

    Seen in 1 report
  3. Use a legacy publish request during the installation window instead of the normal purchase flow.

    Seen in 1 report
  4. Package the theme in a themepack file to avoid the mark-of-the-web warning.

    Seen in 1 report
View all 23

Payouts

18 paid

Public bounties in US dollars, from the data. 18 of 441 reports show an amount.

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

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

SeverityReportsPaidMedianHighest
Critical 12 2 $10k $15k
High 40 3 $10k $10k
Medium 66 0 None paid None
Low 29 3 $500 $2,000
Informational 4 0 None paid None
Unrated 290 10 $1,669 $31k

Typical fixes

12

How programs fixed it, as the reports describe.

  1. Enforce limits and duplicate checks atomically, using a lock or a database unique constraint in the same step as the write.

    Seen in 15 reports
  2. Bind one-time codes and verification results to a single request and invalidate them after use.

    Seen in 3 reports
  3. Hold an open file handle or use no-follow opens between the check and the use of a path.

    Seen in 3 reports
  4. Take the cache lock around every mutation and refcount change of shared structures.

    Seen in 3 reports
  5. Make payment and retest processing idempotent so a repeated request cannot trigger a second payment.

    Seen in 2 reports
View all 12

Tips for beginners

12

Advice for a first hunt, drawn from the reports.

  1. Show impact in terms of the limit that was broken: extra credits, a second payout, a discount applied twice, an account created beyond the maximum, or access that should have been removed. A duplicate record with no consequence is weak evidence.

    Seen in 5 reports
  2. Test limits that are described in a plan or quota: store locations, workspace creation, verification counts, subscriber limits. Send several create requests at the same moment and see whether more than the plan allows are created.

    Seen in 4 reports
  3. Start with features that have an obvious one-per-user or one-per-period rule: reaction and like buttons, promo code redemption, reward claims keyed by period or snapshot, and first-time customer claims. These are the easiest places to see whether the rule is enforced atomically.

    Seen in 3 reports
  4. For account and verification flows, interleave an email change with a verification request, or replay one verified registration request with different usernames and emails, and check whether the confirmation applies to the wrong address or several accounts are created.

    Seen in 3 reports
  5. Check scope before you spend time. Some of the items in this evidence are in components that programs may exclude, such as third party libraries, kernel internals or infrastructure outside the target. Confirm the endpoint or contract is in scope first.

    Seen in 3 reports
View all 12

Guides and techniques

The best explainers, cheat sheets and technique posts on Limit overrun, from around the web.

Keep learning

Where this lesson fits, and what to read next.

The whole class

How this is made: our model read every listed Limit overrun 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 27 Nov 2026 from 84 reports. All Limit overrun reports.