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.
-
Total assets include tokens sent to the allocator but not yet allocated to the portal, so reported and withdrawable assets diverge.
Seen in 1 report
-
Transaction validation does not compare the gas limit against the block gas limit.
Seen in 1 report
-
Transactions from received blocks were added to the pool without certain checks, including input validity, and stayed after the block was found invalid.
-
Transfer finalisation enables the recipient's collateral bit without consent or a maximum reserve check.
Seen in 1 report
-
transfer used instead of call, hardcoding a gas stipend too small for contract recipients.
Seen in 1 report
-
Transporter lookup returns null for an unknown ID and the caller dereferences it without a null check.
Seen in 1 report
-
Treating a non-zero pair address as proof of liquidity, though anyone can create an empty pair.
-
Two allocation results shared one status variable, so a later success overwrote an earlier failure.
-
Two large values are multiplied directly without overflow protection.
-
Two out-of-bounds array reads existed in Python's AST builder.
Seen in 1 report
-
Unauthenticated endpoint concatenates many scripts into a large response without rate limiting.
Seen in 1 report
-
Unbounded arrays with no pagination, so view functions iterating over all entries exceed gas or RPC limits.
Seen in 1 report
-
Unbounded fractional-seconds string converted to an integer and raised to a power derived from its length.
Seen in 1 report
-
Uncompressed size of uploaded archives not checked before writing to disk.
Seen in 1 report
-
Unconditionally setting the repayment amount to the maximum, which becomes zero when there is no debt.
Seen in 1 report
-
unknownProtocol handler does not close the socket when the client does not respond.
Seen in 1 report
-
Upgrade endpoint has no authentication and does not validate the uploaded firmware before rebooting.
-
Upload checks only MIME type and file size, not declared pixel dimensions, before full decoding.
Seen in 1 report
-
Use of an approval function that requires the current allowance to be zero.
Seen in 1 report
-
User files were passed straight to the CSV reader without limiting decompressed size or rejecting compressed input.
Seen in 1 report
-
User input is concatenated into a regular expression without escaping or limiting complexity.
Seen in 1 report
-
User input reaches a reflection call without validating which types or members may be used.
Seen in 1 report
-
User-controlled parameter passed to a dynamic method call, allowing arbitrary methods such as sleep.
-
User-controlled regex was compiled and evaluated with no timeout and no check on pattern complexity.
Seen in 1 report
-
User-supplied gas limit not capped to a realistic maximum for the destination chain.
-
User-supplied glob string compiled as a regular expression with only dots and wildcards escaped.
Seen in 1 report
-
User-supplied input is used directly as a regular expression without validation.
Seen in 1 report
-
Medium
-
-
User-supplied length copied into a fixed stack buffer without validation.
Seen in 1 report
-
User-supplied length value truncated and used to size a buffer without validation.
-
User-supplied values are used to build cookie headers without validation or encoding.
Seen in 1 report
-
Username input was not validated for invalid UTF-8 before being stored and rendered in the audit log view.
Seen in 1 report
-
Username validation used an inefficient regular expression that backtracked heavily on crafted input.
-
Using a token's total supply being zero as a proxy for 'this is a stash token without balanceOf'.
Seen in 1 report
-
Using transfer instead of call hardcodes a 2300 gas stipend that may become insufficient.
Seen in 1 report
-
Utilisation formula does not cap at 100 percent, so the borrow rate can exceed the maximum and trigger a revert.
-
Validation checked only file size and dimensions, not the number of frames in an animated image.
Seen in 1 report
-
$250
-
-
Validation in the add and replace factory functions is inverted or missing, so duplicate entries are allowed.
Seen in 1 report
-
Validation places expensive block hash verification and payload processing before the cheap signature check.
Seen in 1 report
-
Validation used non-negative checks instead of strictly positive checks, and price calculation can round down to zero.
Seen in 1 report
-
Variable name rather than value parsed as an integer, and the thrown exception type is not caught by the driver or applications.
Seen in 1 report
-
Vendor ID payload dereferenced without validation.
-
Waiting flag can only be cleared by the same provider that was asked for randomness.
Seen in 1 report
-
When a share balance reaches zero the entry is set to zero instead of being removed from the enumerable map, so the map grows without bound.
Seen in 1 report
-
When the integer property 0x3 is set, the code does not check that the pointer at offset +38h actually refers to a composition object before passing it to the kernel graphics call.
-
Wildcard mask matching rescans the whole per-suffix bucket once per result.
Seen in 1 report
-
Windows Defender followed a directory junction created by a low-privileged user and deleted a file outside its intended scope.
Seen in 1 report
-
Withdrawal guard uses a strict greater-than check while trove opening uses greater-than-or-equal, so a trove at exactly the minimum blocks withdrawals.
-
Withdrawal ratios are kept on a fixed 18-decimal scale and not converted to the token's decimals.
Seen in 1 report
-
Witness data collection does not validate calldata while the parser assumes every entry is a valid message call and aborts on any error.
-
Workgroup memory size was calculated two different ways, one validated and one including unbounded alignment padding.
Seen in 1 report