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,051 to 1,100 of 2,053
  1. The contract uses a safe mint that performs a receiver acceptance check, and a malicious receiver can revert it, blocking the queue.

    Seen in 1 report
  2. The contract uses a single success flag for all token transfers in withdraw and requires that flag to be true, so any failed transfer reverts the whole withdrawal.

    Seen in 1 report
  3. The contract uses an exact equality check between its token balance and the user's expected output amount.

    Seen in 1 report
  4. The contract uses Solidity 0.8.x's checked arithmetic for fee growth calculations, which reverts on underflow, whereas Uniswap V3's design expects unchecked underflow/overflow.

    Seen in 1 report
  5. The control plane processes a large deployment object on every scale operation without rate limiting or resource bounds.

    Seen in 1 report
  6. The control-frame send path returns early when outgoing payload remains, so PONG replies are queued rather than written immediately.

    Seen in 1 report
  7. The convergence check requires successive iterations to differ by at most one, but the iteration can oscillate by two.

    Seen in 1 report
  8. The conversion does not handle total assets being zero while supply is non-zero, because payout burns no shares.

    Seen in 1 report
  9. The cookie parser splits on every equals sign instead of only the first and does not handle a cookie string starting with an equals sign.

    Seen in 1 report
  10. The cookie parsing algorithm has super-linear time complexity for certain inputs.

    Seen in 1 report
  11. The coordinator indexes internal maps with signer IDs from untrusted messages without checking the IDs exist.

    Seen in 1 report
  12. The Cosmos to Ethereum transaction conversion has no default case for unrecognised message types.

    Seen in 1 report
  13. The count query has no limit or offset and is too heavy to finish within the request timeout.

    Seen in 1 report
  14. The CREATE3 library assumes Ethereum's CREATE2 address calculation, but zkSync Era uses a different formula.

    Seen in 1 report
  15. The creation function hardcodes zero slippage by setting the minimum amounts equal to the desired amounts.

    Seen in 1 report
  16. The credentials field has no maximum length, so arbitrarily large data is stored and processed.

    Seen in 1 report
  17. The crowdfund uses a plain mint while the governance contract uses a safe mint that checks the receiver.

    Seen in 1 report
  18. The cumulative price arithmetic uses checked addition and subtraction, so an overflow or underflow reverts instead of wrapping as cumulative price maths intends.

    Seen in 1 report
  19. The custody group count is fetched from the peer three times without caching, so a peer could change its answer between calls.

    Seen in 1 report
  20. The custom stringify function allocates memory from an attacker-controlled buffer length without checking the content matches.

    Seen in 1 report
  21. The custom URL handler for non-production environments does not check for an already-running instance.

    Seen in 1 report
  22. The cycle validation does not check that the response is iterable and does not return false when field type checks fail.

    Seen in 1 report
  23. The DA light node lacks sender authentication and batch size limits, so anyone can inject transactions into its mempool.

    Seen in 1 report
  24. The daemon does not limit open connections and does not time out idle ones.

    Seen in 1 report
  25. The dashboard fetches a full fixed coin inventory for every visible name and passes arbitrary resolver bytes into synchronous conversion with only a prefix check.

    Seen in 1 report
  26. The dashboard requests record data it does not need and the decoder has an indefinite-map loop with no end-of-input check.

    Seen in 1 report
  27. The data utility adds start and size as unsigned integers without checking for overflow.

    Seen in 1 report
  28. The datetime regex has nested optional groups that cause excessive backtracking.

    Seen in 1 report
  29. The debt reduction function does not cap the repayment amount at the current debt, so an unexpected small repayment causes an underflow.

    Seen in 1 report
  30. The debt-settlement loop performs an unchecked subtraction per protocol inside a single transaction, so one insufficient balance reverts the entire batch.

    Seen in 1 report
  31. The decode error is assigned to a new variable while the code checks the outer error variable, so a failed decode does not stop execution.

    Seen in 1 report
  32. The decoder allocates memory from the declared length without confirming enough data is available.

    Seen in 1 report
  33. The decoder appends uncompressed chunk data without comparing its checksum to the computed value.

    Seen in 1 report
  34. The decoder checks only the size of the id value rather than the total encoded record size, and the client adds no length check of its own.

    Seen in 1 report
  35. The decoder indexes the first path byte and slices the rest without checking that the decoded path is non-empty.

    Seen in 1 report
  36. The decoder trusts size values read from the file and allocates buffers from them without capping against the real input size.

    Seen in 1 report
  37. The decoder uses an attacker-supplied length directly as an allocation size and allows unbounded nested unknown fields inside a group.

    Seen in 1 report
  38. The decoding helper assumes its argument is a string and computes an index before validating the type.

    Seen in 1 report
  39. The decompression bomb size limit is not applied to brotli-compressed responses.

    Seen in 1 report
  40. The decompression logic does not limit resources consumed when expanding a compressed request body.

    Seen in 1 report
  41. The decompression routine trusts the uncompressed size field in the gzip footer and allocates that much memory before decompressing.

    Seen in 1 report
  42. The decompression routines loop over a fixed buffer without tracking total output bytes, so there is no cap on expansion.

    Seen in 1 report
  43. The default idle timeout is zero and the header timeout only covers the header phase, so slow bodies are not detected.

    Seen in 1 report
  44. The default naming scheme uses a predictable counter and does not reserve generated names, so a user can pre-claim the next default symbol.

    Seen in 1 report
  45. The default pool size exceeds the per-peer gossip cache, causing an all-miss resend loop that overflows the notification queue.

    Seen in 1 report
  46. The defence inspects only the first fragment or cannot reassemble fragmented DHCPv6 messages.

    Seen in 1 report
  47. The delegate cap is too high for chains with a lower block gas limit.

    Seen in 1 report
  48. The delegator uses a staticcall for functions that were no longer view and needed to update state, causing a revert when state changes were attempted.

    Seen in 1 report
  49. The delete endpoint lacks an authorisation check and poor error handling turns the failure into a 500 that breaks the forum UI.

    Seen in 1 report
  50. The denial-of-service mitigations are based on memory usage only, so empty repetitions allocate nothing and slip past.

    Seen in 1 report