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,951 to 2,000 of 2,053
  1. The web UI passed a path containing a line feed into Git and rendering code that assumed clean single-line paths.

    Seen in 1 report
  2. The webhook test endpoint has no rate limit, so unlimited requests are sent from the platform's servers.

    Seen in 1 report
  3. The websocket handler sets a large read limit and lacks rate limiting, then forwards each message to the internal HTTP RPC server without size checks.

    Seen in 1 report
  4. The while loop has no maximum iteration count and the borrowed amount shrinks geometrically, so a low collateral factor causes many iterations.

    Seen in 1 report
  5. The Wi-Fi standard allows unauthenticated de-authentication frames that can be forged to disconnect devices.

    Seen in 1 report
  6. The wiki library expands a tilde in the page title to a home directory path, writing outside the wiki storage.

    Seen in 1 report
  7. The Windows Installer Service followed a directory junction without properly validating the target path.

    Seen in 1 report
  8. The withdraw function did not enforce a minimum withdrawal amount.

    Seen in 1 report
  9. The withdraw function iterates over an array with no maximum length and performs an external call in each iteration, so the total gas required can exceed the block gas limit.

    Seen in 1 report
  10. The withdraw function performs reward token transfers before returning the deposit, and a revert in any reward transfer blocks the entire withdrawal.

    Seen in 1 report
  11. The withdraw function relies on account addresses derived from mutable state (the first available position account index), so concurrent withdrawals invalidate the account list required by pending transactions.

    Seen in 1 report
  12. The withdraw function subtracts the full amount from the recorded portal deposit balance even when part is covered by tokens held directly.

    Seen in 1 report
  13. The withdraw function uses vault active status to resolve the real owner.

    Seen in 1 report
  14. The withdraw-all function checks that the locker balance is zero instead of processing expired locks, so any dust locked for the strategy blocks migration.

    Seen in 1 report
  15. The withdrawal function does not subtract unclaimed rewards from the balance before transferring tokens to the owner.

    Seen in 1 report
  16. The withdrawal function unconditionally calls unstake and sellCvx even when the calculated amounts are zero, and those functions revert on zero input.

    Seen in 1 report
  17. The withdrawal logic depends on external lending pools that can be fully utilised, causing reverts when unwrapping.

    Seen in 1 report
  18. The withdrawal logic loops over every liquidation record since the deposit without any bound.

    Seen in 1 report
  19. The withdrawal loop does not break when the debt decrease exceeds the total assets to pull, so the next iteration underflows.

    Seen in 1 report
  20. The withdrawal loop does not skip strategies whose calculated share is zero, so it calls undeploy with zero.

    Seen in 1 report
  21. The withdrawal loop does not skip zero-amount reward transfers, so a token that reverts on zero-value transfers causes the entire withdrawal to fail.

    Seen in 1 report
  22. The withdrawal path does not remove the validator from the renewal list when pending changes reach zero, unlike the add path.

    Seen in 1 report
  23. The withdrawal path reused a conversion function that asserts a deposit cap and adds the amount instead of subtracting it.

    Seen in 1 report
  24. The WithdrawProxy.deposit function was publicly callable, allowing anyone to mint shares and inflate totalSupply, which broke the burn logic in processEpoch.

    Seen in 1 report
  25. The withdrawTaxes function uses a single success flag and a require that reverts the entire transaction if any token transfer fails, without handling individual failures.

    Seen in 1 report
  26. The WordPress installation leaves default features like XML-RPC and WP-Cron enabled and publicly accessible, which can be abused for brute-force and resource exhaustion.

    Seen in 1 report
  27. The wrap function calls safeApprove with a positive amount without first resetting the allowance to zero, which fails for tokens that enforce the approval race condition protection.

    Seen in 1 report
  28. The wrapper contract omits the entry point that lets users clear a zero loan-to-value collateral flag required by the health check.

    Seen in 1 report
  29. The wrapper expands the pending state into every requested simulated block before the block-count limit is checked, making work proportional to blocks times pending state size.

    Seen in 1 report
  30. The wrapper set a new non-zero allowance without first resetting an existing non-zero allowance.

    Seen in 1 report
  31. The wrapper's unwrap function does not handle the case where the external master chef contract has insufficient reward token balance, causing the entire transaction to revert.

    Seen in 1 report
  32. The wrong array variable is used in an event emission inside a loop.

    Seen in 1 report
  33. The XML parser resolved DTD entities without limits and allowed file system lookups.

    Seen in 1 report
  34. The XML parsing loop calls an assertion macro for unhandled node types instead of handling them gracefully.

    Seen in 1 report
  35. The XSS filtering logic mishandled a javascript: link and timed out server-side.

    Seen in 1 report
  36. The YAML parser did not limit expansion of recursive entities, so a small document consumes excessive resources.

    Seen in 1 report
  37. The zap contracts relied on their own token balance to verify minting, which anyone could inflate.

    Seen in 1 report
  38. The zapper increases its allowance by the user-supplied maximum amounts rather than the amounts actually consumed.

    Seen in 1 report
  39. The zero-length datagram check used continue before the packet counter was incremented, so empty datagrams never consumed the per-call budget.

    Seen in 1 report
  40. There is no per-address limit on withdrawal requests, the minimum is low and processing handles a fixed batch.

    Seen in 1 report
  41. There was no bound on the array length when iterating in processFees(), allowing it to grow indefinitely.

    Seen in 1 report
  42. There was no limit on how much output buffer an unauthenticated client could cause Redis to allocate, including during authentication error responses.

    Seen in 1 report
  43. There was no maximum frame count check before decoding all comma-separated base64 frames into memory.

    Seen in 1 report
  44. There was no minimum percentage per split or cap on the number of splits, allowing a project owner to create so many splits that distribution exceeded the block gas limit.

    Seen in 1 report
  45. Three values are multiplied before dividing, causing an intermediate overflow under checked arithmetic.

    Seen in 1 report
  46. Tile update batch reset only when the frame identifier changes, so entries accumulate.

    Seen in 1 report
  47. Tip-based priority is assigned during validation before any tip is withdrawn or reserved.

    Seen in 1 report
  48. Token price divides by total supply without handling zero supply while total funds remain non-zero.

    Seen in 1 report
  49. Token price function divides by total supply without handling a zero supply.

    Seen in 1 report
  50. Token transfers in a loop without handling failures, so one blacklisted recipient reverts the transaction.

    Seen in 1 report