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 hardcoded maximum delegate count is too high for chains with lower block gas limits.
Seen in 1 report
-
The hash field is used as a deduplication key without being validated against the transaction contents.
Seen in 1 report
-
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
-
The header lookup performs a full linear scan of the header list on every call, giving quadratic cost when many headers share a name.
-
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.
-
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.
-
The heartbeat is derived from the second-largest gap in recent updates instead of the oracle's native heartbeat.
Seen in 1 report
-
The helper did not validate the calling application before acting on its request.
Seen in 1 report
-
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
-
The helper trusted a caller-supplied process ID and killed it without checking the caller's privileges.
Seen in 1 report
-
The helpers did not reject scientific-notation strings before passing them to a big-decimal parser that expands the exponent.
Seen in 1 report
-
The heredoc end check compared strings of length zero, so an empty identifier wrongly signalled a heredoc end.
Seen in 1 report
-
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
-
The host places its socket files in a world-writable shared directory with predictable names.
Seen in 1 report
-
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
-
The housekeeping goroutine has no deferred recover, so a panic in cleaning logic kills it permanently.
Seen in 1 report
-
The HTML comment scanner is called repeatedly for each less-than character and scans to the end of the line.
-
The HTTP client automatically decompresses compressed responses without validating the Content-Encoding header.
-
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
-
The HTTP client is created without timeout settings, so requests can hang indefinitely.
Seen in 1 report
-
The HTTP client timeout only started after headers were fully received, so a server that never finished headers bypassed it.
Seen in 1 report
-
The HTTP client used for webhooks had no overall timeout and no limit on response size.
Seen in 1 report
-
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
-
The HTTP request parser allocated a buffer based on the client-supplied Content-Length without enforcing an upper bound.
Seen in 1 report
-
The iconv stream filter with the ignore flag fails to handle certain input and loops endlessly.
Seen in 1 report
-
The IIOP protocol handler deserialises untrusted data without adequate validation or restriction.
-
The IKEEXT service dereferences a pointer without a null check while processing a Vendor ID payload.
-
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
-
The image processing tools decompressed the zTXt data without limits.
Seen in 1 report
-
The image upload servlet fails to validate or bound the input it receives.
-
The implementation behind the proxy has no receive or payable fallback, so the router's refund call reverts.
Seen in 1 report
-
The implementation contract was left uninitialized, allowing an attacker to become its owner and upgrade it.
Seen in 1 report
-
The import endpoint has neither a response size limit nor a rate limit.
Seen in 1 report
-
The import process does not filter out non-regular files such as FIFOs from extracted archives.
Seen in 1 report
-
The importer's client library expanded each API response into many nested objects, causing disproportionate memory allocation.
-
The incoming connection counter is incremented before a ban check that can return early without decrementing it.
Seen in 1 report
-
The indefinite-length element parser recurses on nested elements without a depth limit.
Seen in 1 report
-
The index lookup reverts above the maximum price and settlement calls it without handling that case.
Seen in 1 report
-
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
-
The inherited mempool allows duplicates when gas price rises, and the transaction flow sends each accepted copy straight to block ingress.
-
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
-
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.
-
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
-
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.
-
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
-
The inline code exclusion regex has cubic time complexity on a long run of newlines followed by a character.
Seen in 1 report
-
The inner operation handler does not check that remaining gas covers the specified call and verification gas limits.
-
The input validation regex allows the hyphen character, so command-line flags can be injected into the install command.
Seen in 1 report
-
The insert-time affordability check uses only the base fee while proposal-time validation uses the full gas bid.
-
The installation endpoint accepts unauthenticated requests and overrides the shared secret based only on the cloud ID.