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.
- disclosed reports
- 4,177
- median public bounty
- $800
How it works
Full lessonThe 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,494Each 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 pathClear reports in order, easiest first.
-
1
Transferring any amount of the underlying token to the CNote contract will make the contract functions unusableBeginner
The contract uses its actual token balance as an internal accounting value, which can be changed by anyone via a direct transfer.
-
2
GHSL-2024-323: Denial of Service (DoS) in snapcraftBeginner
The regex pattern `^[0-9]+(ns|us|ms|s|m)*$` allows ambiguous repetition that causes catastrophic backtracking on invalid inputs.
-
3
Tinysvcmdns Multi-label DNS mdns_parse_qn Denial Of Service VulnerabilityBeginner
The return value of uncompress_nlabel is not checked for NULL before being stored and later dereferenced.
-
4
NFT Token ID contains forbidden character by design which prevents any domain from being issued at allBeginner
The domain registration code appends a colon to the domain name to form the NFT token ID, but the NFT module's validation rejects any token ID containing a colon.
-
5
2-byte DoS in freebsd-telnetd / netbsd-telnetd / netkit-telnetd / inetutils-telnetd / telnetd in Kerberos Version 5 Applications - Binary Golf Grand Prix 3Beginner
The erase-character and erase-line handlers dereference a pointer from the terminal special-character table without checking whether it has been initialised, and it is null in this code path.
-
6
Any account can exhaust the email-verification rate limit for an address it does not own, blocking that address's verification for an hourBeginner
The rate-limit key was built from the normalised email address alone, with no requesting user identifier, so all callers shared one counter per address.
-
7
Progress Software Corporation WhatsUp Gold TestController Chart denial of service vulnerabilityBeginner
The application fails to limit the 'pieces' parameter, allowing an attacker to control the number of loop iterations and cause excessive resource consumption.
-
8
Division by zero error can block RewardsPool#startRewardCycle if all multisig wallet are disabledBeginner
The code does not check whether the number of enabled multisig wallets is zero before performing a division by that count.
Guides and techniques
All guidesThe best explainers, cheat sheets and technique posts on DoS, from around the web.
-
Regexploit: DoS-able Regular ExpressionsDoyensec releases Regexploit, a tool that finds regular expressions vulnerable to denial of service.
blog.doyensec.com
-
Hunting Thread Exhaustion: Ischemia for HTTP/1.1 Partial-Entity HoldsReleases a tool that holds partial HTTP/1.1 request bodies to exhaust thread-per-request backends and prove denial of service.
medium.com
-
XML Denial of Service (XDoS) Understanding the Silent Threat to Web ServicesExplains XML denial of service attacks against web services and how to defend against them.
Explainer medium.com
Highest paid
View allThe biggest public bounties for DoS.
-
Groups module can halt chain when handling a proposal with malicious group weightsHigh Cosmos HackerOne
$15,000 -
Invalid handling of zero-length heredoc identifiers leads to infinite loop in the sandboxHigh shopify-scripts HackerOne
$10,000 -
Broken handling of maximum number of method call arguments leads to segfaultHigh shopify-scripts HackerOne
$10,000 -
Integer overflow in Layout (CVE-2024-7025)High Google Chrome Advisory
$10,000 -
Segfault in mruby, mruby_engine and the parent MRI Ruby due to null pointer dereferenceHigh shopify-scripts HackerOne
$10,000 -
Crash: Initialize Decimal with itself triggers an assertionHigh shopify-scripts HackerOne
$10,000 -
Null pointer derefence due to bug in codegen with negation without using valueHigh shopify-scripts HackerOne
$10,000 -
Range#initialize_copy null pointer dereferenceHigh shopify-scripts HackerOne
$10,000
Newest reports
All 4,177Most recently disclosed.
-
-
(0Day) GNU Inetutils talkd Stack-based Buffer Overflow Denial-of-Service VulnerabilityMedium Zero Day Initiative Advisory
-
llama.cpp MTMD Multimodal GGUF File Parsing Out-Of-Bounds Read Denial-of-Service VulnerabilityMedium Zero Day Initiative Advisory
-
llama.cpp GGUF File Parsing Integer Overflow Denial-of-Service VulnerabilityMedium Zero Day Initiative Advisory
-
(Pwn2Own) NVIDIA GPU Display Drivers TLS State Deadlock Denial-of-Service VulnerabilityLow Zero Day Initiative Advisory
-
-
-
-
-
New DoS reports by email
Follow DoS and get each week's new disclosures in one short email.