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.
-
Chunk ID is used to look up a buffer without checking it is within the supported range.
Seen in 1 report
-
Chunk parser copies the declared length into a fixed-size buffer without checking it against the buffer size.
Seen in 1 report
-
Critical
-
-
Cleanup counts all listeners for an event instead of checking for remaining filtered listeners, and runs before the listener is removed.
Seen in 1 report
-
Client certificate contents are not validated before processing.
-
Client poll loop does not handle empty header values and blocks indefinitely.
Seen in 1 report
-
Client-side code decoded a percent-encoded value without checking the following characters were valid hexadecimal digits.
Seen in 1 report
-
Client-supplied object reference passed to ObjectSpace._id2ref without validation.
Seen in 1 report
-
Code assumes every ERC20 transfer returns a boolean.
Seen in 1 report
-
Code was ported from an older Solidity version to 0.8 without unchecked blocks around arithmetic meant to overflow.
Seen in 1 report
-
Colour field stored without validation against the formats the frontend can render.
Seen in 1 report
-
Comment endpoints accepted repeated submissions without any throttling.
Seen in 1 report
-
Competing event handlers are not coordinated or serialised.
-
Computing the last index as length minus one before checking for an empty array, so the subtraction underflows.
Seen in 1 report
-
Configuration values used as divisors or loop capacities are not validated as greater than zero.
Seen in 1 report
-
Connection handling enforces a fixed maximum number of simultaneous connections with no authentication or rate limiting.
Seen in 1 report
-
Converting the desired amount with integer division truncates downwards, so the redemption returns slightly less.
-
Cookie engine accepts control codes in names and values.
Seen in 1 report
-
Cookie values are parsed without proper memory management.
Seen in 1 report
-
Corrupted JPEG thumbnail data is decoded without validation before use.
-
CREATE2 with a salt derived only from the asset address, combined with a permissionless createJoin function, allowed anyone to occupy the deterministic address.
Seen in 1 report
-
Creation uses integer-times-decimal multiplication while cancellation uses decimal-times-decimal multiplication with different overflow behaviour.
-
Credit function is callable by anyone with a tiny value and changes the lien hash used by validation checks.
Seen in 1 report
-
Medium
-
-
Critical section not released on an error path, session counter decremented incorrectly, memory leaked on error.
Seen in 1 report
-
Cycle records are chosen by a gameable hash-based score rather than consensus voting, so one node can brute-force a high-scoring fake record.
-
Dashboard YAML is loaded without prior size, complexity or schema validation.
-
Date inputs are not validated or bounded, so the renderer processes an enormous range of dates.
Seen in 1 report
-
Debugging JSON-RPC methods are enabled by default on a public node without access controls.
Seen in 1 report
-
The declared uncompressed size is checked but the actual read is not limited during package extraction.
Seen in 1 report
-
Decompression and processing of compressed request bodies runs without limiting total memory use or concurrency.
Seen in 1 report
-
Brotli decompression buffers all extracted data into one output buffer with no maximum size.
Seen in 1 report
-
DA blob decompression runs with no output size limit and happens before signature verification.
Seen in 1 report
-
The deeplink handler parses login data without catching exceptions.
-
Deletion zeroes array entries instead of removing them, so arrays never shrink.
Seen in 1 report
-
Dense recurrence rules were only validated on some import paths and rendering had no upper bound on occurrences.
Seen in 1 report
-
The deposit loop calls each derivative's deposit without checking external protocol limits or availability.
Seen in 1 report
-
The deposit loop reverts instead of skipping a validator key already marked active.
Seen in 1 report
-
Deprecated code that lets an admin conditionally revert transactions based on user identity was left in the contract.
Seen in 1 report
-
The sqlquery pointer is dereferenced without a null check while processing features.
-
Deserialisation reads a length field from the stream and allocates or loops on it without checking against a sane maximum.
Seen in 1 report
-
Destination gas was hardcoded to zero and the receive handler did not validate source chain, sender or token.
Seen in 1 report
-
Detached tasks hold semaphore permits for their whole lifetime regardless of client disconnect, and a single-threaded routing loop blocks when the downstream channel is full.
-
Direct Ether transfers to the borrower can be blocked by a reverting receive function.
-
Disapproval only checks that the action is queued, not that it is still before the minimum execution time.
Seen in 1 report
-
Distribution processes all gauges in one loop without handling per-gauge failures.
Seen in 1 report
-
Dividing before multiplying rounds the value to zero, with no minimum oracle decimal precision enforced.
Seen in 1 report
-
DNSSEC verification complexity can be exploited to exhaust CPU resources and stall DNS resolvers.
-
Doubling a 32-bit size in the buffer resize function can wrap around and loop forever.
Seen in 1 report
-
Downloaded artifacts are read fully into memory with no size limit.
Seen in 1 report
-
Medium
-
-
The driver applies transmit power values from beacon frames without verifying the sender.
-
DTLS packets are not filtered against the address and port validated by ICE.
Seen in 1 report