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 251 to 300 of 2,053
  1. A pointer is not initialised when the request has no extra data and is later dereferenced without a check.

    Seen in 1 report
  2. A pointer variable was reused without being reset to null before a second call that required it to be null.

    Seen in 1 report
  3. A predicate iterated an Option wrapper rather than the inner transaction list and only inspected the first transaction, so any batch starting with a deposit was treated as deposits-only.

    Seen in 1 report
  4. A predictable contract address from the create opcode combined with a share conversion formula allows donation attacks to inflate share price.

    Seen in 1 report
  5. A previous security fix only patched the parser branch that takes an options hash, leaving the default branch able to instantiate arbitrary named constants.

    Seen in 1 report
  6. A privileged role was granted to a shared permissionless executor contract rather than a fixed trusted address.

    Seen in 1 report
  7. A prototype mismatch meant the function expected a pointer but received a length value, causing an invalid memory dereference.

    Seen in 1 report
  8. A provider class exposed its functionality without requiring authentication at all.

    Seen in 1 report
  9. A public helper can advance the bid cursor past the end of the bid list, causing a division by zero at settlement.

    Seen in 1 report
  10. A race between header frame processing and session destruction on connection close.

    Seen in 1 report
  11. A race condition in HTTP request handling leads to a state that crashes or hangs the service.

    Seen in 1 report
  12. A race condition in the FTP command loop meant new input arriving before the previous response was handled caused a crash.

    Seen in 1 report
  13. A race condition in the Pluton firmware's handling of concurrent syscalls led to a rate limit that triggered a reboot.

    Seen in 1 report
  14. A read buffer is resized to the peer-declared frame length before any frame body arrives.

    Seen in 1 report
  15. A receipt lookup calls ownerOf on a token that may have been burned instead of handling the missing token.

    Seen in 1 report
  16. A receive buffer size exceeds the maximum allowed by an assertion check when a large length is passed to the buffer allocation.

    Seen in 1 report
  17. A receive() function was marked nonReentrant, so the legitimate callback during completeQueuedWithdrawal() was blocked.

    Seen in 1 report
  18. A recursive call in the namespace method loops when resolving an attribute with a namespace prefix and a default attribute of the same name.

    Seen in 1 report
  19. A reentrancy check enforced one delegation per block by comparing block height to a stored value.

    Seen in 1 report
  20. A regression from a change that optimized garbage collection barriers for object creation caused an incorrect assumption about value types in the ARM JIT compiler.

    Seen in 1 report
  21. A regular expression was built from unsanitised user input without escaping special characters.

    Seen in 1 report
  22. A rendering error triggered by the combination of a collapsed message group and its banner was not handled gracefully.

    Seen in 1 report
  23. A require on request existence does not handle the case where a token's exit balance is zero and no request was created.

    Seen in 1 report
  24. A require statement enforcing a non-zero intermediate price prevents the function from signalling failure with zero.

    Seen in 1 report
  25. A safe transfer is called unconditionally with a zero amount without checking for zero first.

    Seen in 1 report
  26. A server-supplied length-encoded integer was used as an array size with no upper bound.

    Seen in 1 report
  27. A session is added to the cache but its session id length is later set to zero, and removal only deletes entries with a non-zero length.

    Seen in 1 report
  28. A share-based token transfer can deliver slightly less than the requested amount.

    Seen in 1 report
  29. A signed size field is added to a constant without an overflow check, so a negative value produces a zero allocation length.

    Seen in 1 report
  30. A signedness error in a bounds check and a missing offset validation led to a negative size passed to realloc and an out-of-bounds read.

    Seen in 1 report
  31. A single fixed-size merkle tree with a hard entry cap was used for all withdrawals, and the append function reverted at the cap.

    Seen in 1 report
  32. A single-byte loop counter is compared with a two-byte packet length, so the counter overflows before the loop ends.

    Seen in 1 report
  33. A size check returns early for shader stages other than vertex and fragment, so compute shaders skip the limit.

    Seen in 1 report
  34. A size check used the size of a 16-bit length value, so it only rejected a remaining count of zero or one instead of the full two bytes.

    Seen in 1 report
  35. A small static pool of TCP endpoints with idle timeouts disabled, so connections are never released.

    Seen in 1 report
  36. A state machine bug left the DO state incomplete so the code looped without progress.

    Seen in 1 report
  37. A staticcall that always reverts due to a state change, with no gas cap, consumes 63/64 of the gas forwarded.

    Seen in 1 report
  38. A strict equality check between the debt balance change and repaid assets does not account for rounding in share conversions.

    Seen in 1 report
  39. A strict greater-than comparison is used instead of greater-than-or-equal when checking the two-thirds participation threshold.

    Seen in 1 report
  40. A strict less-than comparison is used where less-than-or-equal is needed.

    Seen in 1 report
  41. A string-length loop in a driver lacked a bound check, so it read beyond the supplied buffer when no terminator was present.

    Seen in 1 report
  42. A struct is copied with the memory data location instead of a storage reference, so the active flag is never updated.

    Seen in 1 report
  43. A struct member had no default initialiser and was only assigned when a pixel-local storage struct was present, so the hash read an indeterminate value.

    Seen in 1 report
  44. A support check compares a token contract address against an empty string while the configuration stores the zero address string, so the check never matches.

    Seen in 1 report
  45. A syscall that panics on failure is used instead of one returning a success flag, so reverts cannot be handled gracefully.

    Seen in 1 report
  46. A trailing-whitespace regular expression in the HTTP client library lacked a starting anchor, giving quadratic backtracking on long runs of spaces.

    Seen in 1 report
  47. A try/catch around an external call does not revert the state change on failure, letting an attacker force the failure and trigger a cooldown.

    Seen in 1 report
  48. A try/catch only wraps the external call, so reverts in the success handler escape and an empty catch hides real failures.

    Seen in 1 report
  49. A typo in the map16 bounds check returned false instead of 1, so the function incorrectly reported success.

    Seen in 1 report
  50. A user's validator list can be added to without consent and core functions loop over that unbounded list with no cap or pruning.

    Seen in 1 report