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 path builder checks only one configured fee tier and reverts instead of probing alternatives.
Seen in 1 report
-
The path length was not validated before a fixed-length substring call, so a single backslash caused an unhandled exception.
-
The path skip call's result was not assigned back, so the loop condition never changed.
Seen in 1 report
-
The pause handler is a no-op and receive callbacks extend flow-control windows unconditionally, so the pause buffer has no aggregate cap.
-
The pay function subtracts the paid amount from the debt without capping it at the outstanding debt, so an overpayment underflows.
Seen in 1 report
-
Medium
-
-
The payload encoder writes the To address without checking for nil, even though the transaction type forbids a missing recipient.
Seen in 1 report
-
The payload schema only required a record of string keys with arbitrary values, and the HTTP server had no request size limit.
Seen in 1 report
-
The payout limit setter does not check that the new limit is above the payout already accumulated in the current epoch.
Seen in 1 report
-
The peer certificate reference is incremented but never freed on any return path.
-
The penalty handler is invoked without awaiting it, so an exception escapes normal error handling and reaches the process-level uncaught exception handler.
Seen in 1 report
-
The pending-removals cleanup loop has no batch size limit, so its cost grows with an attacker-controlled list length.
-
The per-account sequence number is overwritten with the database value on each new transaction, discarding the in-memory increment.
-
The per-asset reward token cap ignores that one liquidation invokes several incentivised token operations, multiplying the work.
-
The per-block gas limit check allows an attacker to consume the entire limit with a single transaction.
Seen in 1 report
-
The per-block loan limit is shared across all pool creations, and creating a pool is very cheap.
-
The per-interval request budget for public endpoints is set too low and is shared per validator.
Seen in 1 report
-
The per-user account contract does not inherit or implement the ERC721 holder interface, so it cannot receive NFTs via safe-mint.
-
The per-wallet limit check applies to the fee sink address, but fee collection does not exempt it.
Seen in 1 report
-
The percentage check is skipped when total staked is zero, so the first deposit gives one validator 100 percent and later deposits always exceed the limit.
Seen in 1 report
-
The plain data field fetches blob content directly in the application layer, bypassing the resource limits and timeouts of the file proxy.
Seen in 1 report
-
The plugin passed the untrusted request URL directly to the URL constructor without a try/catch and without validating leading slashes.
-
The plugin subtracted one from the decrypted length without checking for an empty plaintext, underflowing an unsigned size.
-
The poke function requires every recalculated pool weight to be non-zero, but weights can round down to zero.
Seen in 1 report
-
High
-
-
The poll interval check compared against the last received packet time, which spoofed and replayed packets also updated, rather than the last clean packet time.
Seen in 1 report
-
The pool applies delegated status lazily while the block policy pre-marks every authority as delegated.
Seen in 1 report
-
The pool balance function iterates over all token balances instead of only the relevant ones.
Seen in 1 report
-
The pool set total liquidity units to the native deposit amount without a minimum ratio.
Seen in 1 report
-
High
-
-
The pool's intrinsic gas calculation omits the access list cost.
Seen in 1 report
-
The pop handler assumes the current element is an array or object without checking for scalar types.
Seen in 1 report
-
The post handler refunds the full tip rather than a portion, so priority and block space cost nothing.
-
The post-only check compares against the best ask without leaving a one-tick gap.
Seen in 1 report
-
The post-transaction hook returns an error on any module-specific failure and the EVM keeper reverts the whole transaction without checking whether the transaction involved the module.
Seen in 1 report
-
The pow function's exponentiation overflowed because the weight ratio was not scaled consistently with the base.
Seen in 1 report
-
The pre-authentication ping handler queues pong responses without limit and only frees them after key exchange.
Seen in 1 report
-
The precompile passes a hardcoded gas limit to nested calls and charges it only after return, so the 63/64 rule does not apply and recursion is unbounded.
-
The precompile slices the first four bytes of calldata without checking that the input is at least four bytes long.
-
The prevalidator was only created when the whitelist was non-empty, so deserialisation checks were skipped entirely.
-
The preview scraper ran a full headless browser that executed JavaScript from untrusted pages without sandboxing or restrictions.
Seen in 1 report
-
The process() function did not use a try/catch around the external callback call, so any revert in the callback reverted the entire transaction.
-
The processing function makes an external call to the recipient without limiting gas.
Seen in 1 report
-
The processing function read the token supply after it had been burned to zero and used it as a divisor without a guard.
Seen in 1 report
-
The profit formula subtracts the borrower's debt and return from the deposited value without checking the debt is smaller.
Seen in 1 report
-
The project cost function iterates over an unbounded array of tasks without a limit, causing gas exhaustion when the array grows large.
-
The project pinned an outdated consensus library version with a known denial-of-service issue.
Seen in 1 report
-
The proposal function passes block.number to a function that expects block.timestamp, so the voting power lookup uses a time far in the past.
-
The proposal handler did not re-verify or drop invalid vote extensions from the local last commit.
Seen in 1 report
-
The proposal ID hash omits the end block parameter.
-
The protocol assumes funds deposited into a lending pool are always withdrawable, but the pool lends out all reserves.
Seen in 1 report
-
The protocol assumes router commissions stay low enough for rebalancing to remain profitable and within the router's limit, with no fallback.
Seen in 1 report
-
The protocol does not account for tokens that interpret a maximum uint256 transfer amount as a request to transfer the sender's balance.
Seen in 1 report