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.
-
Message size is not re-checked against the maximum after being received across packets.
-
Message validation did not check hash length and the processing task did not recover from panics.
Seen in 1 report
-
Migration trusted the contract's raw token balance instead of tracking only tokens received from the bootstrap pool.
Seen in 1 report
-
Minting shares to the proxy sets a lock on the proxy, which then cannot transfer them.
Seen in 1 report
-
Medium
-
-
Missing input length validation on a text field.
-
Missing loop termination condition when parsing Spotlight RPC arguments.
Seen in 1 report
-
Missing null check during certificate conversion.
Seen in 1 report
-
Missing validation of crafted neighbour discovery packets combined with a low rate limit let junk packets crowd out legitimate ones.
Seen in 1 report
-
Missing validation of input values in RFC processing allows a divide-by-zero in the kernel.
Seen in 1 report
-
Missing validation of zero-length ASN.1 objects and failure to account for tag bytes when calculating remaining buffer size.
-
Missing validation that the fee value is at most the maximum basis points.
Seen in 1 report
-
Missing zero-channel check before division, with a failed codec open overwriting the channel layout.
Seen in 1 report
-
Module evaluation did not check that the module and the promise resolution value were in the same compartment.
-
Most gossip topics were initialised with a zero topic weight, so invalid-message penalties were always zero.
-
Multiple greedy whitespace quantifiers around a non-greedy capture cause cubic backtracking.
Seen in 1 report
-
Multiplication before division without a safe mulDiv helper.
-
Name-building routines do not null-terminate the string, so a later length call reads past the heap buffer.
Seen in 1 report
-
Native currency is pushed to the referrer with a call that reverts on failure, and the referral code is fixed at deployment.
Seen in 1 report
-
A negative error code assigned to an unsigned size variable causes an infinite loop.
Seen in 1 report
-
Nested loops over operators and tokens made gas grow quadratically.
-
Nested repetition in the grammar rule for directives causes excessive lookahead.
Seen in 1 report
-
NFTs are pushed to user-controlled addresses inside the bot flow before state cleanup.
Seen in 1 report
-
Nil pointer dereference in the assertion consumer when building the session cookie from unexpected SAML input.
Seen in 1 report
-
No alias limit or per-operation cost calculation, with rate limiting applied only per HTTP request.
Seen in 1 report
-
No byte, item-count or rendering-work bound was applied to the links record before parsing and eagerly rendering one card per item.
Seen in 1 report
-
No cap on checkpoint growth combined with repeated binary searches inside nested loops.
Seen in 1 report
-
No cap on gauge creation and a loop over the whole gauge array.
Seen in 1 report
-
No check for the edge case where the numerator is minus one and the denominator is the minimum integer value.
Seen in 1 report
-
$500 Medium
-
-
No check that a token balance is greater than zero before transferring, so a zero-transfer revert blocks the loop.
Seen in 1 report
-
No check that initial liquidity amounts or minted LP tokens are greater than zero.
Seen in 1 report
-
No check that removed amounts are non-zero before calling collect, which reverts when both are zero.
Seen in 1 report
-
No effective server-side rate limit or usage quota was enforced on the chat endpoint.
-
No enforced rate limits or recursion detection on automation scripts calling the public API.
Seen in 1 report
-
No fee is charged for creating or cancelling orders, so slots can be filled cheaply.
-
No function to remove a derivative, so a failing derivative stays in the unstake loop and reverts the whole call.
-
No guard against an exponential helper returning zero before dividing, and a catch block that leaves the accrual timestamp stale.
Seen in 1 report
-
No hard upper limit on the worker count parameter and no account-level spending caps.
-
No length check on the nonce response vector before it is passed to a compute-heavy signing routine.
-
No limit is placed on the number of open-secure-channel requests processed.
-
No limit on concurrent calls and database sessions not released properly, exhausting the pool.
Seen in 1 report
-
No limit on issue comment length, so very large inputs are accepted and processed inefficiently.
Seen in 1 report
-
$1,000 Low
-
-
No limit on the number of continuation frames for an unfinished message, so the client buffers without bound.
Seen in 1 report
-
No limit on the number or size of HTTP headers curl will accept.
Seen in 1 report
-
No limit was placed on the number or total size of response headers stored in memory.
Seen in 1 report
-
No limits on query depth or complexity, so circular schema relationships can be exploited.
Seen in 1 report
-
No maximum is enforced on the limit parameter, allowing unbounded resource consumption.
Seen in 1 report
-
No maximum length check on the destination address parameter allows arbitrarily large payloads that exceed the destination chain's gas limit.
-
No maximum length constraint on the release name field in the API and database.
Seen in 1 report
-
No maximum length is enforced on the display name, causing resource exhaustion on very long strings.
-
No maximum length was enforced on the instruction field before the oversized input was processed and stored.
Seen in 1 report