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.
-
A state variable is declared internal instead of exposing a public getter, so an external staticcall reverts.
Seen in 1 report
-
A state-changing endpoint has no authentication or authorisation check.
-
The stored name keeps the null byte but the interface shows only the truncated name, so deletion confirmation never matches.
Seen in 1 report
-
Strict address equality between pool token and strategy asset fails when one is native ether and the other wrapped.
-
A strict timestamp check on oracle round IDs with no fallback to a previous round.
Seen in 1 report
-
String hashing exhausted CPU and memory when handling very long input.
Seen in 1 report
-
$100
-
-
Sub-image width calculation ignores bits per pixel, so the width stays too large and recursion never ends.
-
Submit failures did not increment the retry counter and the parent validity was not pre-checked, so deterministic reverts were retried without bound.
-
Subtracting a constant from a small rating without an underflow check.
Seen in 1 report
-
Subtracting a profit amount from a balance without checking the balance is sufficient, causing an unsigned integer underflow.
Seen in 1 report
-
The supplied amount is set to the contract's full token balance while only the borrowed amount is approved.
Seen in 1 report
-
Switch logic requires the previous provider's last requested price to be committed with no fallback or cancellation.
-
Symbolic links are not validated before deletion.
Seen in 1 report
-
Temporary outgoing connections used only for ping requests are counted together with fully handshaked outbound connections.
-
The text protocol reader concatenates until a newline and callers do not wrap input in a size-limiting reader.
Seen in 1 report
-
The absolute difference between two oracle prices is computed without converting them to the same number of decimals.
-
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
-
The access point does not verify that the source MAC address matches the station being deauthenticated.
Seen in 1 report
-
The accrued value was clamped against the cap instead of the current total borrow.
Seen in 1 report
-
The activity assumes a non-null user object when handling an external intent and calls for the account name without checking for account context.
-
The activity was exported without a permission guard and its startup logic did not check for an existing authenticated session before resetting navigation.
-
The actor awaits a send on the RPC channel inside a select arm, so a full channel starves block builds and seals.
-
The adapter assumes a Chainlink feed exists for every pool token without checking availability.
Seen in 1 report
-
The adapter called the lending pool's withdraw function unconditionally, without checking whether the adapter actually held a positive balance of the token.
-
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
-
The adapter reverts instead of handling a stake below the external minimum.
Seen in 1 report
-
The add and remove functions do not enforce or preserve the maximum list size, so removal truncates and orphans assets.
Seen in 1 report
-
The add-funds function does not check that the lend order is still active.
-
The addClusterCACertificate function deserialises untrusted input without validating it.
-
The addGate function lacks a check to ensure the price increase denominator is greater than zero before assigning it.
Seen in 1 report
-
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
-
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
-
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
-
The afterTokenTransfer hook does not reduce the sender's claimed value when tokens are transferred away.
-
The aggregator address is hardcoded with no way to update it, so a permanent aggregator failure cannot be recovered from.
-
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.
-
The allocation-failure path leaves the digit pointer inconsistent and cleanup then writes through it.
-
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
-
The alternation inside the repeated capture groups let a single character match two branches, creating exponential backtracking when the overall match failed.
-
The amend function did not increment the per-transaction limit counter when creating new book positions.
Seen in 1 report
-
The amount parameter was only checked for being non-empty and exponent notation was materialised as an unbounded integer on the UI thread.
-
The ante handler checks only whether at least one message is an observer message rather than requiring all messages to be of that type.
-
The API allowed multiple aliases of the same expensive mutation in one request without a cost, alias or mutation execution limit.
-
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
-
The API handler passed user-supplied length values straight into memory allocation without bounds checks.
Seen in 1 report
-
The ApolloUploadServer middleware did not validate or limit the array index provided in the multipart map.
Seen in 1 report
-
The app did not handle accounts with a null username when processing group membership.
Seen in 1 report
-
The app did not handle group members whose username is null.
Seen in 1 report
-
The app did not validate or strip control characters from reaction text before storing and rendering it.
Seen in 1 report
-
The app stored the URL in a form that did not safely encode the quote character, corrupting the cache entry.
Seen in 1 report