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.
-
An unbounded linked list is traversed in a single transaction, so its length can exceed the gas limit.
Seen in 1 report
-
An unbounded loop over a user-growable array can exceed the block gas limit and make the function always revert.
Seen in 1 report
-
Medium
-
-
An unbounded loop over extra rewards combined with anyone being able to add dust forced costly transfers.
-
An unbounded loop over unclaimed rounds with a nested loop over winners.
-
An uncaught exception in the device info handler when the registered client name is long.
Seen in 1 report
-
An unchecked stack allocation used a size derived from untrusted values in the Vorbis setup header without a bounds check.
Seen in 1 report
-
An unconditional claim rewards call iterates over an unbounded extra rewards list.
Seen in 1 report
-
An unconstrained string copy of a log file path into a fixed-size stack buffer without length validation.
Seen in 1 report
-
An uninitialised memory chunk in the http.sys driver that is not zeroed, leading to a crash when a malformed request is processed.
-
An unlimited number of collateral assets is accepted and later processed in a single loop.
-
An unsigned size is narrowed to a signed 32-bit integer without a bounds check before calling the media API.
Seen in 1 report
-
Any caller can add lock entries to another user's array, and two functions iterate over the whole array.
-
Anyone can notify rewards with any amount and each call recalculates the rate by dividing remaining rewards by a fixed duration.
Seen in 1 report
-
API paths were not covered by the access policy and the backend had no effective rate limiting.
Seen in 1 report
-
Apostrophes in the search input are not handled, causing a hang.
-
Applying the transfer restriction to mint and burn, whose zero address can never be whitelisted.
Seen in 1 report
-
Approving an aggregator for the full amount without resetting the allowance, so any residual blocks later approvals.
Seen in 1 report
-
Arrays are indexed directly with signer-supplied values whose integrity is not checked.
Seen in 1 report
-
Assuming the asset is always an ERC20 and calling balanceOf on a native token address.
-
Attachment processing read each decompressed archive entry fully into memory without any size limit.
-
Attacker-controlled JavaScript tracing exposed on a public endpoint with no timeout, memory cap or process isolation.
-
Audio parsing code did not validate sizes or offsets before accessing memory.
-
Batch construction did not allow splitting a batch across blobs, so one large transaction could fill a blob and seal a block.
Seen in 1 report
-
Batch validation does not decode ordinary envelopes, and an invalid-payload build error is classified as temporary so the task is retried in place.
Seen in 1 report
-
Batch-cutting copies a full batch and keeps appending without re-checking the maximum size.
-
Batching enabled with no query cost analysis before execution.
Seen in 1 report
-
Bid quantity must be less than or equal to available quantity, so any prior purchase makes a full-balance bid revert.
Seen in 1 report
-
Blob data was decompressed with no limit on the decompressed size.
-
Blocking connect loop for the data connection calls the time-left helper without the connect-timeout flag.
-
Borrowed amount subtracted from the cap without checking it exceeds the cap, causing underflow.
-
Brotli responses were decoded unconditionally with no cap on decompressed size.
Seen in 1 report
-
Brute-force protection delays each reset request, tying up PHP workers.
Seen in 1 report
-
Buffer append expands without a maximum size.
-
Buffer-doubling logic multiplied a size past the allocator's 32-bit limit, so the allocation failed and the process aborted.
-
Buffer-room check placed only in the flush routine while the receive path appends a pending pong unconditionally.
-
Burned reserve tokens not tracked, so the mintable count can underflow.
-
Cache coverage check compared stored feed times against the newest component timestamp instead of the oldest.
-
Cache stores a single basket publish time rather than per-feed tick times, so reuse demands every feed be at the newest time.
-
Callbacks are invoked outside a try/catch, so a synchronous throw skips the TLS error handlers.
Seen in 1 report
-
Calling a string duplication routine on optional protocol buffer fields without a null check when the sender omits them.
-
Calling print() from within the beforeprint handler triggered a second print operation while the first was still in progress, causing an unexpected new window.
Seen in 1 report
-
Cancel function does not verify that old and new proposal IDs differ.
Seen in 1 report
-
Cancellation iterates an unbounded pending order array.
Seen in 1 report
-
Cancellation loops over an unbounded owner-supplied list without capping its length.
Seen in 1 report
-
Cancelled requests under IIS in-process hosting caused threads to accumulate without being released.
Seen in 1 report
-
Canonicalization routine does not limit memory used on crafted input.
Seen in 1 report
-
Certificate unpacking returns nil for an empty byte slice and the caller does not check for nil.
Seen in 1 report
-
Chain verification has no loop detection.
Seen in 1 report
-
Challenge entries are only removed when a matching pong arrives and are never purged otherwise.
Seen in 1 report
-
$4,000 High
-
-
Characters outside the Unicode domain are not validated or sanitised before rendering.
Seen in 1 report