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 reward integral was stored as a 128-bit integer while dividing incoming rewards by a tiny supply could exceed that range.
Seen in 2 reports
-
The SamplesPerPixel metadata value was multiplied into the decoded buffer size without a sanity check on the resulting allocation.
-
The script loader enforced no limit on the number or total size of files returned in one request.
Seen in 2 reports
-
The service follows symbolic links without validating or resolving the target path before creating a folder.
-
The setter allows a divisor to be zero and the settlement calculation divides by it without a guard.
-
The subsidy withdrawal is unconditional and reverts when the escrow pool balance is insufficient.
-
The swarm is built without connection limits or a connection gater, so every incoming connection is accepted before any peer authorisation.
Seen in 2 reports
-
The txpool affordability check omitted the operator fee that execution later charges, so admission and execution disagreed.
-
The value-numbering pass discards a definition that is still tracked in its set, tripping an invariant during dead-definition cleanup.
-
The virtual machine used an unchecked expectation when a contract was absent, causing an unhandled exception.
-
The wrap step is conditional on redeemed plus pre-existing ETH covering the full amount, so any shortfall skips wrapping and the later check reverts.
-
The XML parser was configured to allow DTDs, so entity definitions were expanded recursively without limits.
-
transfer() hard-codes a small gas stipend instead of call() with explicit gas.
Seen in 2 reports
-
User input is concatenated directly into an LDAP search filter without escaping special characters.
Seen in 2 reports
-
User-supplied data is used as an array index or dereferenced without validation.
-
User-supplied gas parameters are not validated and the non-blocking pattern or force resume function is missing.
-
User-supplied offset used to compute a memory address without bounds validation.
-
A counter or nonce declared as a 16-bit integer overflows after enough increments.
-
A block-lock check runs before the conditional that decides whether the vault is actually involved.
Seen in 1 report
-
A blocking thread sleep is used inside an async retry loop instead of the runtime's non-blocking sleep.
Seen in 1 report
-
A borrow implementation slices the backing buffer with an unchecked range before the length check runs.
Seen in 1 report
-
A bounded guardian index can be consumed by any signed account on behalf of another without consent, and slots are never released.
-
A buffer caps the number of distinct block heights but not the number of votes per height, and messages are buffered before signatures are verified.
Seen in 1 report
-
A buffer function restricted to one contract was called from a different contract, so the call always reverted.
Seen in 1 report
-
A catch-all status arm maps every unrecognised status to a non-terminal pending state, and there is no wall-clock timeout on the awaiting-proof phase.
Seen in 1 report
-
A change storing unique IDs in dynamic slots left the JIT seeing a template object with dynamic slots where it assumed none.
Seen in 1 report
-
A cleanup engine followed junctions without validating the target path, letting a low-privileged user redirect a deletion.
Seen in 1 report
-
A client-side loop fired repeated automatic requests on the reset page without user action.
Seen in 1 report
-
A comparison error in the C code applied the iteration limit as a minimum instead of a maximum, so a large precision argument increased the loop count beyond the intended cap.
Seen in 1 report
-
A config value was duplicated but no cleanup routine freed the stored pointer before exit.
Seen in 1 report
-
A containment check skipped dirty handles not in the process set, discarding a pending transfer whose timer had already been removed.
-
A continue statement skips the index increment on a zero-amount entry, so the same entry is read forever.
Seen in 1 report
-
A contract that is expected to receive ETH lacks a receive or fallback function, so transfers to it revert.
Seen in 1 report
-
A copy-paste typo stores the right-branch X remainder in the Y field.
Seen in 1 report
-
A crafted WebAssembly module triggers an assertion failure in the baseline compiler when compiling a br_on_cast instruction.
Seen in 1 report
-
A cursor is assigned the relative slice index instead of being advanced by it, breaking monotonic advance and turning a linear search into a quadratic one.
-
A custom quicksort has no recursion depth limit and sends all entries equal to the pivot to one side.
Seen in 1 report
-
A data pointer was left uninitialised when the request had no body and was then used in a string search.
Seen in 1 report
-
A debug navigation deep link was exported in production without a guard.
Seen in 1 report
-
A decimal-scale mismatch multiplies a 6-decimal value by 1e12 and adds it to an 18-decimal value, overflowing the 128-bit type.
Seen in 1 report
-
A default RPC request size limit caused skipped votes, and there was no minimum quorum before penalising validators.
Seen in 1 report
-
A default URL string carried a scheme that the socket bind call could not parse.
Seen in 1 report
-
A dictionary is finalised with a stale start pointer after the variable is reassigned to a new dictionary.
Seen in 1 report
-
A driver failed to validate that a size taken from a file's resource section stayed within the actual data bounds.
Seen in 1 report
-
A failed allocation return is not handled before a lookup on the resulting pointer.
-
A fee transfer is made without checking whether the amount is zero.
Seen in 1 report
-
A fixed copy length is used instead of the actual received length, causing a buffer over-read.
Seen in 1 report
-
A fixed fifty-iteration loop is used instead of a binary search over history.
Seen in 1 report
-
A fixed total distribution amount is divided by an eligible supply recalculated per batch, so mid-run eligibility changes inflate later shares.
Seen in 1 report
-
A flaw in how the email server processes specially crafted email content causes it to fail before the message is displayed.
Seen in 1 report