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 RLP length decoder returns a negative value that is treated as zero while the read position stays unchanged, so decoding loops forever.
Seen in 1 report
-
$5,000 High
-
-
The role check is applied unconditionally, including when a user is revoking a permit.
Seen in 1 report
-
The router assumes it creates the market and does not handle an already existing market.
-
The router assumes it must approve the vault for pool tokens that already grant infinite allowance, so increasing the allowance overflows.
Seen in 1 report
-
The router pays messaging fees from a single shared ETH balance using the contract's full balance, so any user can drain it.
Seen in 1 report
-
The router rounded down while the vault and module rounded up, so the module requested slightly more tokens than the router held.
Seen in 1 report
-
The router sets approval for all unconditionally on every operation instead of checking whether it already exists.
-
The router unconditionally calls permit without a try-catch or fallback, so a front-run permit causes the entire transaction to revert.
Seen in 1 report
-
The router's connection tracking table was exhausted by high-volume UDP packets with spoofed source addresses.
Seen in 1 report
-
The RPC handler does not cap the size of the amounts list, so the work grows without bound with attacker-controlled input.
Seen in 1 report
-
The RPC handler passed the block blob to the hashing code without validating a minimum length, so a size check deep in the hash routine aborted the process.
Seen in 1 report
-
The RPC server did not enforce a maximum request body size or reject unrealistic content lengths.
Seen in 1 report
-
The RPC server processes every entry in a batch without a maximum batch size or response size limit.
Seen in 1 report
-
The rstart regular expression had overlapping alternatives that caused exponential backtracking.
-
The runtime bind-mounts host files into the pod without making them read-only or capping their size.
Seen in 1 report
-
$1,000 Medium
-
-
The runtime inherited upstream base weight constants benchmarked on a different signature scheme and never overrode them.
-
The safe RPC policy does not block the state-call method, leaving a production state builder reachable.
-
The same page limit value is passed for both page size and maximum pages, so the number of topics processed per call is the page limit squared.
Seen in 1 report
-
The sandbox did not account for its own protection service binaries being added to the always-run-in-sandbox list.
-
The sanitising loop can reduce the pathname to an empty string, skipping default-file and 404 handling so a directory path reaches the file read and response write.
Seen in 1 report
-
The save routine appended a suffix to the target filename to create a temporary file, and when the resulting name exceeded the filesystem limit the temporary file creation or rename failed in a way that left the file empty.
Seen in 1 report
-
The saved broadcast transmit timestamp was updated before authentication and before the packet was accepted, so unauthenticated packets poisoned the replay state.
-
The scale factor used to keep the product factor from getting too small is insufficient, allowing it to round to zero.
Seen in 1 report
-
The scanner trusted the declared section count without checking the file was large enough.
Seen in 1 report
-
The scheduled task script was publicly accessible and processed every request without validation or rate limiting.
Seen in 1 report
-
The search grammar was ambiguous with no memoisation, so nested parentheses backtracked exponentially while a process-global lock was held.
-
The section duration was built from an attacker-controlled timestamp without an upper bound, so an out-of-range value broke trace rendering.
Seen in 1 report
-
The Security Monitor failed to validate the list_size field of the SECTION_ABIDepends metadata, using it directly as a loop bound.
Seen in 1 report
-
The seize path runs a liquidity check that should not apply to liquidations.
Seen in 1 report
-
The seizure function does not update the last-payout variable after removing rewards, so the stored value becomes stale.
Seen in 1 report
-
The send loop condition does not account for a zero payload length after a successful flush, so the loop never exits.
Seen in 1 report
-
The send queue accepted a fixed count of responses regardless of total size, so a non-reading client forced unbounded memory growth.
Seen in 1 report
-
The send-queue-full path slept the peer thread instead of dropping the connection, and object requests were accepted before the handshake completed.
Seen in 1 report
-
Medium
-
-
The sender trusted the peer's advertised MSS and did not bound segments or payload size per skb, so counters could overflow.
Seen in 1 report
-
The sequencer did not check block size before submission and did not roll back or split on rejection.
Seen in 1 report
-
Critical
-
-
The serialiser allocates memory from a buffer's declared length field without checking that the buffer actually holds that many bytes.
Seen in 1 report
-
The serialising object class deserialises user-supplied data without validating it.
-
The server accepted invalid percent encoding and the clients' URL parser threw an uncaught error when decoding it.
Seen in 1 report
-
The server accessed array elements from a user-supplied manifest without validating the indices.
Seen in 1 report
-
The server allocated fresh memory for each tiny indexed header reference without counting the true decoded size, and a zero window kept the allocations alive.
-
The server allocates a buffer from a client-supplied length and copies that many bytes without checking the packet size.
-
The server capped total decoded header size but not the number of header fields, and allowed a stalled stream to stay open with tiny window updates.
Seen in 1 report
-
The server did not enforce a limit on the number of contact records per user and relied on client-side validation.
Seen in 1 report
-
The server did not enforce the intended character limits on title and description before processing them.
Seen in 1 report
-
The server did not limit or throttle how many ConditionRefresh requests it would process.
-
The server did not limit resources used when decompressing compressed XMPP stanzas.
Seen in 1 report
-
The server did not properly validate the uploaded file's content type and content, allowing an SVG file to be stored and later served.
Seen in 1 report
-
The server did not reset a stream when header limits were exceeded until all header frames had been processed.
Seen in 1 report
-
The server did not validate authentication state before redirecting, causing a loop when the expected 2FA session was missing.
Seen in 1 report
-
The server does not check that a transaction identifier in a commit or abort request belongs to the sending client.