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,901 to 1,950 of 2,053
  1. The unregister path calls a quantity function that queries the collateral, so a reverting collateral makes removal impossible.

    Seen in 1 report
  2. 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
  3. 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.

    Seen in 1 report
  4. The unstake function did not check whether the pool was reset when the pending unstake epoch was zero.

    Seen in 1 report
  5. 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
  6. The unsubscribe endpoint has no rate limiting, allowing many requests to trigger a large number of emails.

    Seen in 1 report
  7. The update function does not copy the gas price by chain mapping to the new contract.

    Seen in 1 report
  8. 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
  9. The update function loops over an unbounded array of pairs with no way to remove entries.

    Seen in 1 report
  10. 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
  11. The upgrade loader validates only the header and signature of each image and never confirms the image is the right kind.

    Seen in 1 report
  12. The upgrade process does not validate the version or integrity of the uploaded image.

    Seen in 1 report
  13. The upload API decoded the GIF without first checking or limiting the image dimensions, unlike the regular file upload route.

    Seen in 1 report
  14. 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
  15. The upload handler stored the user-supplied filename without a length limit and it was later embedded in GraphQL responses.

    Seen in 1 report
  16. 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
  17. The URI validation regular expression backtracks catastrophically on two hash characters.

    Seen in 1 report
  18. The urlize helper parses entity-like character sequences in a way that scales poorly with input length.

    Seen in 1 report
  19. The use of .send() with its hardcoded 2300 gas stipend is insufficient for recipients with logic in their fallback function.

    Seen in 1 report
  20. 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
  21. 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
  22. 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
  23. 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
  24. The use of safeApprove instead of safeIncreaseAllowance reverted when changing a non-zero allowance.

    Seen in 1 report
  25. The user share divides by the contract weight without checking it is non-zero.

    Seen in 1 report
  26. The username length limit was enforced only in the browser and not validated again on the server.

    Seen in 1 report
  27. The validator runs with allErrors enabled by default, so it keeps validating after the first failure.

    Seen in 1 report
  28. The variables parameter is accepted as a string and parsed later, so size and complexity limits never see the nested payload.

    Seen in 1 report
  29. 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
  30. The vault fee is not validated at creation, so a huge value overflows a narrow integer during share conversion.

    Seen in 1 report
  31. 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
  32. The vault initiates a withdrawal request on receiving any amount of the staking token, with no minimum threshold.

    Seen in 1 report
  33. 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
  34. 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
  35. The VCard code split property values at 75 characters, causing an infinite loop on large avatar images.

    Seen in 1 report
  36. 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
  37. 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
  38. 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
  39. 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
  40. The vote-power query clears historical entries during a read, so an inflated history can exceed the block gas limit.

    Seen in 1 report
  41. The voter index function returns minus one when an address is not found and callers use the index without checking.

    Seen in 1 report
  42. The VPN service followed symbolic links without validation when creating files.

    Seen in 1 report
  43. The VRF verification function dereferences a nil pointer on a malformed proof instead of rejecting it.

    Seen in 1 report
  44. 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
  45. The wait loop used an equality check against a seconds counter that could be skipped due to scheduling delays instead of a boundary check.

    Seen in 1 report
  46. The web app did not validate the deleted_at field when set to a positive value.

    Seen in 1 report
  47. 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
  48. The web server did not check whether a request target was an existing directory before writing to it.

    Seen in 1 report
  49. 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
  50. 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