Reading list
Learn DoS from real reports
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.
12 reports, easiest first.
-
NFT Token ID contains forbidden character by design which prevents any domain from being issued at all
The domain registration function builds an NFT token ID containing a colon, but the underlying NFT module forbids colons in token IDs, so every registration reverts. This prevents any domain from being claimed, effectively causing a permanent denial of service.
When you register a domain, the system creates a unique digital certificate (an NFT) to represent it. The code that creates this certificate includes a colon in its name, but the certificate system does not allow colons, so the creation always fails. As a result, nobody can register any domain.
The lesson. 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.
-
Transferring any amount of the underlying token to the CNote contract will make the contract functions unusable
The CNote contract requires its underlying token balance to be zero for several functions to work. An attacker can transfer a small amount of the token directly to the contract, causing those functions to revert and making the contract unusable.
A smart contract can hold tokens, and its code can check how many tokens it holds. This contract wrongly assumes it will always hold zero of a certain token. Anyone can send tokens to the contract without its permission, so an attacker can send just one token and break the check, stopping the contract from working.
The lesson. The contract uses its actual token balance as an internal accounting value, which can be changed by anyone via a direct transfer.
-
Tinysvcmdns Multi-label DNS mdns_parse_qn Denial Of Service Vulnerability
A NULL pointer dereference in tinysvcmdns occurs when a DNS query packet has no question section, causing uncompress_nlabel to return NULL which is stored and later dereferenced. An attacker can send a crafted packet to crash the daemon, leading to denial of service.
This is a bug in a small DNS server library. When it receives a network packet that is missing expected data, it tries to use a 'null' value as if it were real, which crashes the program. An attacker can send such a packet to make the service stop working.
The lesson. The return value of uncompress_nlabel is not checked for NULL before being stored and later dereferenced.
-
GHSL-2024-323: Denial of Service (DoS) in snapcraft
A regular expression used to validate time values in snapcraft's YAML configuration is vulnerable to catastrophic backtracking (ReDoS). An attacker could supply a crafted snap with a malicious time value to cause the tool to hang, leading to a denial of service.
A regular expression (regex) is a pattern used to check text. Some regex patterns can become extremely slow when given certain inputs, a problem called ReDoS. Here, a time value like '0msmsms...x' makes the check take exponentially longer, so snapcraft freezes and cannot finish.
The lesson. The regex pattern `^[0-9]+(ns|us|ms|s|m)*$` allows ambiguous repetition that causes catastrophic backtracking on invalid inputs.
-
2-byte DoS in freebsd-telnetd / netbsd-telnetd / netkit-telnetd / inetutils-telnetd / telnetd in Kerberos Version 5 Applications - Binary Golf Grand Prix 3
Several telnet server implementations dereference a null pointer when they receive a two-byte telnet command sequence for erase-character or erase-line, because the corresponding terminal control table entry is never initialised. An unauthenticated attacker can crash the telnetd process, and the text also describes a variant that makes the denial of service permanent.
Telnet is an old protocol for remote terminal sessions. It uses special byte sequences starting with a control byte to send commands, and one of those commands tells the server to erase a character or a line. The server code reads a pointer from a table that was never filled in, so it tries to read from address zero and the program dies, which means nobody can log in over telnet until it restarts.
The lesson. 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.
-
Any account can exhaust the email-verification rate limit for an address it does not own, blocking that address's verification for an hour
The email-verification rate limiter was keyed on the email address being verified rather than on the requesting account, so any logged-in user could spend another person's send budget by naming their address. The address owner was then refused verification for an hour, and the attacker could renew the block indefinitely with three requests per hour.
A rate limit is a cap on how many times something can be done in a period, used to stop spam. Here the cap was counted per email address instead of per person asking, so anyone could use up someone else's allowance by asking for verification mail to be sent to that address. The real owner then got an error saying too many emails had been sent, even though they had sent none.
The lesson. 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.
-
An attacker can DoS vault’s buyout with as little as 1 wei per 4 days
A user can start a buyout with as little as 1 wei, and while that buyout is active no one else can start another buyout on the same vault. An attacker can therefore block legitimate buyouts for up to 4 days at negligible cost.
A buyout is a way to offer to buy all the shares of a vault. The contract lets anyone start a buyout with almost no money, and while it runs nobody else can start one. So an attacker can pay a tiny amount to stop real buyers for days.
The lesson. The contract allows a buyout to be started with a negligible amount and prevents any concurrent buyout, so a low-value buyout locks out higher offers until it expires.
-
VMware vCenter Server Content Library denial of service vulnerability
A pre-authentication denial-of-service vulnerability exists in the Content Library service of VMware vCenter Server. An attacker can send a crafted HTTP header to cause excessive memory and CPU usage, potentially leading to a temporary denial of service.
This report describes a denial-of-service bug in VMware vCenter Server. An attacker can send a special HTTP header that makes the server allocate a huge amount of memory and loop many times, which can slow down or crash the service. No login is needed, so anyone who can reach the server can try it.
The lesson. The code reads an integer from the 'TokenParts' HTTP header and uses it directly to allocate an array and control a loop, without validating or limiting the value.
-
Division by zero error can block RewardsPool#startRewardCycle if all multisig wallet are disabled
The RewardsPool contract's startRewardsCycle function divides the multisig reward allotment by the number of enabled multisig wallets. If all multisig wallets are disabled, this division by zero causes the transaction to revert, blocking the reward cycle from starting.
A smart contract function that distributes rewards to multiple wallets calculates how much each wallet gets by dividing the total reward by the number of wallets. If there are no wallets to receive rewards, the division is by zero, which is not allowed in the programming language used, so the whole function fails and no rewards can be distributed.
The lesson. The code does not check whether the number of enabled multisig wallets is zero before performing a division by that count.
-
Any installed app can force immediate logout and persistent DOS of authenticated Basecamp sessions via unprotected exported StartActivity
The Basecamp Android app exported an activity without permission checks, allowing any installed app to launch it and force the user back to the login screen. An attacker could repeatedly trigger this to make the app unusable.
Android apps can expose parts of themselves to other apps. If a part that handles login or startup is exposed without protection, any other app on the phone can call it. Here, calling that part made Basecamp log the user out, and doing it repeatedly stopped the user from staying logged in.
The lesson. Likely the StartActivity is exported without a permission guard and its startup logic does not check for an existing authenticated session before resetting navigation.
-
Progress Software Corporation WhatsUp Gold TestController Chart denial of service vulnerability
The TestController Chart endpoint in WhatsUp Gold accepts an unauthenticated request with a user-controlled 'pieces' parameter that determines how many data points are generated in a loop. An attacker can set this to a high value to cause excessive CPU consumption, leading to denial of service.
This is a denial-of-service bug. The web server has a feature that draws a chart, and the number of slices in the chart is taken directly from the URL. By asking for a huge number of slices, an attacker can make the server work very hard and become unresponsive for legitimate users.
The lesson. The application fails to limit the 'pieces' parameter, allowing an attacker to control the number of loop iterations and cause excessive resource consumption.
-
CPU Exhaustion via Crafted TOML Files in translation-finder
The translation-finder library's TOML format check reads files character by character, so a TOML file with a very long single line takes about 0.1 seconds to process. An attacker can include about 64 such files in a repository, causing tools like Weblate that scan repositories to spend around 7 seconds of CPU time per scan instead of milliseconds.
A library used to detect translation file formats checks TOML files by reading them one character at a time. If a file has a very long line, this slow reading method takes a noticeable amount of time. By putting many such files in a repository, an attacker can make the scanning tool waste several seconds of processing time each time it scans that repository.
The lesson. The function `_toml_line_code()` reads lines character by character without any limit on line length, making it slow for very long lines.