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,251 to 1,300 of 2,053
  1. The hardcoded maximum delegate count is too high for chains with lower block gas limits.

    Seen in 1 report
  2. The hash field is used as a deduplication key without being validated against the transaction contents.

    Seen in 1 report
  3. The hash table used a weak, unkeyed hash function and permitted duplicate keys, so an attacker could force many entries into the same bucket.

    Seen in 1 report
  4. The header lookup performs a full linear scan of the header list on every call, giving quadratic cost when many headers share a name.

    Seen in 1 report
  5. The header-collection code used a plain object and wrote to a prototype-named key without an own-property check, so the inherited prototype was treated as an array.

    Seen in 1 report
  6. The health factor helper returns the maximum unsigned integer when debt is zero, and the liquidation flow compares that against a finite limit and reverts.

    Seen in 1 report
  7. The heartbeat is derived from the second-largest gap in recent updates instead of the oracle's native heartbeat.

    Seen in 1 report
  8. The helper did not validate the calling application before acting on its request.

    Seen in 1 report
  9. The helper divided by place-value rulers without checking they were non-zero, so small inputs produced a zero ruler and a division-by-zero revert.

    Seen in 1 report
  10. The helper trusted a caller-supplied process ID and killed it without checking the caller's privileges.

    Seen in 1 report
  11. The helpers did not reject scientific-notation strings before passing them to a big-decimal parser that expands the exponent.

    Seen in 1 report
  12. The heredoc end check compared strings of length zero, so an empty identifier wrongly signalled a heredoc end.

    Seen in 1 report
  13. The host kernel trusted an address supplied through guest input and read from it without checking that it was mapped and safe.

    Seen in 1 report
  14. The host places its socket files in a world-writable shared directory with predictable names.

    Seen in 1 report
  15. The hostname was written to a tab-separated file without stripping newlines, and the parser assumed every line had at least four fields, causing an out-of-bounds read.

    Seen in 1 report
  16. The housekeeping goroutine has no deferred recover, so a panic in cleaning logic kills it permanently.

    Seen in 1 report
  17. The HTML comment scanner is called repeatedly for each less-than character and scans to the end of the line.

    Seen in 1 report
  18. The HTTP client automatically decompresses compressed responses without validating the Content-Encoding header.

    Seen in 1 report
  19. The HTTP client call sets no maximum response size and accepts compressed responses, so a small compressed body can expand without bound.

    Seen in 1 report
  20. The HTTP client is created without timeout settings, so requests can hang indefinitely.

    Seen in 1 report
  21. The HTTP client timeout only started after headers were fully received, so a server that never finished headers bypassed it.

    Seen in 1 report
  22. The HTTP client used for webhooks had no overall timeout and no limit on response size.

    Seen in 1 report
  23. The HTTP parser did not cap the number of chunk extension bytes it would read per connection, so a client could stream them indefinitely.

    Seen in 1 report
  24. The HTTP request parser allocated a buffer based on the client-supplied Content-Length without enforcing an upper bound.

    Seen in 1 report
  25. The iconv stream filter with the ignore flag fails to handle certain input and loops endlessly.

    Seen in 1 report
  26. The IIOP protocol handler deserialises untrusted data without adequate validation or restriction.

    Seen in 1 report
  27. The IKEEXT service dereferences a pointer without a null check while processing a Vendor ID payload.

    Seen in 1 report
  28. The image code trusts the width and height in the file header and allocates memory without checking them against the actual file size.

    Seen in 1 report
  29. The image processing tools decompressed the zTXt data without limits.

    Seen in 1 report
  30. The image upload servlet fails to validate or bound the input it receives.

    Seen in 1 report
  31. The implementation behind the proxy has no receive or payable fallback, so the router's refund call reverts.

    Seen in 1 report
  32. The implementation contract was left uninitialized, allowing an attacker to become its owner and upgrade it.

    Seen in 1 report
  33. The import endpoint has neither a response size limit nor a rate limit.

    Seen in 1 report
  34. The import process does not filter out non-regular files such as FIFOs from extracted archives.

    Seen in 1 report
  35. The importer's client library expanded each API response into many nested objects, causing disproportionate memory allocation.

    Seen in 1 report
  36. The incoming connection counter is incremented before a ban check that can return early without decrementing it.

    Seen in 1 report
  37. The indefinite-length element parser recurses on nested elements without a depth limit.

    Seen in 1 report
  38. The index lookup reverts above the maximum price and settlement calls it without handling that case.

    Seen in 1 report
  39. The inflate loop decompressed each buffered chunk to completion in a synchronous loop with no expansion limit and no yield back to the caller.

    Seen in 1 report
  40. The inherited mempool allows duplicates when gas price rises, and the transaction flow sends each accepted copy straight to block ingress.

    Seen in 1 report
  41. The initial exchange rate is set by the first depositor with no minimum deposit, and later deposit maths overflows at extreme rates.

    Seen in 1 report
  42. The initial share calculation sets the share value based on the minimum of the base and quote token amounts, which can be inflated by donating tokens after minting a minimal number of shares.

    Seen in 1 report
  43. The initial share calculation uses a floor division that can round down to zero, and the update formula multiplies by the existing target, so zero stays zero.

    Seen in 1 report
  44. The initialisation check allows minTotalContributions to equal maxTotalContributions, and the contribution logic refunds excess before calculating voting power, which can round to zero and revert.

    Seen in 1 report
  45. The initializer assigns the liquidity source to the address returned by the redemption contract's liquidity call, which is actually the token.

    Seen in 1 report
  46. The inline code exclusion regex has cubic time complexity on a long run of newlines followed by a character.

    Seen in 1 report
  47. The inner operation handler does not check that remaining gas covers the specified call and verification gas limits.

    Seen in 1 report
  48. The input validation regex allows the hyphen character, so command-line flags can be injected into the install command.

    Seen in 1 report
  49. The insert-time affordability check uses only the base fee while proposal-time validation uses the full gas bid.

    Seen in 1 report
  50. The installation endpoint accepts unauthenticated requests and overrides the shared secret based only on the cloud ID.

    Seen in 1 report