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 protocol fee denominator variable was never initialised and no setter was provided, so enabling the fee led to division by zero.
Seen in 1 report
-
The protocol hard-codes a single staleness threshold for every price feed instead of using each feed's actual heartbeat.
Seen in 1 report
-
The protocol requires oracle price timestamps to be non-decreasing and rejects any price older than the last stored one.
Seen in 1 report
-
The protocol trusted and called supportsInterface() on a buyer-supplied contract without handling reverts, so a malicious implementation could halt core flows.
Seen in 1 report
-
The protocol trusts a contract account's own signature check answer during block submission.
Seen in 1 report
-
The proxy contract lacks a payable receive or fallback function to accept ETH refunds.
Seen in 1 report
-
The proxy did not handle data and javascript URL schemes and crashed on them.
Seen in 1 report
-
The proxy endpoint did not restrict queries to the configured custom metrics, allowing arbitrary expensive queries from any user.
-
The proxy fully buffers inbound client frames it discards, and the upgrade sets no message or frame size limits.
Seen in 1 report
-
The proxy lacked a response timeout and maximum response size and trusted chunked responses without a Content-Length header.
Seen in 1 report
-
The proxy libraries read entire HTTP response bodies into memory without size limits, so an attacker could cause an out-of-memory condition.
-
The proxy used a client-supplied forwarding header as the rate-limit key without verifying the immediate peer was a trusted load balancer.
Seen in 1 report
-
The proxying loader does not verify that a redirect was actually received before forwarding the call to interceptors.
Seen in 1 report
-
The pruning loop iterated over all proposals since the last executed one, and proposal creation had no limit.
Seen in 1 report
-
The publish path computed allocation size from an unvalidated payload length without checking the protocol maximum or guarding against size_t overflow.
Seen in 1 report
-
The punctuation trimming loop rescans and recounts the whole remaining string on each pass, giving quadratic time complexity.
-
The PURGE method is reachable from the internet without authentication or an IP allowlist.
Seen in 1 report
-
The PUT error path returns without closing the single shared file handle.
Seen in 1 report
-
The PutMessage handler passes a structure to the WPS message processor before device info has populated it.
-
The query parser does not limit the depth of nested parameters, exhausting the call stack.
Seen in 1 report
-
The queue is processed as a last-in-first-out stack, so the oldest entries are only reached after all newer ones are removed.
Seen in 1 report
-
The randomness callback performs unbounded work proportional to the number of wounded agents.
Seen in 1 report
-
The range width is passed to a square-root function with a fixed bound without checking the difference is in range.
Seen in 1 report
-
The rate calculation divides by total issued before checking whether it is zero.
Seen in 1 report
-
The rate limit was keyed only on the user account and ignored other request attributes such as the User-Agent header.
Seen in 1 report
-
The rate limiter and spam blacklist key on the sender address inside the raw transaction rather than on the actual requester.
Seen in 1 report
-
The rate limiter counts transactions per contract without distinguishing valid from invalid ones, so anyone can trigger the threshold.
Seen in 1 report
-
The rate limiter incremented its counter for any signed transaction without checking the chain ID.
Seen in 1 report
-
The rate limiter trusted a header supplied by the client to track attempts instead of server-side state.
-
The rate-limit key was the normalised email address alone with no requesting user identifier, so all callers shared one counter.
-
The raw request body is parsed without first checking its size.
-
The re-LP calculation used the pool's total reserves as the protocol's share instead of the protocol's own LP token balance, so the derived amount to remove could exceed what the protocol held.
Seen in 1 report
-
The read endpoint was open to anyone and the node capped concurrent client connections without per-source rate limiting or a request size limit, so one actor could occupy every slot.
Seen in 1 report
-
The read timeout was set as a TCP deadline, which has no effect on QUIC streams, and the HTTP/3 server had no timeout of its own.
Seen in 1 report
-
The read-only handler panicked on a submit request instead of returning an error.
Seen in 1 report
-
The rebase profit was calculated from the contract's raw token balance rather than tracked deposits, so unsolicited transfers inflated the profit and drove the credits-to-supply ratio to zero.
-
The recall mints tokens without handling an exhausted minting allowance.
Seen in 1 report
-
The receive function appends every chunk to an in-memory buffer with no maximum size.
Seen in 1 report
-
The receive function pointer is not reset after BDAT data containing a single dot, causing an infinite loop on the next BDAT.
Seen in 1 report
-
The receiver address was only hex-encoded without validating its length or format.
Seen in 1 report
-
The receiver contract did not implement the non-blocking approach or a way to force-resume the queue, so any reverting message from any sender could permanently block the channel.
Seen in 1 report
-
The receiver validates the claimed token count against a snapshot taken at send time.
Seen in 1 report
-
The receiver was exported by default and did not verify the sender or restrict the actions it would perform.
Seen in 1 report
-
The reclaim script parser does not enforce a maximum size before storing the script.
Seen in 1 report
-
The recursive descent function does not limit recursion depth or resource use on crafted templates.
Seen in 1 report
-
The recursive functions that traverse linked hat trees lack a maximum depth limit.
Seen in 1 report
-
The recursive MIME read helpers enforce no maximum nesting depth.
Seen in 1 report
-
The recursive parameter normalisation re-entered itself on deeply nested input, and the exception logging path called it again.
Seen in 1 report
-
The redeem rate divides before multiplying, causing precision loss and underflow when asset supply exceeds the scaled total value locked.
Seen in 1 report
-
The redeemed amount is compared against the requested amount without reducing it to the actual redeemed value on a loss.
Seen in 1 report