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 851 to 900 of 2,053
  1. The before-transfer hook resets the last transfer timestamp on any transfer between different addresses, including temporary transfers to and from the trading contract.

    Seen in 1 report
  2. 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
  3. The binary search only checks the upper bound and can return zero even when the lower bound is valid.

    Seen in 1 report
  4. The bit isolation logic shifts the updated storage value by the incentive index without first isolating the target bit.

    Seen in 1 report
  5. The blacklist function combines the blacklisting action with a withdrawal attempt, so a reverting withdrawal blocks the blacklisting.

    Seen in 1 report
  6. The blob transaction builder hard-codes the minimum gas price instead of estimating the market price.

    Seen in 1 report
  7. The block count parameter was not validated, letting a loop run up to the maximum integer value.

    Seen in 1 report
  8. The block deduplication cache is too small relative to the block production rate.

    Seen in 1 report
  9. The block policy applies the EIP-1559 base fee ceiling to legacy transactions, unlike the execution layer.

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

    Seen in 1 report
  11. The block streaming loop has no upper bound and only stops when the stream ends.

    Seen in 1 report
  12. The Bluetooth stack did not validate incoming frames before processing them.

    Seen in 1 report
  13. The body parser has no timeout for slow bodies and the server timeout only covers inactivity.

    Seen in 1 report
  14. The body reader allocated memory based on the client-supplied Content-Length without a maximum.

    Seen in 1 report
  15. The bonus formula assumes the threshold always exceeds the cross-denominated balance, but the solvency check can fail per token.

    Seen in 1 report
  16. The bonus-inclusive seizure is subtracted from total collateral without first capping it, causing an unsigned underflow.

    Seen in 1 report
  17. 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
  18. 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
  19. 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
  20. 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.

    Seen in 1 report
  21. The bridging function never reads the maxBridge state variable, so the configured limit is not enforced.

    Seen in 1 report
  22. The Brotli path read the entire decompressed output into memory with no maximum size limit.

    Seen in 1 report
  23. 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
  24. The browser did not enforce the rule that scripts may only close windows they opened themselves.

    Seen in 1 report
  25. The browser did not limit how many dialogs a single page could open.

    Seen in 1 report
  26. 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
  27. 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
  28. 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
  29. The browser rendered every emoji as a separate image, exhausting resources on a message with a huge number of them.

    Seen in 1 report
  30. 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
  31. 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
  32. The buffer size was calculated with the XOR operator instead of a left shift, giving 8 slots instead of 1024.

    Seen in 1 report
  33. The burn amount was recomputed from current market price without checking it against the vault's actual balance.

    Seen in 1 report
  34. 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
  35. 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
  36. 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
  37. 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
  38. The callback subtracts the full debt from the position instead of the debt minus the flash loan fee, leaving nothing to cover the fee.

    Seen in 1 report
  39. The callback used the contract's absolute token balance instead of the balance difference across the loan.

    Seen in 1 report
  40. 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
  41. 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
  42. The cancellation path reloads current bucket sizes instead of the sizes used when the order was created.

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

    Seen in 1 report
  44. The catch block catches all errors including out-of-gas and pauses the contract.

    Seen in 1 report
  45. 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
  46. 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
  47. 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
  48. 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
  49. The certificate chain counting loop lacked a check for cycles.

    Seen in 1 report
  50. The certificate parsing logic does not properly handle certain malformed inputs, causing an infinite loop.

    Seen in 1 report