Skip to content

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.

Back to the lesson 101 to 150 of 2,053
  1. 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
  2. The application did not enforce a maximum length on text inputs.

    Seen in 2 reports
  3. The application runs unsafe file removal methods from scripts without a confirmation prompt.

    Seen in 2 reports
  4. The background write task ignores errors and the caller always returns success, so failed persistence is never retried.

    Seen in 2 reports
  5. The balance before withdrawal is read after the withdrawal call, so the redeemed amount is always zero.

    Seen in 2 reports
  6. 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
  7. The burn path deducts a reward-inflated payout from a stake counter credited only at the original mint value.

    Seen in 2 reports
  8. The byte range filter did not efficiently handle many overlapping byte ranges, causing excessive memory and CPU use.

    Seen in 2 reports
  9. The code calculates margin from the original input amount rather than the actual amount received from the exchange.

    Seen in 2 reports
  10. The code reads the first byte of the ciphertext to get a version prefix without checking the slice length first.

    Seen in 2 reports
  11. The code subtracts the header offset from the packet length without checking, causing an unsigned integer underflow that wraps to a huge value.

    Seen in 2 reports
  12. 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
  13. 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
  14. 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.

    Seen in 2 reports
  15. The contract calls permit and then transfer without handling the case where the permit was already consumed.

    Seen in 2 reports
  16. The contract relies on an untrusted external contract's isActive() return value instead of checking its own internal registry mapping.

    Seen in 2 reports
  17. The creator could set an arbitrary royalties receiver that could revert on payment, blocking sales.

    Seen in 2 reports
  18. The date regex allows optional whitespace and optional groups in overlapping ways, causing exponential backtracking on long runs of spaces.

    Seen in 2 reports
  19. The DCM parser does not validate the size or structure of user-supplied data before using it.

    Seen in 2 reports
  20. The driver reads data from a licence entry without checking that the declared size is large enough.

    Seen in 2 reports
  21. The endpoint accepts an unauthenticated caller-controlled list of scripts and concatenates them with no rate limiting.

    Seen in 2 reports
  22. The external call forwards all available gas and returns unbounded data without a cap.

    Seen in 2 reports
  23. The fee ratio divides by total supply without checking that it is non-zero.

    Seen in 2 reports
  24. The form and backend do not enforce a maximum password length before hashing the input.

    Seen in 2 reports
  25. 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
  26. The graphics driver did not validate a modified shader instruction operand before accessing a structure.

    Seen in 2 reports
  27. 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
  28. 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
  29. The IPv6 validation functions have no upper bound on the length of the address string.

    Seen in 2 reports
  30. The light node has no size check or splitting before submitting a blob, so oversized batches are rejected and lost.

    Seen in 2 reports
  31. The listing loops over the entire transaction count instead of only the requested range.

    Seen in 2 reports
  32. The load-scripts.php endpoint concatenated and served an arbitrarily large list of registered scripts in a single unauthenticated request.

    Seen in 2 reports
  33. The load-scripts.php endpoint processes an unbounded list of script handles without authentication or rate limiting.

    Seen in 2 reports
  34. 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
  35. The message ID function decompresses attacker data without checking the declared output size, then concatenates the result with a domain prefix, doubling peak memory.

    Seen in 2 reports
  36. The minimum sequence number only advances when the used number is greater than zero, so zero stays permanently valid.

    Seen in 2 reports
  37. The opcode handlers dereference pointers without checking for null first.

    Seen in 2 reports
  38. 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.

    Seen in 2 reports
  39. 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
  40. The parser dereferenced the distribution point pointer without checking that the distributionPoint field was present.

    Seen in 2 reports
  41. 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
  42. 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.

    Seen in 2 reports
  43. The rate limit threshold for the add comment endpoint was configured too permissively, accepting over a thousand comments a minute.

    Seen in 2 reports
  44. The received body size is subtracted from an unsigned remaining-length counter without checking the body is not larger.

    Seen in 2 reports
  45. The regular expression for links had overlapping or ambiguous clauses causing exponential backtracking.

    Seen in 2 reports
  46. The regular expression used nested quantifiers that caused catastrophic backtracking on crafted input.

    Seen in 2 reports
  47. The regular expressions for start tags and attributes had ambiguous or overlapping clauses causing exponential backtracking.

    Seen in 2 reports
  48. 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.

    Seen in 2 reports
  49. The request pipeline buffers and parses the full body before any field-level size validation, and password hashing runs on the whole input.

    Seen in 2 reports
  50. 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