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.
-
The subtraction underflowed when the minimum fee exceeded the user's fee ratio.
Seen in 1 report
-
The success return reports no actual weight, so the full declared weight is kept instead of refunded.
-
The supply cap check compared token ID plus one to the cap instead of using the tracked total supply.
Seen in 1 report
-
The SVG parser did not disable external entity resolution or limit entity expansion.
Seen in 1 report
-
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
-
The symbol helper assumes a string return and does not handle the bytes32 case.
Seen in 1 report
-
The synchronous bindings trust the byte length reported by a typed array without checking the real buffer.
-
The syntax highlighter recursively re-entered different language contexts without a depth limit.
Seen in 1 report
-
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.
-
The system relies on each node voluntarily making the request with no way to verify it was made.
Seen in 1 report
-
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
-
The tag validation function dereferenced a tag structure returned by the lookup without verifying it was non-null.
Seen in 1 report
-
The tag-removal regex uses nested quantifiers that allow catastrophic backtracking.
Seen in 1 report
-
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
-
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
-
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
-
The template parser backtracks excessively on certain patterns.
Seen in 1 report
-
The temporary filename is built by appending a suffix without checking the filesystem length limit, so the rename fails.
Seen in 1 report
-
The terminal's admin interface accepts commands without proper authentication or rate limiting.
Seen in 1 report
-
The threshold for acceptable price deviation is set lower than the maximum possible deviation of the oracle between updates.
Seen in 1 report
-
The TIFF parser does not handle incomplete image directories safely, and the print queue persists the failing job across reboots.
Seen in 1 report
-
The time validation regex allows ambiguous repetition that backtracks catastrophically on invalid input.
Seen in 1 report
-
The timeline renderer did not handle a comment referencing a missing product variant, so the whole page failed to render.
-
The timestamp cache is unbounded and pruning ignores entries with future cycle counters, so those entries are never cleaned up.
Seen in 1 report
-
The token address is cached in the constructor rather than queried dynamically.
Seen in 1 report
-
The token address is deterministic and the factory does not check whether a pair already exists before creating one.
Seen in 1 report
-
The token name field has no maximum length validation in the API.
Seen in 1 report
-
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
-
The token-lock branch of the unlock check omitted the file-owner override and locks were not tied to the locker's account lifecycle.
-
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.
-
The total earnings calculation mixes pre-slashing withdrawn shares with post-slashing balances, so the computed share can exceed the contract balance.
-
The total reward is computed from summed percentages while individual rewards are computed separately, causing a rounding mismatch.
-
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
-
The tracker stores at most two transaction hashes per pending cross-chain transaction.
-
The transaction info struct requires a vin field, which coinbase transactions do not have, so deserialisation fails.
-
The transfer function uses the call value instead of the intended amount parameter.
Seen in 1 report
-
High
-
-
The transfer logic automatically enables the received asset as collateral when the receiver's balance was zero, without opt-in.
Seen in 1 report
-
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
-
The transfer validation performs cross-contract balance lookups that behave differently in the transfer context and fail spuriously.
Seen in 1 report
-
The transmission group size field is not validated before being used to process packets.
Seen in 1 report
-
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
-
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
-
The try/catch does not catch a call to a non-existent function on the listener.
-
The try/catch only handled external calls, not reverts from internal loops.
Seen in 1 report
-
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
-
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
-
The unbounded loop over CDPs in redeemCollateral can exceed the block gas limit when many small debts are processed.
Seen in 1 report
-
The uniqueness key is a hash of only name and symbol, so anyone can claim it first.
Seen in 1 report
-
The unlock time was incremented by the block timestamp instead of being set to a fixed future time.
Seen in 1 report
-
The unlocked-reward formula multiplies total rewards by elapsed time before dividing by duration, so the intermediate product can exceed the safe value limit.