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 unregister path calls a quantity function that queries the collateral, so a reverting collateral makes removal impossible.
Seen in 1 report
-
The unregistration check treated any non-zero balance or pending amount, including unsolicited dust, as a hard blocker with no admin override.
Seen in 1 report
-
The unstake function checked the balance before releasing tokens, then recorded pending units even though the release had already zeroed the account and pool state.
-
The unstake function did not check whether the pool was reset when the pending unstake epoch was zero.
-
The unstakeAllRewardTokens function only unstaked when the cooldown amount was zero, so any non-zero cooldown, even a tiny one, prevented unstaking for everyone.
Seen in 1 report
-
The unsubscribe endpoint has no rate limiting, allowing many requests to trigger a large number of emails.
Seen in 1 report
-
The update function does not copy the gas price by chain mapping to the new contract.
-
The update function has no access control, so anyone can raise the protected amount and cause an underflow in the deposited-amount recalculation.
Seen in 1 report
-
The update function loops over an unbounded array of pairs with no way to remove entries.
Seen in 1 report
-
The update function passed the LP token address instead of the underlying token address to the router's update function, causing infinite recursion.
Seen in 1 report
-
The upgrade loader validates only the header and signature of each image and never confirms the image is the right kind.
-
The upgrade process does not validate the version or integrity of the uploaded image.
-
The upload API decoded the GIF without first checking or limiting the image dimensions, unlike the regular file upload route.
Seen in 1 report
-
The upload delay value is taken straight from the request into a thread sleep without validation and stored in a servlet field that persists across requests.
Seen in 1 report
-
The upload handler stored the user-supplied filename without a length limit and it was later embedded in GraphQL responses.
-
The upload path never checked claimed image dimensions or capped decode memory, so the image library allocated by pixel count rather than file size.
Seen in 1 report
-
The URI validation regular expression backtracks catastrophically on two hash characters.
-
The urlize helper parses entity-like character sequences in a way that scales poorly with input length.
Seen in 1 report
-
The use of .send() with its hardcoded 2300 gas stipend is insufficient for recipients with logic in their fallback function.
Seen in 1 report
-
The use of a linear while loop to skip CDPs with ICR below MCR instead of a more efficient search algorithm.
Seen in 1 report
-
The use of block.timestamp for cycle updates makes cycles variable length, while the voting escrow rounds down to the nearest week, causing the two lock timings to diverge.
Seen in 1 report
-
The use of Lido's claimWithdrawal in a loop, where each call performs an unbounded binary search over an ever-growing checkpoint history, causing gas usage to scale with the number of checkpoints.
Seen in 1 report
-
The use of nearCallPanic instead of revertWithReason for unsuccessful calls to Compressor::publishCompressedBytecode causes all gas to be consumed on failure.
Seen in 1 report
-
The use of safeApprove instead of safeIncreaseAllowance reverted when changing a non-zero allowance.
Seen in 1 report
-
The user share divides by the contract weight without checking it is non-zero.
-
The username length limit was enforced only in the browser and not validated again on the server.
-
The validator runs with allErrors enabled by default, so it keeps validating after the first failure.
Seen in 1 report
-
The variables parameter is accepted as a string and parsed later, so size and complexity limits never see the nested payload.
-
The vault enforces its deposit limit on the caller, so deposits routed through the router count against the router's own balance.
Seen in 1 report
-
The vault fee is not validated at creation, so a huge value overflows a narrow integer during share conversion.
-
The vault identifier was chosen by the user rather than assigned by the protocol, allowing an attacker to claim it first.
Seen in 1 report
-
The vault initiates a withdrawal request on receiving any amount of the staking token, with no minimum threshold.
-
The vault loops over many request IDs in one transaction, and each claim in Lido's queue does costly checkpoint searching, so a large batch could exceed limits or stall.
Seen in 1 report
-
The vault withdraw rounds up shares to burn, so a direct asset transfer inflates the share price and makes the protocol withdraw more than its recorded allocation.
Seen in 1 report
-
The VCard code split property values at 75 characters, causing an infinite loop on large avatar images.
Seen in 1 report
-
The verifier never enforced that the count of versioned hashes equals the count of blobs, commitments and proofs, and the serving path indexed the blob array without a bounds check.
Seen in 1 report
-
The vest function does not check that the caller is the beneficiary, and the claim calculation loops over an unbounded array.
Seen in 1 report
-
The video encoder metrics provider does not validate the width and height values before computing the area, leading to an integer overflow that triggers a fatal check.
Seen in 1 report
-
The video processing pipeline trusted the duration metadata in the MP4 header instead of deriving the duration from the actual frames.
Seen in 1 report
-
The vote-power query clears historical entries during a read, so an inflated history can exceed the block gas limit.
Seen in 1 report
-
The voter index function returns minus one when an address is not found and callers use the index without checking.
Seen in 1 report
-
The VPN service followed symbolic links without validation when creating files.
Seen in 1 report
-
The VRF verification function dereferences a nil pointer on a malformed proof instead of rejecting it.
Seen in 1 report
-
The WAF inspects cookie values more strictly than query parameters while marketing scripts persist unsanitised URL parameters into long-lived cookies.
Seen in 1 report
-
The wait loop used an equality check against a seconds counter that could be skipped due to scheduling delays instead of a boundary check.
-
The web app did not validate the deleted_at field when set to a positive value.
Seen in 1 report
-
The Web IDE did not properly encode or handle special characters in branch names when constructing the URL or loading the merge request.
Seen in 1 report
-
The web server did not check whether a request target was an existing directory before writing to it.
Seen in 1 report
-
The web server does not validate the HTTP message format and crashes when the required empty line separating headers from the body is missing.
Seen in 1 report
-
The web server lacked limits on concurrent connections per client and had short timeouts for incomplete requests, allowing a single script to exhaust server threads.
Seen in 1 report