Skip to content

Bug class · Intermediate

Denial of service

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

median public bounty
$800

Covers CWE 400, 770, 1333, 674, 835, 409.

How it works

Full lesson

The pattern behind every report in this class.

Denial of service in bug bounty terms means making a service, device or application stop responding or crash, usually by exhausting memory, CPU, file descriptors or gas. Programs care because availability is part of their security promise, and a crash in a shared component can take down many users at once. The evidence shows this class is common in parsers, network services, smart contracts and kernel drivers, and it often leads to a crash, a hang or a resource exhaustion that blocks legitimate use.

It turns up most often where untrusted input is processed before validation: gossip and consensus message handling, HTTP/2 and HTTP/3 stacks, regular-expression validation, image and document parsers, Modbus and other industrial protocols, and smart contract loops over unbounded arrays. The reports also show it in privileged local services that follow links, in kernel drivers that dereference unchecked pointers, and in web dashboards that fetch attacker-controlled records automatically.

What it usually leads to is a crash, a hang, a timeout or a blocked operation rather than data theft. In smart contracts it often means a transaction reverts or a settlement is blocked, and in local services it can mean a privileged file is deleted or overwritten. The evidence includes many reports where the impact was a system crash, a service becoming unavailable, or a loop that runs out of gas.

The basic pattern is that a program accepts input from someone it does not trust and does expensive work before checking that the input is reasonable. The work might be allocating a buffer sized from a declared length, decompressing data, running a regular expression, looping over an array, or following a path. Because the check comes after the work, an attacker can make the program spend far more resources than intended.

Things to try

All 3,494

Each line worked in a disclosed report. Test only what a program's scope allows.

Other 793

  • Send user-supplied data with an oversized length to the AlertService as an unauthenticated remote client and watch for a crash or resource exhaustion.
  • Repeatedly terminalise a failed protection close and immediately retry it in one transaction, then check whether the owner can amend limits or close.
  • Send requests crafted to hit inefficient algorithmic complexity in ASP.NET Core and measure response time.
  • Send specially crafted packets to the Internet Connection Sharing service from the same network segment and check whether it becomes unavailable.

Browser and web content rendering 662

  • Load crafted web content in the browser and watch for crashes caused by state management or input validation flaws.
  • Send specially crafted web requests to an ASP.NET Core application and check for resource exhaustion or a crash.
  • Run a malicious server that streams an endless series of HTTP response headers and check whether the client's memory grows without bound.
  • Send crafted HTTP/2 control frames such as reset floods, priority shuffling, data dribbling and zero-length headers to a server and watch for memory growth or CPU saturation.

Token allowance and transfer quirks 314

  • Create a token through a public factory, enable a dust sale, and check whether the admin can still change the purchase token.
  • Deposit a token that rejects changing a non-zero allowance to another non-zero value after a partial spend and check whether the next deposit reverts.
  • Send a tiny amount of the strategy's token to it, then trigger an allocation and see whether the router pulls the whole balance beyond the approval.
  • Withdraw native tokens to a contract whose fallback needs more than the fixed gas stipend and see whether the transfer reverts.

Consensus gossip and block topics 218

  • Connect to a consensus-layer gossip peer and send many unique small malformed block-topic messages whose declared decompressed length is far above the gossip cap, keeping each frame under the wire limit.
  • Open many connections that negotiate the noise protocol and then stall before sending the first handshake message, and measure CPU and memory.
  • Send the block-hashes JSON-RPC method a normal from-block and a very small negative to-block and see whether the node hangs.
  • Serve a peer a structurally valid block whose proof-of-work seal is corrupted and watch whether the victim penalises or disconnects that peer, or just restarts sync.

Vault share and principal accounting 207

  • Drive Junior principal to near zero, then make repeated small Junior deposits and settle each epoch to inflate share supply and check whether settlement reverts.
  • Push a vault's raw share supply close to the maximum integer and then trigger a redemption or settlement to see whether checked arithmetic panics and blocks later settlements.
  • Grow share supply while principal stays tiny and positive, then submit a deposit whose share quote cannot be represented, and check whether the whole settlement call reverts.
  • As the first depositor, wrap a tiny amount so total supply is one, then send a large amount of reward tokens to the contract and check whether the reward integral overflows.

Bypasses and variations

All 102
  • Craft input with many repeated patterns or opening parentheses to trigger backtracking in a validation or parsing regex.
  • Grow arrays through repeated deposits, withdrawals or registrations until loops exceed the block gas limit.
  • The compressed-size cap was never applied to the decompressed output, so staying under the wire limit did not bound the allocation.
  • Wrap the deeply nested call inside a multisig proposal so the outer extrinsic depth limit never inspects the inner bytes.
  • Negotiate the noise protocol and then stall before the first handshake message so the expensive work is already done.
  • Transfer the crafted name to a victim so the dashboard fetches the malicious record without the victim clicking or signing anything.

Typical fixes

All 254
  • Replace vulnerable regular expressions with ones that do not have overlapping or ambiguous clauses, or use a linear-time matcher.
  • Check the declared decompressed length against the gossip size limit before allocating or decompressing.
  • Resolve and validate the real target path before a privileged service or installer writes a file, and refuse to follow symbolic links.
  • Restrict access to dangerous writer and logging functions.
  • Replace backtracking-prone regular expressions with linear-time parsing or bound the input length.
  • Enforce maximum lengths and validation on message, template, name, password and avatar fields.

Tips for beginners

All 14
  • Start with the program's scope and its rules on availability. Many programs exclude denial of service or require a specific impact, so read the policy before testing. The evidence includes many reports, but that does not mean every program accepts this class.
  • Look for places where a declared size or length is used before it is checked against the actual data. Small frames that declare huge decompressed sizes, length fields that can wrap, and parsers that trust field values are good starting points.
  • Test regular expressions with crafted inputs that repeat patterns or opening parentheses, and time the response. If the expression is vulnerable, the slowdown will be obvious. Confirm it in a standalone script before reporting.
  • In smart contracts, look for public functions that append to per-user arrays and later functions that loop over them. Deposit tiny amounts naming another address as recipient many times, then have that address withdraw and watch for gas exhaustion.
  • Check arithmetic that can underflow or overflow, especially index calculations on empty arrays and stake decreases that can go below zero. A revert that blocks settlement is a valid impact if the program accepts it.
  • For local services, look for privileged processes that write to or delete from locations a low-privileged user can control. Create a link or junction and see whether the service follows it. The evidence shows this pattern in backup services, installers and antivirus services.

Start here: a reading path

Open the path

Clear reports in order, easiest first.

Guides and techniques

All guides

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

Newest reports

All 4,177

Most recently disclosed.

New DoS reports by email

Follow DoS and get each week's new disclosures in one short email.

Free. New reports for what you follow, weekly by default. One-click unsubscribe. Privacy