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,351 to 1,400 of 2,053
  1. The liquidation path subtracted the reduced credited amount from the global in-use counter instead of the original credited amount.

    Seen in 1 report
  2. The liquidation reverts when the requested shares exceed the maximum computed from current borrow shares.

    Seen in 1 report
  3. The liquidity calculation used the pool's total liquidity and stable balance instead of the formula accounting for the current tick and position range.

    Seen in 1 report
  4. The listener service failed to verify that commands originated from a trusted source before acting on them.

    Seen in 1 report
  5. The listener trusts a remote length field and allocates that much memory before reading the data.

    Seen in 1 report
  6. The load balancer's proxy buffer was too small for the oversized request header.

    Seen in 1 report
  7. The loader accepted an unbounded list of script names and read each from disk on every request.

    Seen in 1 report
  8. The loader does not handle a partial two-stage firmware update.

    Seen in 1 report
  9. The loader read dataset dimensions from the file and allocated memory for them without checking the size was reasonable or matched the data.

    Seen in 1 report
  10. The lock escrow account is initialised at a predictable address without requiring the owner's signature.

    Seen in 1 report
  11. The lockout mechanism also invalidated all active sessions, so any failed login that triggered lockout logged the legitimate user out.

    Seen in 1 report
  12. The lockout mechanism does not distinguish legitimate users from attackers and the duration is excessive.

    Seen in 1 report
  13. The log filter function bounded the number of topics but not the number of addresses.

    Seen in 1 report
  14. The logging code has no size limit or rotation policy, so log files grow indefinitely.

    Seen in 1 report
  15. The logging system could not handle messages larger than about 64KB.

    Seen in 1 report
  16. The logic call event parser was left as an unimplemented stub, so any matching event caused a panic.

    Seen in 1 report
  17. The login form passed the username to the logger without stripping carriage-return and newline characters, and the log parser's username pattern did not match names containing a dot.

    Seen in 1 report
  18. The long-leg margin formula divides by a distance-from-strike term that can be zero with no guard.

    Seen in 1 report
  19. The loop check only tests the basic type, so vector-typed loop variables are wrongly treated as finite.

    Seen in 1 report
  20. The loop counter is not incremented when the continue statement runs.

    Seen in 1 report
  21. The loop does not check whether each distributor is active before calling the declaration, and the active-only modifier reverts for inactive ones.

    Seen in 1 report
  22. The loop in handle_close_bracket iterates over all previous openers for each closing bracket, leading to quadratic time complexity.

    Seen in 1 report
  23. The loop increments the index instead of breaking when the remaining share count reaches zero.

    Seen in 1 report
  24. The loop searching for StringFileInfo entries did not advance the pointer when the length field was zero, so the exit condition was never met.

    Seen in 1 report
  25. The loop used a fixed staker count while the list shrank as stakers were refunded.

    Seen in 1 report
  26. The loop-finiteness analysis accepted global variables as loop counters and only inspected the loop body, missing mutations made inside called functions.

    Seen in 1 report
  27. The loops use the length of the previous arrays instead of the new arrays when copying elements.

    Seen in 1 report
  28. The loops were written for Solidity 0.6.12 where underflow wraps silently, but in 0.8.7 underflow reverts, so the loop condition caused a revert.

    Seen in 1 report
  29. The low-level call copies the full return data into memory without limiting its size.

    Seen in 1 report
  30. The lowercase() and uppercase() rules used regular expressions with inefficient complexity.

    Seen in 1 report
  31. The LP token calculation divides by the pool value without checking for zero.

    Seen in 1 report
  32. The LZMA decompression path trusts size information in the compressed stream and allocates without a sensible limit.

    Seen in 1 report
  33. The macro calls a file-descriptor function without a null check on the stream.

    Seen in 1 report
  34. The maker creation function accepts an arbitrary recipient and adds to their quota without consent, and the quota is shared with taker assets.

    Seen in 1 report
  35. The Markdown parser had a performance flaw that allowed a crafted input to cause excessive CPU consumption.

    Seen in 1 report
  36. The markdown parser lacks limits on footnote count or complexity, and the timeout does not prevent exhaustion under parallel load.

    Seen in 1 report
  37. The markdown parser placed no limit on recursion or resource use for deeply nested links.

    Seen in 1 report
  38. The markdown rendering library with the autolink extension has a performance issue on certain patterns.

    Seen in 1 report
  39. The markdown-to-HTML renderer does not handle certain character references inside link syntax and throws an unhandled error.

    Seen in 1 report
  40. The math renderer sets no limits on macro expansion or output size, so nested expressions consume excessive client resources.

    Seen in 1 report
  41. The math rendering library or page logic does not limit the size or complexity of inline math expressions.

    Seen in 1 report
  42. The Maven version validation regex has nested quantifiers that backtrack exponentially on certain inputs.

    Seen in 1 report
  43. The maximum magnitude check compares against a cumulative value that unlocks can reduce.

    Seen in 1 report
  44. The Maximum Security Agent followed a directory junction, causing it to delete a file.

    Seen in 1 report
  45. The maximum text length was defined in native code but never passed to the JavaScript extractor and never checked when the message was received.

    Seen in 1 report
  46. The melt function allows burning without a minimum supply check, letting the ratio reach its upper bound and block further increases.

    Seen in 1 report
  47. The memorialise function lacks an ownership or approval check and accepts zero-value or tiny positions.

    Seen in 1 report
  48. The mempool and block validator check chain id and system sender in opposite orders.

    Seen in 1 report
  49. The mempool balance check is per transaction in isolation rather than against the cumulative pending effect.

    Seen in 1 report
  50. The mempool key includes an unsigned, node-controlled priority field, so one transaction can be stored under many keys.

    Seen in 1 report