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,851 to 1,900 of 2,053
  1. The subtraction underflowed when the minimum fee exceeded the user's fee ratio.

    Seen in 1 report
  2. The success return reports no actual weight, so the full declared weight is kept instead of refunded.

    Seen in 1 report
  3. The supply cap check compared token ID plus one to the cap instead of using the tracked total supply.

    Seen in 1 report
  4. The SVG parser did not disable external entity resolution or limit entity expansion.

    Seen in 1 report
  5. The symbol class did not remove its new method like other special classes do, producing an invalid object that crashed when inspected.

    Seen in 1 report
  6. The symbol helper assumes a string return and does not handle the bytes32 case.

    Seen in 1 report
  7. The synchronous bindings trust the byte length reported by a typed array without checking the real buffer.

    Seen in 1 report
  8. The syntax highlighter recursively re-entered different language contexts without a depth limit.

    Seen in 1 report
  9. The system allows a message length needing more intrinsic gas than the minimum gas limit, and the broadcast error handling does not recover, leaving the nonce blocked.

    Seen in 1 report
  10. The system relies on each node voluntarily making the request with no way to verify it was made.

    Seen in 1 report
  11. The TAB validation was moved inside the first-pair block during a refactoring, so it no longer ran for cookie attributes such as path.

    Seen in 1 report
  12. The tag validation function dereferenced a tag structure returned by the lookup without verifying it was non-null.

    Seen in 1 report
  13. The tag-removal regex uses nested quantifiers that allow catastrophic backtracking.

    Seen in 1 report
  14. The teardown function freed queued messages without subtracting their cost from the global out-of-order byte counter, unlike the normal dequeue path.

    Seen in 1 report
  15. The template engine places no limit on the size of strings or arrays a template can create, so memory exhaustion is possible from a tiny input.

    Seen in 1 report
  16. The template page did not validate that the link value was a plain template ID, so a render failure was retried endlessly.

    Seen in 1 report
  17. The template parser backtracks excessively on certain patterns.

    Seen in 1 report
  18. The temporary filename is built by appending a suffix without checking the filesystem length limit, so the rename fails.

    Seen in 1 report
  19. The terminal's admin interface accepts commands without proper authentication or rate limiting.

    Seen in 1 report
  20. The threshold for acceptable price deviation is set lower than the maximum possible deviation of the oracle between updates.

    Seen in 1 report
  21. The TIFF parser does not handle incomplete image directories safely, and the print queue persists the failing job across reboots.

    Seen in 1 report
  22. The time validation regex allows ambiguous repetition that backtracks catastrophically on invalid input.

    Seen in 1 report
  23. The timeline renderer did not handle a comment referencing a missing product variant, so the whole page failed to render.

    Seen in 1 report
  24. The timestamp cache is unbounded and pruning ignores entries with future cycle counters, so those entries are never cleaned up.

    Seen in 1 report
  25. The token address is cached in the constructor rather than queried dynamically.

    Seen in 1 report
  26. The token address is deterministic and the factory does not check whether a pair already exists before creating one.

    Seen in 1 report
  27. The token name field has no maximum length validation in the API.

    Seen in 1 report
  28. The token transfer logic requires an immediate fee distribution that can fail when the calculated platform share is zero and the royalty token reverts on zero-value transfers.

    Seen in 1 report
  29. The token-lock branch of the unlock check omitted the file-owner override and locks were not tied to the locker's account lifecycle.

    Seen in 1 report
  30. The top-voted piece is selected solely by vote weight, but the quorum check can fail, leaving a piece that cannot be dropped and blocking others.

    Seen in 1 report
  31. The total earnings calculation mixes pre-slashing withdrawn shares with post-slashing balances, so the computed share can exceed the contract balance.

    Seen in 1 report
  32. The total reward is computed from summed percentages while individual rewards are computed separately, causing a rounding mismatch.

    Seen in 1 report
  33. The tracker handler does not check whether the inbound transaction was already observed and executed, and failed trackers are never removed.

    Seen in 1 report
  34. The tracker stores at most two transaction hashes per pending cross-chain transaction.

    Seen in 1 report
  35. The transaction info struct requires a vin field, which coinbase transactions do not have, so deserialisation fails.

    Seen in 1 report
  36. The transfer function uses the call value instead of the intended amount parameter.

    Seen in 1 report
  37. The transfer logic automatically enables the received asset as collateral when the receiver's balance was zero, without opt-in.

    Seen in 1 report
  38. The transfer path calls the live oracle price on every transfer instead of using a cached value, so any oracle failure blocks all transfers.

    Seen in 1 report
  39. The transfer validation performs cross-contract balance lookups that behave differently in the transfer context and fail spuriously.

    Seen in 1 report
  40. The transmission group size field is not validated before being used to process packets.

    Seen in 1 report
  41. The transport layer trusts an attacker-influenced length field and allocates a buffer of that size with no cap, and the decoded copy doubles the footprint.

    Seen in 1 report
  42. The try-catch treats any empty error as an out-of-gas error, but empty errors can come from external calls reverting without a message.

    Seen in 1 report
  43. The try/catch does not catch a call to a non-existent function on the listener.

    Seen in 1 report
  44. The try/catch only handled external calls, not reverts from internal loops.

    Seen in 1 report
  45. The unbounded growth of the reward rate log array combined with a loop over it can exceed the block gas limit.

    Seen in 1 report
  46. The unbounded loop over all gauges in ProfitManager.claimRewards when called from SurplusGuildMinter.getReward, combined with no upper limit on the number of gauges.

    Seen in 1 report
  47. The unbounded loop over CDPs in redeemCollateral can exceed the block gas limit when many small debts are processed.

    Seen in 1 report
  48. The uniqueness key is a hash of only name and symbol, so anyone can claim it first.

    Seen in 1 report
  49. The unlock time was incremented by the block timestamp instead of being set to a fixed future time.

    Seen in 1 report
  50. The unlocked-reward formula multiplies total rewards by elapsed time before dividing by duration, so the intermediate product can exceed the safe value limit.

    Seen in 1 report