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 751 to 800 of 2,053
  1. A state variable is declared internal instead of exposing a public getter, so an external staticcall reverts.

    Seen in 1 report
  2. A state-changing endpoint has no authentication or authorisation check.

    Seen in 1 report
  3. The stored name keeps the null byte but the interface shows only the truncated name, so deletion confirmation never matches.

    Seen in 1 report
  4. Strict address equality between pool token and strategy asset fails when one is native ether and the other wrapped.

    Seen in 1 report
  5. A strict timestamp check on oracle round IDs with no fallback to a previous round.

    Seen in 1 report
  6. String hashing exhausted CPU and memory when handling very long input.

    Seen in 1 report
  7. Sub-image width calculation ignores bits per pixel, so the width stays too large and recursion never ends.

    Seen in 1 report
  8. Submit failures did not increment the retry counter and the parent validity was not pre-checked, so deterministic reverts were retried without bound.

    Seen in 1 report
  9. Subtracting a constant from a small rating without an underflow check.

    Seen in 1 report
  10. Subtracting a profit amount from a balance without checking the balance is sufficient, causing an unsigned integer underflow.

    Seen in 1 report
  11. The supplied amount is set to the contract's full token balance while only the borrowed amount is approved.

    Seen in 1 report
  12. Switch logic requires the previous provider's last requested price to be committed with no fallback or cancellation.

    Seen in 1 report
  13. Symbolic links are not validated before deletion.

    Seen in 1 report
  14. Temporary outgoing connections used only for ping requests are counted together with fully handshaked outbound connections.

    Seen in 1 report
  15. The text protocol reader concatenates until a newline and callers do not wrap input in a size-limiting reader.

    Seen in 1 report
  16. The absolute difference between two oracle prices is computed without converting them to the same number of decimals.

    Seen in 1 report
  17. The accelerator assumes every L2 precompile call can be reproduced on L1, but dynamic-gas precompiles can consume nearly the whole L2 block gas limit.

    Seen in 1 report
  18. The access point does not verify that the source MAC address matches the station being deauthenticated.

    Seen in 1 report
  19. The accrued value was clamped against the cap instead of the current total borrow.

    Seen in 1 report
  20. The activity assumes a non-null user object when handling an external intent and calls for the account name without checking for account context.

    Seen in 1 report
  21. The activity was exported without a permission guard and its startup logic did not check for an existing authenticated session before resetting navigation.

    Seen in 1 report
  22. The actor awaits a send on the RPC channel inside a select arm, so a full channel starves block builds and seals.

    Seen in 1 report
  23. The adapter assumes a Chainlink feed exists for every pool token without checking availability.

    Seen in 1 report
  24. The adapter called the lending pool's withdraw function unconditionally, without checking whether the adapter actually held a positive balance of the token.

    Seen in 1 report
  25. The adapter inferred the claimed amount from a before/after balance difference on a claim that any third party can trigger.

    Seen in 1 report
  26. The adapter reverts instead of handling a stake below the external minimum.

    Seen in 1 report
  27. The add and remove functions do not enforce or preserve the maximum list size, so removal truncates and orphans assets.

    Seen in 1 report
  28. The add-funds function does not check that the lend order is still active.

    Seen in 1 report
  29. The addClusterCACertificate function deserialises untrusted input without validating it.

    Seen in 1 report
  30. The addGate function lacks a check to ensure the price increase denominator is greater than zero before assigning it.

    Seen in 1 report
  31. The addProperties function did not cap the number of properties at 15, while onMinted wrote one attribute per property into a fixed 16-slot array.

    Seen in 1 report
  32. The address-change function both enforces a maximum unstaking array length and is the only place that deletes the array, so once the limit is exceeded the array can never be cleared.

    Seen in 1 report
  33. The admin API was mounted regardless of the enable flag, and the base-fee decoder only rejected the case where both elasticity and denominator were zero.

    Seen in 1 report
  34. The afterTokenTransfer hook does not reduce the sender's claimed value when tokens are transferred away.

    Seen in 1 report
  35. The aggregator address is hardcoded with no way to update it, so a permanent aggregator failure cannot be recovered from.

    Seen in 1 report
  36. The algorithm validity check sat inside a condition that only ran when bytes remained, so a key with the extended-flags bit and no key data skipped validation.

    Seen in 1 report
  37. The allocation-failure path leaves the digit pointer inconsistent and cleanup then writes through it.

    Seen in 1 report
  38. The allowance check compares the approved amount for strict equality with the owner's live LP balance instead of checking it covers the transfer amount.

    Seen in 1 report
  39. The alternation inside the repeated capture groups let a single character match two branches, creating exponential backtracking when the overall match failed.

    Seen in 1 report
  40. The amend function did not increment the per-transaction limit counter when creating new book positions.

    Seen in 1 report
  41. The amount parameter was only checked for being non-empty and exponent notation was materialised as an unbounded integer on the UI thread.

    Seen in 1 report
  42. The ante handler checks only whether at least one message is an observer message rather than requiring all messages to be of that type.

    Seen in 1 report
  43. The API allowed multiple aliases of the same expensive mutation in one request without a cost, alias or mutation execution limit.

    Seen in 1 report
  44. The API does not validate that iid is a positive integer, and the error during cache expiration leaves a broken record.

    Seen in 1 report
  45. The API handler passed user-supplied length values straight into memory allocation without bounds checks.

    Seen in 1 report
  46. The ApolloUploadServer middleware did not validate or limit the array index provided in the multipart map.

    Seen in 1 report
  47. The app did not handle accounts with a null username when processing group membership.

    Seen in 1 report
  48. The app did not handle group members whose username is null.

    Seen in 1 report
  49. The app did not validate or strip control characters from reaction text before storing and rendering it.

    Seen in 1 report
  50. The app stored the URL in a form that did not safely encode the quote character, corrupting the cache entry.

    Seen in 1 report