In-depth lesson · DoS
Root causes
Every point the DoS reports back under this heading, best-backed first, each with the reports it is seen in.
-
The certificate-time transaction handler does not verify the nominee account exists and pre-validation does not block these transactions.
Seen in 1 report
-
The Ceylon lexer regex in the syntax highlighter backtracks catastrophically on a long run of backticks.
Seen in 1 report
-
The CGI layer reads and parses the full POST body before authentication runs.
-
The chat API endpoint had no rate limiting or throttling.
Seen in 1 report
-
The check assumes a non-zero local token mapping means the ecosystem token was already added, but anyone can populate it.
-
The check that should reject deflate encoding only ran when HTTP compression was disabled, so on default installs the body reached a buggy decompressor.
Seen in 1 report
-
The checkpoint returns a service ID array that is not refreshed after eviction, so unstake uses stale indices.
Seen in 1 report
-
The checkpoint writer subtracts one from a zero count without checking, causing an underflow when accessing the checkpoints array.
Seen in 1 report
-
The circuit unconditionally enforced the mul/div relation for division, even when the divisor was zero and the quotient and remainder were forced to zero, so the relation did not hold.
Seen in 1 report
-
The circulating supply function subtracts without checking for a negative result.
-
The claim amount is subtracted from total assets at epoch without checking the total is sufficient.
Seen in 1 report
-
The claim calculation divides by per-period total fees without checking that the divisor is non-zero.
Seen in 1 report
-
The claim function did not limit the size of return data from winner contracts.
Seen in 1 report
-
The claim function iterates over all unclaimed epochs in a single transaction without a way to cap the range, so the gas cost grows without bound.
-
The claim function iterates over an unbounded array of windows, and the increment function lacks proper access control, allowing an attacker to increase the array length.
Seen in 1 report
-
The claim function processes an unbounded array of token IDs that can grow without limit.
Seen in 1 report
-
The claim function returned early on zero rewards without updating the last-claimed period, so the period gap kept growing past the maximum.
-
The claim loop uses the voter's latest finished period as its end instead of the rewarder's own last period, causing an out-of-bounds array access.
-
The claim process transfers every deposited token in a single transaction without handling transfer failures.
Seen in 1 report
-
The claim relied on a signature that anyone could consume by calling the program manager directly.
-
The client did not limit the number of URLs generated by a glob range.
Seen in 1 report
-
The client does not handle a missing or deleted SKU when loading subscription metadata.
Seen in 1 report
-
$4,000 Critical
-
-
The client fetches pending deposits without paging parameters, so only the first page is ever seen.
-
The client placed no limit on the number or size of cookies it stored.
Seen in 1 report
-
The client read the iteration exponent from the untrusted server and only bounded it with a very high cap.
-
The client trusted a server-supplied literal size and allocated a buffer without an upper limit.
Seen in 1 report
-
The client trusted the server's encryption method and entered FIPS code paths without checking the decryption context was initialised.
-
The client's consumer key and secret were shipped inside the desktop application, so anyone could invalidate the shared bearer token.
-
The close function does not properly limit recursion when handling certain image output objects.
Seen in 1 report
-
The close function zeroed the account data instead of resizing it, so a revived account failed the empty-account check on re-creation.
Seen in 1 report
-
The code assumed that if either transaction array had length one then the structured array was non-empty, and called front() without checking.
-
The code assumed the asset was an ERC20 and called decimals on the zero address for native ETH.
Seen in 1 report
-
The code assumed the collateral NFT was minted to the router when it was actually minted to the borrower, so the subsequent transfer from the router reverted.
Seen in 1 report
-
The code assumed the second swap would consume the entire intermediate amount and enforced strict equality instead of allowing a remainder.
-
The code assumes a requested block size will be acknowledged or used and does not fall back to the default.
Seen in 1 report
-
The code assumes an external call to redeem a position will always succeed and does not handle failures, so one failure reverts the entire operation.
Seen in 1 report
-
The code assumes at least one checkpoint exists and subtracts one from zero, causing an underflow.
Seen in 1 report
-
The code assumes swap output never exceeds the remaining amount to buy.
-
The code assumes the exchange rate of ETH-backed assets never decreases and subtracts a value that can exceed the stored deposit.
-
The code assumes the optional symbol function returns a string.
Seen in 1 report
-
The code assumes the pool token is present in the assets array, so the skip logic misaligns indices and overwrites the array.
-
The code assumes the stored last-reward time is never later than the current block time and performs an unchecked subtraction.
-
The code bounds the number of encodings within a single header but not the total number of headers, so each header still triggers a buffer allocation.
Seen in 1 report
-
The code called a max-element search on an empty vector and dereferenced the returned end iterator without checking for emptiness.
Seen in 1 report
-
The code calls expect on a bounded channel send without handling the full-queue error.
Seen in 1 report
-
The code calls getPriorVotes with block.number, but the token contract requires the block number to be strictly less than the current block.
Seen in 1 report
-
The code calls ownerOf on an NFT that may have been burned, and ownerOf reverts for nonexistent tokens.
Seen in 1 report
-
The code calls safeApprove with a non-zero amount without first resetting the existing allowance to zero.
Seen in 1 report
-
The code calls the fetch library without a maximum response size, and the library decompresses responses automatically.
Seen in 1 report
-
The code casts a pointer to a 32-bit unsigned integer before passing it to a memory move, truncating the address on 64-bit systems.