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 liquidation path subtracted the reduced credited amount from the global in-use counter instead of the original credited amount.
-
The liquidation reverts when the requested shares exceed the maximum computed from current borrow shares.
Seen in 1 report
-
The liquidity calculation used the pool's total liquidity and stable balance instead of the formula accounting for the current tick and position range.
Seen in 1 report
-
The listener service failed to verify that commands originated from a trusted source before acting on them.
Seen in 1 report
-
The listener trusts a remote length field and allocates that much memory before reading the data.
Seen in 1 report
-
The load balancer's proxy buffer was too small for the oversized request header.
Seen in 1 report
-
The loader accepted an unbounded list of script names and read each from disk on every request.
Seen in 1 report
-
The loader does not handle a partial two-stage firmware update.
Seen in 1 report
-
The loader read dataset dimensions from the file and allocated memory for them without checking the size was reasonable or matched the data.
Seen in 1 report
-
The lock escrow account is initialised at a predictable address without requiring the owner's signature.
Seen in 1 report
-
The lockout mechanism also invalidated all active sessions, so any failed login that triggered lockout logged the legitimate user out.
Seen in 1 report
-
The lockout mechanism does not distinguish legitimate users from attackers and the duration is excessive.
Seen in 1 report
-
The log filter function bounded the number of topics but not the number of addresses.
Seen in 1 report
-
The logging code has no size limit or rotation policy, so log files grow indefinitely.
Seen in 1 report
-
The logging system could not handle messages larger than about 64KB.
Seen in 1 report
-
$150 Low
-
-
The logic call event parser was left as an unimplemented stub, so any matching event caused a panic.
Seen in 1 report
-
The login form passed the username to the logger without stripping carriage-return and newline characters, and the log parser's username pattern did not match names containing a dot.
Seen in 1 report
-
The long-leg margin formula divides by a distance-from-strike term that can be zero with no guard.
-
The loop check only tests the basic type, so vector-typed loop variables are wrongly treated as finite.
Seen in 1 report
-
The loop counter is not incremented when the continue statement runs.
Seen in 1 report
-
The loop does not check whether each distributor is active before calling the declaration, and the active-only modifier reverts for inactive ones.
Seen in 1 report
-
The loop in handle_close_bracket iterates over all previous openers for each closing bracket, leading to quadratic time complexity.
-
The loop increments the index instead of breaking when the remaining share count reaches zero.
Seen in 1 report
-
The loop searching for StringFileInfo entries did not advance the pointer when the length field was zero, so the exit condition was never met.
Seen in 1 report
-
The loop used a fixed staker count while the list shrank as stakers were refunded.
Seen in 1 report
-
The loop-finiteness analysis accepted global variables as loop counters and only inspected the loop body, missing mutations made inside called functions.
Seen in 1 report
-
The loops use the length of the previous arrays instead of the new arrays when copying elements.
Seen in 1 report
-
The loops were written for Solidity 0.6.12 where underflow wraps silently, but in 0.8.7 underflow reverts, so the loop condition caused a revert.
Seen in 1 report
-
The low-level call copies the full return data into memory without limiting its size.
Seen in 1 report
-
The lowercase() and uppercase() rules used regular expressions with inefficient complexity.
Seen in 1 report
-
The LP token calculation divides by the pool value without checking for zero.
Seen in 1 report
-
The LZMA decompression path trusts size information in the compressed stream and allocates without a sensible limit.
-
The macro calls a file-descriptor function without a null check on the stream.
Seen in 1 report
-
The maker creation function accepts an arbitrary recipient and adds to their quota without consent, and the quota is shared with taker assets.
-
The Markdown parser had a performance flaw that allowed a crafted input to cause excessive CPU consumption.
Seen in 1 report
-
The markdown parser lacks limits on footnote count or complexity, and the timeout does not prevent exhaustion under parallel load.
Seen in 1 report
-
The markdown parser placed no limit on recursion or resource use for deeply nested links.
Seen in 1 report
-
The markdown rendering library with the autolink extension has a performance issue on certain patterns.
Seen in 1 report
-
The markdown-to-HTML renderer does not handle certain character references inside link syntax and throws an unhandled error.
Seen in 1 report
-
The math renderer sets no limits on macro expansion or output size, so nested expressions consume excessive client resources.
Seen in 1 report
-
The math rendering library or page logic does not limit the size or complexity of inline math expressions.
Seen in 1 report
-
The Maven version validation regex has nested quantifiers that backtrack exponentially on certain inputs.
Seen in 1 report
-
Medium
-
-
The maximum magnitude check compares against a cumulative value that unlocks can reduce.
-
The Maximum Security Agent followed a directory junction, causing it to delete a file.
Seen in 1 report
-
The maximum text length was defined in native code but never passed to the JavaScript extractor and never checked when the message was received.
Seen in 1 report
-
The melt function allows burning without a minimum supply check, letting the ratio reach its upper bound and block further increases.
-
The memorialise function lacks an ownership or approval check and accepts zero-value or tiny positions.
Seen in 1 report
-
The mempool and block validator check chain id and system sender in opposite orders.
-
The mempool balance check is per transaction in isolation rather than against the cumulative pending effect.
-
The mempool key includes an unsigned, node-controlled priority field, so one transaction can be stored under many keys.
Seen in 1 report