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 function loops over all ticks with no limit, so gas cost grows with the number of ticks until it exceeds the block gas limit.
Seen in 1 report
-
A function returns minus one for an error but the caller stores it in an unsigned 16-bit integer, so the check always fails.
Seen in 1 report
-
A function selector mismatch reverted before the try/catch could handle it.
Seen in 1 report
-
A garbage collection bug marked an atom as being inside the nursery, leading to an invalid pointer dereference.
Seen in 1 report
-
A global map was populated with attacker-controlled keys but never cleared, causing unbounded memory growth.
Seen in 1 report
-
A global secondary index uses a low-cardinality status field as partition key, concentrating pending items in one partition.
-
A hard minimum and maximum price check on oracle data fails on any legitimate large price move.
Seen in 1 report
-
A hardcoded gas limit was used for the native token transfer, insufficient for contract executors.
-
A hardcoded minimum output amount of one for a swap can be made to fail by sending a small amount of the input token to the contract.
-
A hash opcode limited to a fixed byte-array width is used without chunking larger programs.
Seen in 1 report
-
A higher-priority packet-handling task could preempt the lower-priority periodic anomaly task indefinitely, so the anomaly task missed its deadline.
Seen in 1 report
-
A leftover debug function intentionally dereferenced a null pointer when a specific parameter was present, without any authentication or safety check.
-
A length field embedded in the input was trusted and passed straight into array allocation without comparison to the remaining stream size or a maximum.
Seen in 1 report
-
A length field is not validated when calculating a pointer offset, letting the offset point beyond the packet buffer.
Seen in 1 report
-
A linear search finds the maximum affordable votes one by one, becoming prohibitively expensive at scale.
Seen in 1 report
-
A linear search over all position IDs became prohibitively expensive with many positions.
-
A local payment amount is adjusted but the payment struct passed to the transfer is not.
-
A local sender counter is decremented multiple times in one loop iteration, causing an underflow.
Seen in 1 report
-
A lock is held past the return of the function that acquired it, so a second VGA access in the same instruction re-acquires it.
Seen in 1 report
-
$2,162 Medium
-
-
A logic error in the HSTS cache update let the subdomain's previous value overwrite the parent domain's expiry.
Seen in 1 report
-
A long withdrawal waiting period meant a depleted buffer could not be refilled quickly enough.
Seen in 1 report
-
A loop in the affected software lacked a proper exit condition, so certain network input made it run forever.
Seen in 1 report
-
A loop processing NSEC type bitmaps lacks a correct termination condition.
-
A memory move is called with a length that includes the null terminator and one extra byte.
Seen in 1 report
-
A memory-safety flaw in an array allocation sinking optimisation, addressed by disabling the optimisation.
-
A missing bounds check when reading an offset from untrusted data led to an index out of range panic.
Seen in 1 report
-
A missing nil check before inspecting the type of the inner message caused a panic.
Seen in 1 report
-
A missing null check on the stack top result before dereferencing it.
Seen in 1 report
-
A missing or incorrect bounds check when parsing mp4 structures allows reads beyond the allocated buffer.
Seen in 1 report
-
A missing or insufficient validation check when handling certain web content leads to a crash.
-
A missing zero check on the total shares denominator before performing the division.
Seen in 1 report
-
A mitigation compares the last burn timestamp to the current block, so any burn in the same block blocks all acceptances.
Seen in 1 report
-
A namespace lookup that can return null is passed to a string comparison without a null check.
Seen in 1 report
-
A native currency send is made unconditionally even when the value is zero.
-
A new state machine is inserted into an in-memory map for every unseen transaction ID with no size limit.
-
A new thread is spawned per incoming connection without limiting concurrency, and threads contend for a shared lock.
Seen in 1 report
-
A new tick-tracking entry is appended on every crossing and the reward loop iterates the whole array without a bound.
-
A new user point is appended on every checkpoint instead of overwriting the current block entry.
Seen in 1 report
-
A non-blocking send to a fixed-size error channel discarded errors when the buffer was full, so the health-check state went stale.
Seen in 1 report
-
A non-cryptographic hash allowed seed-independent collisions and the algorithm added layers until no false positives remained.
-
A non-frozen constant failsafe response is mutated by middleware on each request, accumulating self-referencing wrappers.
Seen in 1 report
-
A null array value reaches the array push function without a check, so a length field is read from a null pointer.
Seen in 1 report
-
A NULL pointer dereference in the HTTP/3 QUIC module when handling certain requests.
Seen in 1 report
-
A null pointer dereference in the nursery buffer pointer forwarding logic during minor GC.
Seen in 1 report
-
A null return value or null input is used inside the driver without a check.
Seen in 1 report
-
A null value in the data parameter was not handled and led to an endless or resource-heavy operation.
Seen in 1 report
-
A panic-on-error conversion function is used without error handling or recovery.
Seen in 1 report
-
A parsing or handling error in HTTP.sys when processing packets that use Server Name Indication leads to a crash or resource exhaustion.
Seen in 1 report
-
A patch pre-created a folder at a path non-admin users could replace with a junction point, and the update process did not handle it safely.
-
A plain array forces linear iteration on every repay, liquidation or takeover, allowing an attacker to inflate it.
Seen in 1 report