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.
-
A pointer is not initialised when the request has no extra data and is later dereferenced without a check.
Seen in 1 report
-
A pointer variable was reused without being reset to null before a second call that required it to be null.
Seen in 1 report
-
A predicate iterated an Option wrapper rather than the inner transaction list and only inspected the first transaction, so any batch starting with a deposit was treated as deposits-only.
-
A predictable contract address from the create opcode combined with a share conversion formula allows donation attacks to inflate share price.
Seen in 1 report
-
A previous security fix only patched the parser branch that takes an options hash, leaving the default branch able to instantiate arbitrary named constants.
Seen in 1 report
-
A privileged role was granted to a shared permissionless executor contract rather than a fixed trusted address.
Seen in 1 report
-
A prototype mismatch meant the function expected a pointer but received a length value, causing an invalid memory dereference.
Seen in 1 report
-
A provider class exposed its functionality without requiring authentication at all.
Seen in 1 report
-
A public helper can advance the bid cursor past the end of the bid list, causing a division by zero at settlement.
-
A race between header frame processing and session destruction on connection close.
Seen in 1 report
-
A race condition in HTTP request handling leads to a state that crashes or hangs the service.
-
A race condition in the FTP command loop meant new input arriving before the previous response was handled caused a crash.
Seen in 1 report
-
A race condition in the Pluton firmware's handling of concurrent syscalls led to a rate limit that triggered a reboot.
Seen in 1 report
-
A read buffer is resized to the peer-declared frame length before any frame body arrives.
-
A receipt lookup calls ownerOf on a token that may have been burned instead of handling the missing token.
Seen in 1 report
-
A receive buffer size exceeds the maximum allowed by an assertion check when a large length is passed to the buffer allocation.
-
A receive() function was marked nonReentrant, so the legitimate callback during completeQueuedWithdrawal() was blocked.
-
A recursive call in the namespace method loops when resolving an attribute with a namespace prefix and a default attribute of the same name.
Seen in 1 report
-
A reentrancy check enforced one delegation per block by comparing block height to a stored value.
Seen in 1 report
-
A regression from a change that optimized garbage collection barriers for object creation caused an incorrect assumption about value types in the ARM JIT compiler.
Seen in 1 report
-
A regular expression was built from unsanitised user input without escaping special characters.
Seen in 1 report
-
A rendering error triggered by the combination of a collapsed message group and its banner was not handled gracefully.
Seen in 1 report
-
A require on request existence does not handle the case where a token's exit balance is zero and no request was created.
Seen in 1 report
-
A require statement enforcing a non-zero intermediate price prevents the function from signalling failure with zero.
-
A safe transfer is called unconditionally with a zero amount without checking for zero first.
-
A server-supplied length-encoded integer was used as an array size with no upper bound.
-
A session is added to the cache but its session id length is later set to zero, and removal only deletes entries with a non-zero length.
Seen in 1 report
-
A share-based token transfer can deliver slightly less than the requested amount.
-
A signed size field is added to a constant without an overflow check, so a negative value produces a zero allocation length.
Seen in 1 report
-
A signedness error in a bounds check and a missing offset validation led to a negative size passed to realloc and an out-of-bounds read.
Seen in 1 report
-
A single fixed-size merkle tree with a hard entry cap was used for all withdrawals, and the append function reverted at the cap.
Seen in 1 report
-
A single-byte loop counter is compared with a two-byte packet length, so the counter overflows before the loop ends.
Seen in 1 report
-
A size check returns early for shader stages other than vertex and fragment, so compute shaders skip the limit.
Seen in 1 report
-
A size check used the size of a 16-bit length value, so it only rejected a remaining count of zero or one instead of the full two bytes.
Seen in 1 report
-
A small static pool of TCP endpoints with idle timeouts disabled, so connections are never released.
Seen in 1 report
-
A state machine bug left the DO state incomplete so the code looped without progress.
Seen in 1 report
-
A staticcall that always reverts due to a state change, with no gas cap, consumes 63/64 of the gas forwarded.
Seen in 1 report
-
A strict equality check between the debt balance change and repaid assets does not account for rounding in share conversions.
Seen in 1 report
-
A strict greater-than comparison is used instead of greater-than-or-equal when checking the two-thirds participation threshold.
-
A strict less-than comparison is used where less-than-or-equal is needed.
-
A string-length loop in a driver lacked a bound check, so it read beyond the supplied buffer when no terminator was present.
Seen in 1 report
-
A struct is copied with the memory data location instead of a storage reference, so the active flag is never updated.
Seen in 1 report
-
A struct member had no default initialiser and was only assigned when a pixel-local storage struct was present, so the hash read an indeterminate value.
Seen in 1 report
-
A support check compares a token contract address against an empty string while the configuration stores the zero address string, so the check never matches.
-
A syscall that panics on failure is used instead of one returning a success flag, so reverts cannot be handled gracefully.
Seen in 1 report
-
A trailing-whitespace regular expression in the HTTP client library lacked a starting anchor, giving quadratic backtracking on long runs of spaces.
Seen in 1 report
-
A try/catch around an external call does not revert the state change on failure, letting an attacker force the failure and trigger a cooldown.
Seen in 1 report
-
A try/catch only wraps the external call, so reverts in the success handler escape and an empty catch hides real failures.
Seen in 1 report
-
A typo in the map16 bounds check returned false instead of 1, so the function incorrectly reported success.
Seen in 1 report
-
A user's validator list can be added to without consent and core functions loop over that unbounded list with no cap or pruning.