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 contract uses a safe mint that performs a receiver acceptance check, and a malicious receiver can revert it, blocking the queue.
Seen in 1 report
-
The contract uses a single success flag for all token transfers in withdraw and requires that flag to be true, so any failed transfer reverts the whole withdrawal.
Seen in 1 report
-
The contract uses an exact equality check between its token balance and the user's expected output amount.
Seen in 1 report
-
The contract uses Solidity 0.8.x's checked arithmetic for fee growth calculations, which reverts on underflow, whereas Uniswap V3's design expects unchecked underflow/overflow.
-
The control plane processes a large deployment object on every scale operation without rate limiting or resource bounds.
Seen in 1 report
-
The control-frame send path returns early when outgoing payload remains, so PONG replies are queued rather than written immediately.
-
The convergence check requires successive iterations to differ by at most one, but the iteration can oscillate by two.
-
The conversion does not handle total assets being zero while supply is non-zero, because payout burns no shares.
-
The cookie parser splits on every equals sign instead of only the first and does not handle a cookie string starting with an equals sign.
Seen in 1 report
-
The cookie parsing algorithm has super-linear time complexity for certain inputs.
Seen in 1 report
-
The coordinator indexes internal maps with signer IDs from untrusted messages without checking the IDs exist.
-
The Cosmos to Ethereum transaction conversion has no default case for unrecognised message types.
-
The count query has no limit or offset and is too heavy to finish within the request timeout.
-
The CREATE3 library assumes Ethereum's CREATE2 address calculation, but zkSync Era uses a different formula.
Seen in 1 report
-
The creation function hardcodes zero slippage by setting the minimum amounts equal to the desired amounts.
Seen in 1 report
-
The credentials field has no maximum length, so arbitrarily large data is stored and processed.
Seen in 1 report
-
The crowdfund uses a plain mint while the governance contract uses a safe mint that checks the receiver.
Seen in 1 report
-
The cumulative price arithmetic uses checked addition and subtraction, so an overflow or underflow reverts instead of wrapping as cumulative price maths intends.
Seen in 1 report
-
The custody group count is fetched from the peer three times without caching, so a peer could change its answer between calls.
Seen in 1 report
-
The custom stringify function allocates memory from an attacker-controlled buffer length without checking the content matches.
Seen in 1 report
-
The custom URL handler for non-production environments does not check for an already-running instance.
Seen in 1 report
-
The cycle validation does not check that the response is iterable and does not return false when field type checks fail.
Seen in 1 report
-
The DA light node lacks sender authentication and batch size limits, so anyone can inject transactions into its mempool.
Seen in 1 report
-
The daemon does not limit open connections and does not time out idle ones.
Seen in 1 report
-
The dashboard fetches a full fixed coin inventory for every visible name and passes arbitrary resolver bytes into synchronous conversion with only a prefix check.
-
The dashboard requests record data it does not need and the decoder has an indefinite-map loop with no end-of-input check.
-
The data utility adds start and size as unsigned integers without checking for overflow.
-
The datetime regex has nested optional groups that cause excessive backtracking.
Seen in 1 report
-
The debt reduction function does not cap the repayment amount at the current debt, so an unexpected small repayment causes an underflow.
Seen in 1 report
-
The debt-settlement loop performs an unchecked subtraction per protocol inside a single transaction, so one insufficient balance reverts the entire batch.
Seen in 1 report
-
The decode error is assigned to a new variable while the code checks the outer error variable, so a failed decode does not stop execution.
Seen in 1 report
-
The decoder allocates memory from the declared length without confirming enough data is available.
Seen in 1 report
-
The decoder appends uncompressed chunk data without comparing its checksum to the computed value.
Seen in 1 report
-
The decoder checks only the size of the id value rather than the total encoded record size, and the client adds no length check of its own.
Seen in 1 report
-
The decoder indexes the first path byte and slices the rest without checking that the decoded path is non-empty.
-
The decoder trusts size values read from the file and allocates buffers from them without capping against the real input size.
Seen in 1 report
-
The decoder uses an attacker-supplied length directly as an allocation size and allows unbounded nested unknown fields inside a group.
-
The decoding helper assumes its argument is a string and computes an index before validating the type.
-
The decompression bomb size limit is not applied to brotli-compressed responses.
-
The decompression logic does not limit resources consumed when expanding a compressed request body.
Seen in 1 report
-
The decompression routine trusts the uncompressed size field in the gzip footer and allocates that much memory before decompressing.
Seen in 1 report
-
The decompression routines loop over a fixed buffer without tracking total output bytes, so there is no cap on expansion.
Seen in 1 report
-
The default idle timeout is zero and the header timeout only covers the header phase, so slow bodies are not detected.
Seen in 1 report
-
The default naming scheme uses a predictable counter and does not reserve generated names, so a user can pre-claim the next default symbol.
-
The default pool size exceeds the per-peer gossip cache, causing an all-miss resend loop that overflows the notification queue.
-
The defence inspects only the first fragment or cannot reassemble fragmented DHCPv6 messages.
Seen in 1 report
-
The delegate cap is too high for chains with a lower block gas limit.
Seen in 1 report
-
The delegator uses a staticcall for functions that were no longer view and needed to update state, causing a revert when state changes were attempted.
Seen in 1 report
-
The delete endpoint lacks an authorisation check and poor error handling turns the failure into a 500 that breaks the forum UI.
Seen in 1 report
-
The denial-of-service mitigations are based on memory usage only, so empty repetitions allocate nothing and slip past.
Seen in 1 report