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 301 to 350 of 2,053
  1. A user-controlled count was multiplied by an entry size and added to a header without an integer overflow check, so the allocated buffer was far smaller than the loop that walked it.

    Seen in 1 report
  2. A user-controlled parameter selects arbitrary Ruby methods to invoke.

    Seen in 1 report
  3. A user-supplied id is trusted to set the next id counter without range validation.

    Seen in 1 report
  4. A user-supplied path is used in file operations without validation.

    Seen in 1 report
  5. A user-supplied value is used as a memory offset without validating the resulting address.

    Seen in 1 report
  6. A UTF-16 path buffer pointer was overwritten when the file descriptor was set, losing the only reference.

    Seen in 1 report
  7. A value based on total assets is subtracted from the yield intercept without checking it is not larger.

    Seen in 1 report
  8. A value from a malformed changeset is passed to the value-type function without a null check.

    Seen in 1 report
  9. A verifier check fails when it finds an object that was not checked.

    Seen in 1 report
  10. A very large scaling factor overflows when total staked is tiny.

    Seen in 1 report
  11. A very wide gap between lookup table price bounds combined with a large step size makes the Newton correction overshoot and underflow the reserve.

    Seen in 1 report
  12. A zero check was applied to total supply while the division used a derived supply that can be zero independently.

    Seen in 1 report
  13. Abbreviated commit hashes can collide, making the tarball download ambiguous.

    Seen in 1 report
  14. Accumulator additions are not wrapped in an unchecked block, so overflow reverts instead of wrapping.

    Seen in 1 report
  15. Activation synchronously notifies observers that may destroy the window before the following call uses it.

    Seen in 1 report
  16. Add-on code fails to validate JavaScript inputs and error conditions.

    Seen in 1 report
  17. Address vector expansion not accounted for when recompressing, so the buffer headroom is exceeded.

    Seen in 1 report
  18. Aggregating balances from all subvaults without checking that each supports the asset.

    Seen in 1 report
  19. All events in a block were handled synchronously before replying, with no bound on event count or response time.

    Seen in 1 report
  20. All pending deposits are bundled into a single transaction instead of being split into smaller ones.

    Seen in 1 report
  21. All received NFTs were stored in one shared array and found by linear scan, with no cap on array growth and no way to remove an entry without a successful transfer.

    Seen in 1 report
  22. An account pointer was dereferenced without checking whether the account existed in the state database.

    Seen in 1 report
  23. An address-printing function calls assert instead of returning an error for an unsupported address family.

    Seen in 1 report
  24. An allocation flag was not reset when a later Content-Type header was short, so a stack buffer pointer was freed as heap memory.

    Seen in 1 report
  25. An arithmetic operation in the reward calculation overflows even though the input is within the allowed range.

    Seen in 1 report
  26. An arithmetic underflow when subtracting the weight change from the current slope.

    Seen in 1 report
  27. An assertion aborts the process when the public key is missing instead of returning an error.

    Seen in 1 report
  28. An assertion that allowances are zero after adding liquidity conflicts with a partial-fill minimum.

    Seen in 1 report
  29. An attacker-controlled integer was used as an array index without checking it was within bounds.

    Seen in 1 report
  30. An early error return skips freeing the allocated response buffer when the size check fails.

    Seen in 1 report
  31. An early return sits outside the capacity check, off-by-one comparisons are used, and the pending connection counter is decremented without a check.

    Seen in 1 report
  32. An exception was thrown from a background thread in C++ cryptographic code instead of being handled safely.

    Seen in 1 report
  33. An exposed phpinfo page leaked the origin IP and the origin accepted direct connections instead of only traffic from the WAF.

    Seen in 1 report
  34. An external function is declared with the wrong return type, so the call reverts.

    Seen in 1 report
  35. An external self-call inside validation changed the observed caller to the wallet itself, so caller-bound signatures never matched.

    Seen in 1 report
  36. An incorrect function selector is used when encoding the external call.

    Seen in 1 report
  37. An index check uses less-than-or-equal instead of less-than, allowing an index equal to the length.

    Seen in 1 report
  38. An integer overflow in a buffer allocation routine during request handling led to an infinite loop.

    Seen in 1 report
  39. An integer overflow in packet parsing when handling attacker-controlled data.

    Seen in 1 report
  40. An integer overflow in the quota charge calculation resets the used-bytes counter to zero.

    Seen in 1 report
  41. An integer underflow in the NTLM challenge response length handling leads to a heap overflow.

    Seen in 1 report
  42. An interest helper wrapped in try/catch whose catch block needs a minimum gas amount makes a view function revert.

    Seen in 1 report
  43. An N+1 query pattern fetches offers in one query then runs separate queries per offer for the user and currencies.

    Seen in 1 report
  44. An on-chain expiry is converted to a date without a range check, and the resulting invalid date is truthy so the null guard misses it.

    Seen in 1 report
  45. An order passed as a memory parameter means pointer assignments update only the temporary copy.

    Seen in 1 report
  46. An out-of-bounds read when processing a referral response with a non-zero referral value.

    Seen in 1 report
  47. An outdated package depended on a vulnerable version of a websocket library with a regex flaw.

    Seen in 1 report
  48. An outdated safe approval helper reverts when changing a non-zero allowance to another non-zero value.

    Seen in 1 report
  49. An unauthenticated peer's advertised height is trusted for sync-state decisions before any header or work validation.

    Seen in 1 report