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,451 to 1,500 of 2,053
  1. The oops recovery path fails to release reference counts and locks, and the mm_users refcount uses an overflow-unsafe atomic type.

    Seen in 1 report
  2. The opcode handler calls a method that returns a copy of the entire bytecode array instead of one that returns only the length.

    Seen in 1 report
  3. The operation input count is stored in a 16-bit field with only a debug-only guard, so release builds truncate it.

    Seen in 1 report
  4. The optimiser's reductions assumed subnormal Float64 values could not occur, so with flush-to-zero enabled they emitted a negative subnormal that broke an integer-range assumption.

    Seen in 1 report
  5. The option pricing library converts time-to-expiry to whole days by integer division, so any remaining time under 864 seconds becomes zero and causes a division by zero in the Black-Scholes formula.

    Seen in 1 report
  6. The oracle design assumes every underlying token has a price feed, but some do not.

    Seen in 1 report
  7. The oracle used a fixed maximum response size and did not split failing queries into smaller chunks.

    Seen in 1 report
  8. The orchestrator assumed token metadata was valid UTF-8 and returned an error with no way to skip the bad event.

    Seen in 1 report
  9. The order is cleared in storage before the removal function reads it, so a zero address is used.

    Seen in 1 report
  10. The OTP generation endpoint lacked rate limiting and CAPTCHA, allowing unlimited requests.

    Seen in 1 report
  11. The outdated ansi-regex library contains a regular expression with nested quantifiers that leads to catastrophic backtracking on certain inputs.

    Seen in 1 report
  12. The overflow check itself can overflow because it subtracts the current time from the maximum value without accounting for wrapping.

    Seen in 1 report
  13. The override runs synchronous proof generation inside the async handler, dropping the semaphore, proof-window check and blocking-pool offload.

    Seen in 1 report
  14. The owner lookup scales with the number of tickets in a batch, so a large batch exceeds the block gas limit.

    Seen in 1 report
  15. The packaging sort orders by count of votes against an item in descending order, so flagged items are prioritised.

    Seen in 1 report
  16. The packet processing loop lacked a fallback termination condition independent of packet content.

    Seen in 1 report
  17. The page-size reader deserialises dimensions without upper-bound, infinity or NaN validation.

    Seen in 1 report
  18. The pagination limit is used directly in the backend query with no server-side maximum.

    Seen in 1 report
  19. The pagination loop trusted the explorer's page length to decide when to stop and had no upper bound on pages or stored transactions.

    Seen in 1 report
  20. The pair creation call reverted if a pair already existed and anyone could create the pair beforehand.

    Seen in 1 report
  21. The panel rendering logic did not detect or limit recursive embedding of a panel within itself.

    Seen in 1 report
  22. The parser accepted a cookie line larger than the limit enforced when reloading the jar, making the jar unloadable.

    Seen in 1 report
  23. The parser applied attributes to the wrong service entry because it did not reset per-entry state between definitions.

    Seen in 1 report
  24. The parser assumes array elements and the param field are objects and accesses them without validating their type.

    Seen in 1 report
  25. The parser assumes every transaction has a compute phase, but the compute phase can be the skipped variant.

    Seen in 1 report
  26. The parser casts an internal object to the wrong type without validating it when a reviver and a BigInt64Array constructor are used.

    Seen in 1 report
  27. The parser copies attacker-controlled keys onto objects without guarding against prototype assignment.

    Seen in 1 report
  28. The parser did not limit how many headers or how much related state a single request could create.

    Seen in 1 report
  29. The parser does not check that a length value fits into a signed integer before converting it.

    Seen in 1 report
  30. The parser does not check the return value of the presentation context list parser, leaving the buffer position negative and causing an infinite loop.

    Seen in 1 report
  31. The parser does not validate relocation table size or offset values before using them in a bounds check, allowing an integer overflow.

    Seen in 1 report
  32. The parser does not validate that each array element is an object with a string command key, so invalid requests never complete.

    Seen in 1 report
  33. The parser limited file parts but not the total number of parts, allowing unbounded empty parts.

    Seen in 1 report
  34. The parser lookup used the in operator on a plain object, so inherited Object prototype properties were treated as registered parsers and the code then called a non-parser value.

    Seen in 1 report
  35. The parser loops without advancing the input pointer when a byte is neither of the expected values.

    Seen in 1 report
  36. The parser passed component names straight into struct construction without checking they were valid identifiers.

    Seen in 1 report
  37. The parser passed the key returned by the tokeniser to a string duplication call without checking it for null.

    Seen in 1 report
  38. The parser recursed without a depth limit and the JSON depth limit was reset on each recursive call.

    Seen in 1 report
  39. The parser recursed without a depth limit on nested query fields, and the mutation guard only checked for the GET method rather than allowing only POST.

    Seen in 1 report
  40. The parser relied on a standard XML library without disabling entity expansion.

    Seen in 1 report
  41. The parser resolves nested entity references recursively without a depth limit.

    Seen in 1 report
  42. The parser subtracted the header size from the AVP length without first checking the length was at least the header size, causing an underflow and an enormous allocation.

    Seen in 1 report
  43. The parsing of packets with a server name indication field is flawed.

    Seen in 1 report
  44. The participant phone number parser treated illegal numbers as null and threw a null pointer exception.

    Seen in 1 report
  45. The passthrough light node skipped the prevalidation step that the sequencer light node performs.

    Seen in 1 report
  46. The password length limit existed only in the client and the backend accepted any length.

    Seen in 1 report
  47. The password reset endpoint accepted passwords of unlimited length and hashed them without a size cap.

    Seen in 1 report
  48. The password reset endpoint does not enforce a maximum password length.

    Seen in 1 report
  49. The password reset endpoint has no rate limit, allowing unlimited OTP emails to be sent.

    Seen in 1 report
  50. The password reset endpoint has no rate limiting, allowing unlimited requests.

    Seen in 1 report