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.
-
No minimum stake size and no cap on entries per user, so entries can be inflated cheaply.
Seen in 3 reports
-
Only the compressed file size is checked, not decoded dimensions or pixel count.
Seen in 3 reports
-
The per-item gas budget ignores keeper-side checkpoint and curve sync work when the caller holds a position.
Seen in 3 reports
-
Permissionless retry lacks an owner check and shares no guard with the attempt-terminalisation call.
Seen in 3 reports
-
Share quote is computed without an upper bound so an unrepresentable quotient panics instead of returning zero shares.
Seen in 3 reports
-
Shares needed are subtracted from shares held without first checking the order.
Seen in 3 reports
-
The component does not enforce authorisation checks on a method that should be restricted.
Seen in 3 reports
-
The contract transfers reward tokens unconditionally without checking the amount was greater than zero.
Seen in 3 reports
-
The HTTP/2 parser does not limit or properly handle certain crafted frame types, letting a client exhaust memory or CPU.
Seen in 3 reports
-
The JSON-RPC message handler accepted a file path from untrusted input and read it without safeguards against blocking or slow streams.
Seen in 3 reports
-
The LDAP service did not limit or release resources when handling certain network requests.
Seen in 3 reports
-
The network servlet did not enforce authentication before allowing access to its functions.
Seen in 3 reports
-
The seal check was moved out of the verifier into the import path, so a bad seal surfaces as a generic error with no peer identity and no penalty.
Seen in 3 reports
-
A constant salt of zero with fixed constructor calldata derives the same receiver address every time.
Seen in 2 reports
-
A fixed maximum number of token ids per delegatee with no minimum amount or cost.
Seen in 2 reports
-
A function allocates memory but does not always free it before returning.
-
A low-level call transfers tokens to an arbitrary address, executing the recipient's fallback and consuming gas paid by the caller.
Seen in 2 reports
-
A null pointer is dereferenced without a check in the service.
-
A read-write lock is used with unwrap calls and can be re-entered within one function, so a poisoned or recursively acquired lock panics.
Seen in 2 reports
-
Access control lists on system files were not correctly enforced, allowing hard links to overwrite them.
-
An early error return in the IOCTL handler skipped the free of a buffer allocated with the kernel allocator.
-
Assumed minimum creation code size and an uninitialised array returned from a pause function.
Seen in 2 reports
-
Bid fields not validated, so malformed bids are accepted and later skipped or divide by zero.
Seen in 2 reports
-
Block numbers are parsed into integers without checking they fall within the safe integer range before being used as loop bounds.
Seen in 2 reports
-
Critical delete functions were exposed on the network without any authentication requirement.
Seen in 2 reports
-
The deferral gate only treats exactly zero Junior principal as deferred, so a near-zero principal still prices deposits.
Seen in 2 reports
-
The document.cookie path skips the validation applied to Set-Cookie, storing control characters.
-
Frame size limits were set equal to the blob payload limit without reserving space for the derivation prefix byte, causing an off-by-one unencodable frame.
-
The header parsing loop has no cap on the number or size of headers accepted.
Seen in 2 reports
-
The home screen renders untruncated long URLs and line breaking blocks.
-
Length and offset fields are trusted without checking against buffer size, and memory is not released after negotiate.
-
Liquidation and forced repayment transfer tokens out without decrementing the deposited-shares counter.
-
Location update broadcasts are sent for a station before authentication completes.
Seen in 2 reports
-
Loops over markets run without handling reverts or pagination.
-
Markdown rendering caches and autolink parsing scale badly with many image references.
Seen in 2 reports
-
$7,640 High -
$4,000 Medium
-
-
No limit on image dimensions or total pixel count during processing.
Seen in 2 reports
-
No reasonable maximum length is enforced on reply content, and the whole payload is processed before rejection.
-
Null pointers from configuration and boundary lookups are dereferenced without checks.
-
Offsets from file metadata are used without bounds checks, and buffers are written without checking they are allocated.
-
Only one user can bond an auction and that bond cannot be burned for a fixed period, so an early bonder monopolises settlement.
Seen in 2 reports
-
Order creation does not validate that the recipient can receive the token.
Seen in 2 reports
-
Parsed values were multiplied or combined arithmetically without checking for integer overflow.
Seen in 2 reports
-
Password length is unbounded, so hashing a huge input exhausts CPU and memory.
Seen in 2 reports
-
The reuse check compares every feed against the basket's newest component time instead of each feed's own time.
-
safeApprove was used without first resetting a non-zero allowance to zero.
Seen in 2 reports
-
Shader binding and attachment indices are passed to the Vulkan driver without validation against device limits.
-
Size and offset fields are trusted without bounds checks, and a count field overflows before allocation.
-
Snappy decompression allocates a buffer from the attacker-controlled decoded-length header before validating the compressed body or message authenticity.
-
The state variable for last updated day defaults to zero, causing an enormous loop.
Seen in 2 reports
-
A strict requirement that repayment or replenishment equals the current debt or deficit, with no tolerance.
Seen in 2 reports