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 addProperties function did not validate that the lengths of the names and items arrays matched, leading to a division by zero when calculating token attributes during minting.
Seen in 2 reports
-
The application did not enforce a maximum length on text inputs.
Seen in 2 reports
-
The application runs unsafe file removal methods from scripts without a confirmation prompt.
-
The background write task ignores errors and the caller always returns success, so failed persistence is never retried.
-
The balance before withdrawal is read after the withdrawal call, so the redeemed amount is always zero.
-
The batch functions iterated over an unbounded array of contracts, so gas use grew with the list size and could exceed the block gas limit.
Seen in 2 reports
-
The burn path deducts a reward-inflated payout from a stake counter credited only at the original mint value.
-
The byte range filter did not efficiently handle many overlapping byte ranges, causing excessive memory and CPU use.
-
The code calculates margin from the original input amount rather than the actual amount received from the exchange.
-
The code reads the first byte of the ciphertext to get a version prefix without checking the slice length first.
Seen in 2 reports
-
The code subtracts the header offset from the packet length without checking, causing an unsigned integer underflow that wraps to a huge value.
-
The contract allows vouches with a zero trust amount and does not cap the number of vouchers per user, so loops over the vouchers array can grow without bound.
Seen in 2 reports
-
The contract appends to a storage array without ever removing entries, so the array grows without bound and reading it all exceeds the block gas limit.
Seen in 2 reports
-
The contract approves the full amount and never resets the allowance to zero, and the safe approval helper reverts when changing a non-zero allowance to another non-zero value.
-
The contract calls permit and then transfer without handling the case where the permit was already consumed.
Seen in 2 reports
-
The contract relies on an untrusted external contract's isActive() return value instead of checking its own internal registry mapping.
Seen in 2 reports
-
The creator could set an arbitrary royalties receiver that could revert on payment, blocking sales.
Seen in 2 reports
-
The date regex allows optional whitespace and optional groups in overlapping ways, causing exponential backtracking on long runs of spaces.
Seen in 2 reports
-
$4,000 High -
-
-
The DCM parser does not validate the size or structure of user-supplied data before using it.
-
The driver reads data from a licence entry without checking that the declared size is large enough.
-
The endpoint accepts an unauthenticated caller-controlled list of scripts and concatenates them with no rate limiting.
-
The external call forwards all available gas and returns unbounded data without a cap.
Seen in 2 reports
-
The fee ratio divides by total supply without checking that it is non-zero.
Seen in 2 reports
-
The form and backend do not enforce a maximum password length before hashing the input.
Seen in 2 reports
-
The frame-size budget subtracts the frame header and compression prefix but not the one-byte blob-level derivation version prefix added later.
Seen in 2 reports
-
The graphics driver did not validate a modified shader instruction operand before accessing a structure.
-
The helper subtracted a configuration epoch from the current block time without checking that the epoch was not in the future.
Seen in 2 reports
-
The HTTP/2 implementation did not limit the size or rate of SETTINGS frames and did not validate malformed ones before reaching an assertion.
Seen in 2 reports
-
The IPv6 validation functions have no upper bound on the length of the address string.
-
The light node has no size check or splitting before submitting a blob, so oversized batches are rejected and lost.
-
The listing loops over the entire transaction count instead of only the requested range.
Seen in 2 reports
-
The load-scripts.php endpoint concatenated and served an arbitrarily large list of registered scripts in a single unauthenticated request.
-
The load-scripts.php endpoint processes an unbounded list of script handles without authentication or rate limiting.
Seen in 2 reports
-
Critical -
Critical
-
-
The loop does not stop when the previous-borrower lookup returns the zero address, so the zero address is treated as a borrower.
Seen in 2 reports
-
The message ID function decompresses attacker data without checking the declared output size, then concatenates the result with a domain prefix, doubling peak memory.
-
The minimum sequence number only advances when the used number is greater than zero, so zero stays permanently valid.
-
The opcode handlers dereference pointers without checking for null first.
-
The over-cap rejection is applied only to the current iterator and never classified as permanent, so the transaction is neither cached as rejected nor removed from the pool.
-
The parsed to-block value is assigned to the from-block variable, so a loop bound never advances and runs forever.
Seen in 2 reports
-
Critical -
Critical
-
-
The parser dereferenced the distribution point pointer without checking that the distributionPoint field was present.
-
The parsing function does not check that the value field is a real array or typed array before converting it, so an arbitrary length is trusted.
Seen in 2 reports
-
The potential debt formula incorrectly multiplied seniorDebt or totalDebt by the loan duration and omitted the interest denominator and implied lien rate, making the computed debt much higher than actual.
-
The rate limit threshold for the add comment endpoint was configured too permissively, accepting over a thousand comments a minute.
-
The received body size is subtracted from an unsigned remaining-length counter without checking the body is not larger.
-
The regular expression for links had overlapping or ambiguous clauses causing exponential backtracking.
-
The regular expression used nested quantifiers that caused catastrophic backtracking on crafted input.
-
The regular expressions for start tags and attributes had ambiguous or overlapping clauses causing exponential backtracking.
-
The repair function passes unvalidated fields such as storage root and code hash to a typed array constructor that accepts array-like objects with a huge length.
-
The request pipeline buffers and parses the full body before any field-level size validation, and password hashing runs on the whole input.
-
The requested count is multiplied by max blobs per block in a plain integer multiplication that overflows, producing a small or negative value that passes size and rate-limit checks.
Seen in 2 reports
-
Medium -
Low
-