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 1,501 to 1,550 of 2,053
  1. The path builder checks only one configured fee tier and reverts instead of probing alternatives.

    Seen in 1 report
  2. The path length was not validated before a fixed-length substring call, so a single backslash caused an unhandled exception.

    Seen in 1 report
  3. The path skip call's result was not assigned back, so the loop condition never changed.

    Seen in 1 report
  4. The pause handler is a no-op and receive callbacks extend flow-control windows unconditionally, so the pause buffer has no aggregate cap.

    Seen in 1 report
  5. The pay function subtracts the paid amount from the debt without capping it at the outstanding debt, so an overpayment underflows.

    Seen in 1 report
  6. The payload encoder writes the To address without checking for nil, even though the transaction type forbids a missing recipient.

    Seen in 1 report
  7. The payload schema only required a record of string keys with arbitrary values, and the HTTP server had no request size limit.

    Seen in 1 report
  8. The payout limit setter does not check that the new limit is above the payout already accumulated in the current epoch.

    Seen in 1 report
  9. The peer certificate reference is incremented but never freed on any return path.

    Seen in 1 report
  10. The penalty handler is invoked without awaiting it, so an exception escapes normal error handling and reaches the process-level uncaught exception handler.

    Seen in 1 report
  11. The pending-removals cleanup loop has no batch size limit, so its cost grows with an attacker-controlled list length.

    Seen in 1 report
  12. The per-account sequence number is overwritten with the database value on each new transaction, discarding the in-memory increment.

    Seen in 1 report
  13. The per-asset reward token cap ignores that one liquidation invokes several incentivised token operations, multiplying the work.

    Seen in 1 report
  14. The per-block gas limit check allows an attacker to consume the entire limit with a single transaction.

    Seen in 1 report
  15. The per-block loan limit is shared across all pool creations, and creating a pool is very cheap.

    Seen in 1 report
  16. The per-interval request budget for public endpoints is set too low and is shared per validator.

    Seen in 1 report
  17. The per-user account contract does not inherit or implement the ERC721 holder interface, so it cannot receive NFTs via safe-mint.

    Seen in 1 report
  18. The per-wallet limit check applies to the fee sink address, but fee collection does not exempt it.

    Seen in 1 report
  19. The percentage check is skipped when total staked is zero, so the first deposit gives one validator 100 percent and later deposits always exceed the limit.

    Seen in 1 report
  20. The plain data field fetches blob content directly in the application layer, bypassing the resource limits and timeouts of the file proxy.

    Seen in 1 report
  21. The plugin passed the untrusted request URL directly to the URL constructor without a try/catch and without validating leading slashes.

    Seen in 1 report
  22. The plugin subtracted one from the decrypted length without checking for an empty plaintext, underflowing an unsigned size.

    Seen in 1 report
  23. The poke function requires every recalculated pool weight to be non-zero, but weights can round down to zero.

    Seen in 1 report
  24. The poll interval check compared against the last received packet time, which spoofed and replayed packets also updated, rather than the last clean packet time.

    Seen in 1 report
  25. The pool applies delegated status lazily while the block policy pre-marks every authority as delegated.

    Seen in 1 report
  26. The pool balance function iterates over all token balances instead of only the relevant ones.

    Seen in 1 report
  27. The pool set total liquidity units to the native deposit amount without a minimum ratio.

    Seen in 1 report
  28. The pool's intrinsic gas calculation omits the access list cost.

    Seen in 1 report
  29. The pop handler assumes the current element is an array or object without checking for scalar types.

    Seen in 1 report
  30. The post handler refunds the full tip rather than a portion, so priority and block space cost nothing.

    Seen in 1 report
  31. The post-only check compares against the best ask without leaving a one-tick gap.

    Seen in 1 report
  32. The post-transaction hook returns an error on any module-specific failure and the EVM keeper reverts the whole transaction without checking whether the transaction involved the module.

    Seen in 1 report
  33. The pow function's exponentiation overflowed because the weight ratio was not scaled consistently with the base.

    Seen in 1 report
  34. The pre-authentication ping handler queues pong responses without limit and only frees them after key exchange.

    Seen in 1 report
  35. The precompile passes a hardcoded gas limit to nested calls and charges it only after return, so the 63/64 rule does not apply and recursion is unbounded.

    Seen in 1 report
  36. The precompile slices the first four bytes of calldata without checking that the input is at least four bytes long.

    Seen in 1 report
  37. The prevalidator was only created when the whitelist was non-empty, so deserialisation checks were skipped entirely.

    Seen in 1 report
  38. The preview scraper ran a full headless browser that executed JavaScript from untrusted pages without sandboxing or restrictions.

    Seen in 1 report
  39. The process() function did not use a try/catch around the external callback call, so any revert in the callback reverted the entire transaction.

    Seen in 1 report
  40. The processing function makes an external call to the recipient without limiting gas.

    Seen in 1 report
  41. The processing function read the token supply after it had been burned to zero and used it as a divisor without a guard.

    Seen in 1 report
  42. The profit formula subtracts the borrower's debt and return from the deposited value without checking the debt is smaller.

    Seen in 1 report
  43. The project cost function iterates over an unbounded array of tasks without a limit, causing gas exhaustion when the array grows large.

    Seen in 1 report
  44. The project pinned an outdated consensus library version with a known denial-of-service issue.

    Seen in 1 report
  45. The proposal function passes block.number to a function that expects block.timestamp, so the voting power lookup uses a time far in the past.

    Seen in 1 report
  46. The proposal handler did not re-verify or drop invalid vote extensions from the local last commit.

    Seen in 1 report
  47. The proposal ID hash omits the end block parameter.

    Seen in 1 report
  48. The protocol assumes funds deposited into a lending pool are always withdrawable, but the pool lends out all reserves.

    Seen in 1 report
  49. The protocol assumes router commissions stay low enough for rebalancing to remain profitable and within the router's limit, with no fallback.

    Seen in 1 report
  50. The protocol does not account for tokens that interpret a maximum uint256 transfer amount as a request to transfer the sender's balance.

    Seen in 1 report