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,151 to 1,200 of 2,053
  1. The end blocker processes all removal requests for a block in one unbounded loop and there is no minimum stake to limit request count.

    Seen in 1 report
  2. The end function sends ERC1155 tokens to the proposer without handling the case where the proposer cannot receive them, causing a revert that blocks future buyouts.

    Seen in 1 report
  3. The endpoint accepts an unbounded integer for the user ID and passes it into expensive casting or database operations without a range check.

    Seen in 1 report
  4. The endpoint does not limit the requested time period or the number of data points returned.

    Seen in 1 report
  5. The endpoint does not enforce a maximum value for the record count parameter.

    Seen in 1 report
  6. The endpoint does not limit or validate the size of the requested date range.

    Seen in 1 report
  7. The endpoint has no server-side rate limiting or throttling.

    Seen in 1 report
  8. The endpoint handler is registered without the service-point spending check used by other resource-intensive endpoints.

    Seen in 1 report
  9. The endpoint serialises attacker-controlled input before verifying it, so a small request can describe a large structure.

    Seen in 1 report
  10. The endpoint splits the user-controlled scopes parameter and converts every element to a symbol without an allowlist or element limit.

    Seen in 1 report
  11. The endpoint that triggers confirmation emails has no rate limiting or bot protection.

    Seen in 1 report
  12. The endpoint validates the email format but does not enforce a maximum length.

    Seen in 1 report
  13. The entire response body is read into memory with no size limit.

    Seen in 1 report
  14. The entropy provider address is set once in the constructor with no setter, so a failing provider permanently blocks restarts.

    Seen in 1 report
  15. The error classifier handles only one contract error and lacks a case for the expired-origin error, so the stale proof is treated as retryable.

    Seen in 1 report
  16. The error handler in the parsing loop neither sets an error flag nor advances the input position, so it loops on the same byte forever.

    Seen in 1 report
  17. The error handler parses the response body with JSON.parse without checking that the body is non-empty, and the resulting exception is raised inside an event emitter with no error listener.

    Seen in 1 report
  18. The error path converts the entire attacker-controlled input into a hex string without bounding the cost by gas.

    Seen in 1 report
  19. The error path for an invalid kernel address returns without freeing the previously allocated temporary buffer.

    Seen in 1 report
  20. The error path in the PUT handler returns without closing the file, leaving the single shared file handle open.

    Seen in 1 report
  21. The error path that sends a goaway on an invalid connection-level window update does not destroy or dereference the session object.

    Seen in 1 report
  22. The error struct appends every failed policy error with no upper bound before joining them into one string.

    Seen in 1 report
  23. The event-reporting function assumes a peer pointer is always valid, but a failed crypto-NAK validity check calls it with a null peer.

    Seen in 1 report
  24. The EVM call and create functions do not add the intrinsic gas cost, including the access list cost, before execution.

    Seen in 1 report
  25. The exchange rate update divides by totalSupply without checking for zero, so a direct token transfer that makes the balance positive while totalSupply is zero causes a division by zero.

    Seen in 1 report
  26. The execution loop treats a persistently failing block as fatal and has no skip, quarantine or record mechanism.

    Seen in 1 report
  27. The existence check relies only on token balances at the computed pair address and never verifies deployed code or reads reserves.

    Seen in 1 report
  28. The exposed COM class does not verify the caller's identity or privileges before performing file deletion.

    Seen in 1 report
  29. The expression wrapping blockquote text in quotation marks backtracks excessively on certain inputs in older Ruby versions.

    Seen in 1 report
  30. The extraction tool cannot delete files inside a non-writable directory, so temporary files are never cleaned up.

    Seen in 1 report
  31. The failure arm requeues the submission and continues without an await point, and the requeue rewinds the cursor so the same failing submission is re-emitted forever.

    Seen in 1 report
  32. The failure of the garbage collection marker initialisation is not handled, leaving an invalid pointer.

    Seen in 1 report
  33. The FastCGI configuration caps concurrent php-cgi processes at two with a long idle timeout, so slow requests exhaust the pool.

    Seen in 1 report
  34. The fee could round to zero and the code still attempts a token transfer.

    Seen in 1 report
  35. The fee growth inside a range can exceed the global fee growth, so subtracting one from the other underflows.

    Seen in 1 report
  36. The fee is not capped, so a fee greater than the withdrawal amount causes an arithmetic underflow when subtracted.

    Seen in 1 report
  37. The fee percentage is elapsed time times licence fee divided by a year with no upper bound, so it can exceed the base constant and underflow.

    Seen in 1 report
  38. The fee transfer to an untrusted, unchangeable recipient happens in the same step as the main payout.

    Seen in 1 report
  39. The fee transfer to the owner runs before the user transfer, so any fee failure reverts the whole withdrawal.

    Seen in 1 report
  40. The fee validation uses a different rounding direction (down) than the fee calculation (up), so a fee that is valid under the controller's rounding is rejected by the validator.

    Seen in 1 report
  41. The fetch implementation does not cap the number of content-encoding layers before decompressing.

    Seen in 1 report
  42. The filename escape routine replaces each illegal character with two characters without checking the resulting length, overflowing a kernel buffer.

    Seen in 1 report
  43. The filter converts the exponent to an integer and tries to create a string of that length.

    Seen in 1 report
  44. The filter handler inserts each new filter into an in-memory map with no limit on entries or memory.

    Seen in 1 report
  45. The filter's traversal pushes sibling nodes onto the processing stack twice, giving exponential processing.

    Seen in 1 report
  46. The flash loan function does not account for double entry-point tokens, so repayment is misread as excess balance.

    Seen in 1 report
  47. The flood-limiter state is updated only after signature verification, so messages failing verification never count against the limit.

    Seen in 1 report
  48. The flow limit is global per token and epoch, so one large transfer consumes the whole allowance.

    Seen in 1 report
  49. The form has no anti-automation control and auto-sends a confirmation email to any supplied address.

    Seen in 1 report
  50. The formatting function does not cap the width value before allocating the output buffer.

    Seen in 1 report