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,551 to 1,600 of 2,053
  1. The protocol fee denominator variable was never initialised and no setter was provided, so enabling the fee led to division by zero.

    Seen in 1 report
  2. The protocol hard-codes a single staleness threshold for every price feed instead of using each feed's actual heartbeat.

    Seen in 1 report
  3. The protocol requires oracle price timestamps to be non-decreasing and rejects any price older than the last stored one.

    Seen in 1 report
  4. The protocol trusted and called supportsInterface() on a buyer-supplied contract without handling reverts, so a malicious implementation could halt core flows.

    Seen in 1 report
  5. The protocol trusts a contract account's own signature check answer during block submission.

    Seen in 1 report
  6. The proxy contract lacks a payable receive or fallback function to accept ETH refunds.

    Seen in 1 report
  7. The proxy did not handle data and javascript URL schemes and crashed on them.

    Seen in 1 report
  8. The proxy endpoint did not restrict queries to the configured custom metrics, allowing arbitrary expensive queries from any user.

    Seen in 1 report
  9. The proxy fully buffers inbound client frames it discards, and the upgrade sets no message or frame size limits.

    Seen in 1 report
  10. The proxy lacked a response timeout and maximum response size and trusted chunked responses without a Content-Length header.

    Seen in 1 report
  11. The proxy libraries read entire HTTP response bodies into memory without size limits, so an attacker could cause an out-of-memory condition.

    Seen in 1 report
  12. The proxy used a client-supplied forwarding header as the rate-limit key without verifying the immediate peer was a trusted load balancer.

    Seen in 1 report
  13. The proxying loader does not verify that a redirect was actually received before forwarding the call to interceptors.

    Seen in 1 report
  14. The pruning loop iterated over all proposals since the last executed one, and proposal creation had no limit.

    Seen in 1 report
  15. The publish path computed allocation size from an unvalidated payload length without checking the protocol maximum or guarding against size_t overflow.

    Seen in 1 report
  16. The punctuation trimming loop rescans and recounts the whole remaining string on each pass, giving quadratic time complexity.

    Seen in 1 report
  17. The PURGE method is reachable from the internet without authentication or an IP allowlist.

    Seen in 1 report
  18. The PUT error path returns without closing the single shared file handle.

    Seen in 1 report
  19. The PutMessage handler passes a structure to the WPS message processor before device info has populated it.

    Seen in 1 report
  20. The query parser does not limit the depth of nested parameters, exhausting the call stack.

    Seen in 1 report
  21. The queue is processed as a last-in-first-out stack, so the oldest entries are only reached after all newer ones are removed.

    Seen in 1 report
  22. The randomness callback performs unbounded work proportional to the number of wounded agents.

    Seen in 1 report
  23. The range width is passed to a square-root function with a fixed bound without checking the difference is in range.

    Seen in 1 report
  24. The rate calculation divides by total issued before checking whether it is zero.

    Seen in 1 report
  25. The rate limit was keyed only on the user account and ignored other request attributes such as the User-Agent header.

    Seen in 1 report
  26. The rate limiter and spam blacklist key on the sender address inside the raw transaction rather than on the actual requester.

    Seen in 1 report
  27. The rate limiter counts transactions per contract without distinguishing valid from invalid ones, so anyone can trigger the threshold.

    Seen in 1 report
  28. The rate limiter incremented its counter for any signed transaction without checking the chain ID.

    Seen in 1 report
  29. The rate limiter trusted a header supplied by the client to track attempts instead of server-side state.

    Seen in 1 report
  30. The rate-limit key was the normalised email address alone with no requesting user identifier, so all callers shared one counter.

    Seen in 1 report
  31. The raw request body is parsed without first checking its size.

    Seen in 1 report
  32. The re-LP calculation used the pool's total reserves as the protocol's share instead of the protocol's own LP token balance, so the derived amount to remove could exceed what the protocol held.

    Seen in 1 report
  33. The read endpoint was open to anyone and the node capped concurrent client connections without per-source rate limiting or a request size limit, so one actor could occupy every slot.

    Seen in 1 report
  34. The read timeout was set as a TCP deadline, which has no effect on QUIC streams, and the HTTP/3 server had no timeout of its own.

    Seen in 1 report
  35. The read-only handler panicked on a submit request instead of returning an error.

    Seen in 1 report
  36. The rebase profit was calculated from the contract's raw token balance rather than tracked deposits, so unsolicited transfers inflated the profit and drove the credits-to-supply ratio to zero.

    Seen in 1 report
  37. The recall mints tokens without handling an exhausted minting allowance.

    Seen in 1 report
  38. The receive function appends every chunk to an in-memory buffer with no maximum size.

    Seen in 1 report
  39. The receive function pointer is not reset after BDAT data containing a single dot, causing an infinite loop on the next BDAT.

    Seen in 1 report
  40. The receiver address was only hex-encoded without validating its length or format.

    Seen in 1 report
  41. The receiver contract did not implement the non-blocking approach or a way to force-resume the queue, so any reverting message from any sender could permanently block the channel.

    Seen in 1 report
  42. The receiver validates the claimed token count against a snapshot taken at send time.

    Seen in 1 report
  43. The receiver was exported by default and did not verify the sender or restrict the actions it would perform.

    Seen in 1 report
  44. The reclaim script parser does not enforce a maximum size before storing the script.

    Seen in 1 report
  45. The recursive descent function does not limit recursion depth or resource use on crafted templates.

    Seen in 1 report
  46. The recursive functions that traverse linked hat trees lack a maximum depth limit.

    Seen in 1 report
  47. The recursive MIME read helpers enforce no maximum nesting depth.

    Seen in 1 report
  48. The recursive parameter normalisation re-entered itself on deeply nested input, and the exception logging path called it again.

    Seen in 1 report
  49. The redeem rate divides before multiplying, causing precision loss and underflow when asset supply exceeds the scaled total value locked.

    Seen in 1 report
  50. The redeemed amount is compared against the requested amount without reducing it to the actual redeemed value on a loss.

    Seen in 1 report