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 901 to 950 of 2,053
  1. The certificate-time transaction handler does not verify the nominee account exists and pre-validation does not block these transactions.

    Seen in 1 report
  2. The Ceylon lexer regex in the syntax highlighter backtracks catastrophically on a long run of backticks.

    Seen in 1 report
  3. The CGI layer reads and parses the full POST body before authentication runs.

    Seen in 1 report
  4. The chat API endpoint had no rate limiting or throttling.

    Seen in 1 report
  5. The check assumes a non-zero local token mapping means the ecosystem token was already added, but anyone can populate it.

    Seen in 1 report
  6. The check that should reject deflate encoding only ran when HTTP compression was disabled, so on default installs the body reached a buggy decompressor.

    Seen in 1 report
  7. The checkpoint returns a service ID array that is not refreshed after eviction, so unstake uses stale indices.

    Seen in 1 report
  8. The checkpoint writer subtracts one from a zero count without checking, causing an underflow when accessing the checkpoints array.

    Seen in 1 report
  9. The circuit unconditionally enforced the mul/div relation for division, even when the divisor was zero and the quotient and remainder were forced to zero, so the relation did not hold.

    Seen in 1 report
  10. The circulating supply function subtracts without checking for a negative result.

    Seen in 1 report
  11. The claim amount is subtracted from total assets at epoch without checking the total is sufficient.

    Seen in 1 report
  12. The claim calculation divides by per-period total fees without checking that the divisor is non-zero.

    Seen in 1 report
  13. The claim function did not limit the size of return data from winner contracts.

    Seen in 1 report
  14. The claim function iterates over all unclaimed epochs in a single transaction without a way to cap the range, so the gas cost grows without bound.

    Seen in 1 report
  15. The claim function iterates over an unbounded array of windows, and the increment function lacks proper access control, allowing an attacker to increase the array length.

    Seen in 1 report
  16. The claim function processes an unbounded array of token IDs that can grow without limit.

    Seen in 1 report
  17. The claim function returned early on zero rewards without updating the last-claimed period, so the period gap kept growing past the maximum.

    Seen in 1 report
  18. The claim loop uses the voter's latest finished period as its end instead of the rewarder's own last period, causing an out-of-bounds array access.

    Seen in 1 report
  19. The claim process transfers every deposited token in a single transaction without handling transfer failures.

    Seen in 1 report
  20. The claim relied on a signature that anyone could consume by calling the program manager directly.

    Seen in 1 report
  21. The client did not limit the number of URLs generated by a glob range.

    Seen in 1 report
  22. The client does not handle a missing or deleted SKU when loading subscription metadata.

    Seen in 1 report
  23. The client fetches pending deposits without paging parameters, so only the first page is ever seen.

    Seen in 1 report
  24. The client placed no limit on the number or size of cookies it stored.

    Seen in 1 report
  25. The client read the iteration exponent from the untrusted server and only bounded it with a very high cap.

    Seen in 1 report
  26. The client trusted a server-supplied literal size and allocated a buffer without an upper limit.

    Seen in 1 report
  27. The client trusted the server's encryption method and entered FIPS code paths without checking the decryption context was initialised.

    Seen in 1 report
  28. The client's consumer key and secret were shipped inside the desktop application, so anyone could invalidate the shared bearer token.

    Seen in 1 report
  29. The close function does not properly limit recursion when handling certain image output objects.

    Seen in 1 report
  30. The close function zeroed the account data instead of resizing it, so a revived account failed the empty-account check on re-creation.

    Seen in 1 report
  31. The code assumed that if either transaction array had length one then the structured array was non-empty, and called front() without checking.

    Seen in 1 report
  32. The code assumed the asset was an ERC20 and called decimals on the zero address for native ETH.

    Seen in 1 report
  33. The code assumed the collateral NFT was minted to the router when it was actually minted to the borrower, so the subsequent transfer from the router reverted.

    Seen in 1 report
  34. The code assumed the second swap would consume the entire intermediate amount and enforced strict equality instead of allowing a remainder.

    Seen in 1 report
  35. The code assumes a requested block size will be acknowledged or used and does not fall back to the default.

    Seen in 1 report
  36. The code assumes an external call to redeem a position will always succeed and does not handle failures, so one failure reverts the entire operation.

    Seen in 1 report
  37. The code assumes at least one checkpoint exists and subtracts one from zero, causing an underflow.

    Seen in 1 report
  38. The code assumes swap output never exceeds the remaining amount to buy.

    Seen in 1 report
  39. The code assumes the exchange rate of ETH-backed assets never decreases and subtracts a value that can exceed the stored deposit.

    Seen in 1 report
  40. The code assumes the optional symbol function returns a string.

    Seen in 1 report
  41. The code assumes the pool token is present in the assets array, so the skip logic misaligns indices and overwrites the array.

    Seen in 1 report
  42. The code assumes the stored last-reward time is never later than the current block time and performs an unchecked subtraction.

    Seen in 1 report
  43. The code bounds the number of encodings within a single header but not the total number of headers, so each header still triggers a buffer allocation.

    Seen in 1 report
  44. The code called a max-element search on an empty vector and dereferenced the returned end iterator without checking for emptiness.

    Seen in 1 report
  45. The code calls expect on a bounded channel send without handling the full-queue error.

    Seen in 1 report
  46. The code calls getPriorVotes with block.number, but the token contract requires the block number to be strictly less than the current block.

    Seen in 1 report
  47. The code calls ownerOf on an NFT that may have been burned, and ownerOf reverts for nonexistent tokens.

    Seen in 1 report
  48. The code calls safeApprove with a non-zero amount without first resetting the existing allowance to zero.

    Seen in 1 report
  49. The code calls the fetch library without a maximum response size, and the library decompresses responses automatically.

    Seen in 1 report
  50. The code casts a pointer to a 32-bit unsigned integer before passing it to a memory move, truncating the address on 64-bit systems.

    Seen in 1 report