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.
-
Duplicate header values are merged with string concatenation in a loop, giving quadratic work for linear input.
-
Each aliased GraphQL mutation ran as an independent operation with no alias cap, query cost analysis or operation-level rate limiting.
-
Each inbound substream is handled fire-and-forget with a task spawn and info-level log, with no per-peer concurrency cap, rate limit or stream limit.
-
Each parent-directory prefix is removed by shifting the whole string, a CPU-heavy operation.
Seen in 1 report
-
Each transaction in a batch is validated individually before any batch-level size or rate check.
Seen in 1 report
-
Each vault stored its own slash store at deployment while the core allowlist could be changed independently, and the slash call required the two to match.
Seen in 1 report
-
Email ownership was not verified before enabling test sends, and the feature had no rate limit.
Seen in 1 report
-
Emoji formatting in comments is not bounded.
Seen in 1 report
-
Entries are never removed from the owned-token array when a user no longer holds the token, and anyone can add entries by transferring, so iteration cost grows without bound.
Seen in 1 report
-
Epoch ending unnecessarily calls a price function that can revert.
Seen in 1 report
-
Erase handlers dereference a terminal special-character table entry that is never initialised.
-
Error and reallocation paths freed the pointer array but not the individual header strings.
Seen in 1 report
-
Error handling for truncated control messages did not close file descriptors already received before the truncation.
Seen in 1 report
-
Error handling only catches errors with non-empty data, but a deprecated oracle reverts with empty data.
Seen in 1 report
-
Error handling returns a success-like tuple containing an error result, which the coordinator treats as final.
-
Error handling uses continue instead of break, so a persistent error causes an infinite retry loop on the same page.
Seen in 1 report
-
The error path after a failed lock call enters an infinite loop instead of returning an error.
Seen in 1 report
-
Error paths in message parsing returned without freeing previously allocated buffers.
Seen in 1 report
-
Ether is pushed to the royalty recipient without checking that it can accept ether.
Seen in 1 report
-
The event name is passed unsanitised to the event emitter, which calls string conversion on it.
-
Event Tracing for Windows followed a directory junction when writing its output file.
Seen in 1 report
-
Every buy order's notional is added to the open interest counter without excluding reduce-only orders or capping price.
Seen in 1 report
-
Every input string, including failed parses, was cached in a static dictionary with no size limit or eviction.
-
Every path challenge must be answered with no limit on queued responses.
Seen in 1 report
-
Expiry is only validated at the RPC entry point and not re-checked in the sequencer or ingress stages.
Seen in 1 report
-
External call failures are not handled gracefully, so one failure reverts the entire transaction.
Seen in 1 report
-
An external token transfer is performed before cancellation completes, so a blacklist reverts the whole call.
Seen in 1 report
-
Extremely large width and height parameters are accepted without bounds.
Seen in 1 report
-
A failed socket write returning would-block is treated as success, so the packet is retained.
Seen in 1 report
-
Failed token transfers to blacklisted addresses are not handled, so a revert blocks the whole auction or liquidation.
-
Fallible decoding results are unwrapped, turning a parse error into a process panic.
Seen in 1 report
-
Fee growth and seconds-per-liquidity subtractions use checked arithmetic even though a negative intermediate value is legitimate.
-
Fees are pushed directly to all recipients so one revert blocks the transaction.
Seen in 1 report
-
Fees are transferred directly to the creditor without handling a failed transfer due to a blacklist.
Seen in 1 report
-
The file segment structure is not freed when an empty file is processed.
Seen in 1 report
-
A filename-derived wildcard is interpolated into a regex replacement string so backslashes are parsed as escape syntax.
Seen in 1 report
-
Firmware validation checks only the header and filename, so an empty image passes.
-
The first deposit is small enough that the share preview rounds to zero and the deposit rejects.
-
FORCERENEW packets are not authenticated and the transaction ID is fixed.
Seen in 1 report
-
Frozen regime length is not coupled to the staleness bound, and mark refresh resolves through the same gate.
-
Full proof verification runs per candidate at block production with no bound on failed verifications and no weight charged.
-
Fullscreen state is not reset when a page is restored from the back/forward cache while a cross-origin iframe holds the fullscreen request.
-
Function selectors were hardcoded from an outdated signature that lacks an extra parameter and uses a different struct.
-
Garbage collection and block execution both decrement the same counter and are not mutually exclusive.
Seen in 1 report
-
Garbage collection runs after the submission check, so expired entries are not cleared before deciding the mempool is full.
Seen in 1 report
-
Gas estimation for keepers did not account for the triple cost of a callback revert message: the callback, fetching the reason and emitting it.
Seen in 1 report
-
The group creation function lacks access control and a liquidity deposit requirement.
-
Hang-up is handled through the same queue a peer can saturate, with no priority path or bounded queue.
-
Header range requests are not rate-limited or bounded, so one peer can exhaust CPU.
Seen in 1 report
-
Header size limits and timeouts are not enforced for continuation frames.
Seen in 1 report