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 before-transfer hook resets the last transfer timestamp on any transfer between different addresses, including temporary transfers to and from the trading contract.
-
The bid history array only ever grows, and functions iterate over its full length without a bound, so gas cost rises with attacker-controlled entries.
Seen in 1 report
-
The binary search only checks the upper bound and can return zero even when the lower bound is valid.
-
The bit isolation logic shifts the updated storage value by the incentive index without first isolating the target bit.
Seen in 1 report
-
The blacklist function combines the blacklisting action with a withdrawal attempt, so a reverting withdrawal blocks the blacklisting.
Seen in 1 report
-
The blob transaction builder hard-codes the minimum gas price instead of estimating the market price.
-
The block count parameter was not validated, letting a loop run up to the maximum integer value.
Seen in 1 report
-
Medium
-
-
The block deduplication cache is too small relative to the block production rate.
Seen in 1 report
-
The block policy applies the EIP-1559 base fee ceiling to legacy transactions, unlike the execution layer.
Seen in 1 report
-
The block queue size limit was ignored when the next height was within a short distance of the local chain, and parent-child links were not checked.
-
The block streaming loop has no upper bound and only stops when the stream ends.
Seen in 1 report
-
The Bluetooth stack did not validate incoming frames before processing them.
Seen in 1 report
-
The body parser has no timeout for slow bodies and the server timeout only covers inactivity.
Seen in 1 report
-
$250 Low
-
-
The body reader allocated memory based on the client-supplied Content-Length without a maximum.
Seen in 1 report
-
The bonus formula assumes the threshold always exceeds the cross-denominated balance, but the solvency check can fail per token.
-
The bonus-inclusive seizure is subtracted from total collateral without first capping it, causing an unsigned underflow.
Seen in 1 report
-
The boosted value was added to the locked amount but not to the permanent total supply when a lock became permanent.
Seen in 1 report
-
The bounds check uses a strict greater-than test, so an offset equal to the file size passes even though the NT header cannot fit.
Seen in 1 report
-
The BPT threshold check used the pool's total supply at the time of joining, which could be manipulated within the same transaction, and the emergency settlement was permissionless and locked the vault.
Seen in 1 report
-
The bridge contract did not handle failures from external sponsor vault calls, so any revert in the sponsor vault propagated and blocked all cross-chain transactions.
-
The bridging function never reads the maxBridge state variable, so the configured limit is not enforced.
Seen in 1 report
-
The Brotli path read the entire decompressed output into memory with no maximum size limit.
-
The browser created a storage folder whose name ended in a dot, which Windows cannot handle, causing persistent file access errors.
Seen in 1 report
-
The browser did not enforce the rule that scripts may only close windows they opened themselves.
Seen in 1 report
-
The browser did not limit how many dialogs a single page could open.
Seen in 1 report
-
The browser did not rate-limit or cheaply reject repeated window-open requests from rapid reloads, so each blocked request still consumed memory.
Seen in 1 report
-
The browser did not validate that the bind group index matched the shader's declared groups before passing it to the driver.
Seen in 1 report
-
The browser does not cancel an in-progress XSLT transformation and its network requests when the tab or window is closed.
Seen in 1 report
-
The browser rendered every emoji as a separate image, exhausting resources on a message with a huge number of them.
-
The buffer decrease used the previous block number of the last update rather than the oldest pending message, so including several at once skipped the decrease.
Seen in 1 report
-
The buffer size constant was 32, but the snprintf call used a hardcoded size of 64, causing a write beyond the buffer.
Seen in 1 report
-
The buffer size was calculated with the XOR operator instead of a left shift, giving 8 slots instead of 1024.
-
The burn amount was recomputed from current market price without checking it against the vault's actual balance.
Seen in 1 report
-
The burn function fails to call the delegate move function to remove the token from the owner's delegate list, so the list is never decreased.
Seen in 1 report
-
The buyout fee denominator was initialised to zero and lacked a setter, so division by zero occurred when calculating the fee.
Seen in 1 report
-
The bytecode length was multiplied by a constant in 32-bit signed arithmetic, so very large functions wrapped negative and passed the maximum-size check.
Seen in 1 report
-
The cache was a plain object, so a __proto__ key was treated as a reference to Object.prototype rather than an ordinary entry.
Seen in 1 report
-
The callback subtracts the full debt from the position instead of the debt minus the flash loan fee, leaving nothing to cover the fee.
-
The callback used the contract's absolute token balance instead of the balance difference across the loan.
-
The cancellation function uses a push transfer of AVAX to the owner, which can be blocked by a contract that rejects incoming AVAX.
Seen in 1 report
-
The cancellation logic adds one to the order's token amount to mark it filled, which overflows at the maximum value.
Seen in 1 report
-
The cancellation path reloads current bucket sizes instead of the sizes used when the order was created.
-
The cap was chosen from a calculation for a different variable and did not account for the liquidation threshold being applied after the ratio conversion.
-
The catch block catches all errors including out-of-gas and pauses the contract.
Seen in 1 report
-
The catch block unconditionally paused the contract on any mint failure, including out-of-gas, without checking whether the failure was due to insufficient gas or other reasons.
Seen in 1 report
-
The catch clause captured returned bytes in memory, letting a malicious contract force an unbounded copy and run the caller out of gas.
Seen in 1 report
-
The catch clause was written as catch Error(string memory), which only caught string-based reverts and not custom errors or other revert types.
Seen in 1 report
-
The catch-all try/catch around verbs.mint treats any failure, including out-of-gas, as a reason to pause, while the gas floor check is too low compared with the unbounded storage writes done during minting.
Seen in 1 report
-
The certificate chain counting loop lacked a check for cycles.
Seen in 1 report
-
The certificate parsing logic does not properly handle certain malformed inputs, causing an infinite loop.
Seen in 1 report