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 end blocker processes all removal requests for a block in one unbounded loop and there is no minimum stake to limit request count.
-
The end function sends ERC1155 tokens to the proposer without handling the case where the proposer cannot receive them, causing a revert that blocks future buyouts.
Seen in 1 report
-
The endpoint accepts an unbounded integer for the user ID and passes it into expensive casting or database operations without a range check.
-
The endpoint does not limit the requested time period or the number of data points returned.
Seen in 1 report
-
The endpoint does not enforce a maximum value for the record count parameter.
Seen in 1 report
-
The endpoint does not limit or validate the size of the requested date range.
-
The endpoint has no server-side rate limiting or throttling.
-
The endpoint handler is registered without the service-point spending check used by other resource-intensive endpoints.
Seen in 1 report
-
The endpoint serialises attacker-controlled input before verifying it, so a small request can describe a large structure.
Seen in 1 report
-
The endpoint splits the user-controlled scopes parameter and converts every element to a symbol without an allowlist or element limit.
-
The endpoint that triggers confirmation emails has no rate limiting or bot protection.
Seen in 1 report
-
The endpoint validates the email format but does not enforce a maximum length.
Seen in 1 report
-
The entire response body is read into memory with no size limit.
Seen in 1 report
-
The entropy provider address is set once in the constructor with no setter, so a failing provider permanently blocks restarts.
-
The error classifier handles only one contract error and lacks a case for the expired-origin error, so the stale proof is treated as retryable.
-
The error handler in the parsing loop neither sets an error flag nor advances the input position, so it loops on the same byte forever.
Seen in 1 report
-
The error handler parses the response body with JSON.parse without checking that the body is non-empty, and the resulting exception is raised inside an event emitter with no error listener.
Seen in 1 report
-
The error path converts the entire attacker-controlled input into a hex string without bounding the cost by gas.
Seen in 1 report
-
The error path for an invalid kernel address returns without freeing the previously allocated temporary buffer.
Seen in 1 report
-
The error path in the PUT handler returns without closing the file, leaving the single shared file handle open.
Seen in 1 report
-
The error path that sends a goaway on an invalid connection-level window update does not destroy or dereference the session object.
Seen in 1 report
-
The error struct appends every failed policy error with no upper bound before joining them into one string.
Seen in 1 report
-
The event-reporting function assumes a peer pointer is always valid, but a failed crypto-NAK validity check calls it with a null peer.
Seen in 1 report
-
The EVM call and create functions do not add the intrinsic gas cost, including the access list cost, before execution.
-
The exchange rate update divides by totalSupply without checking for zero, so a direct token transfer that makes the balance positive while totalSupply is zero causes a division by zero.
Seen in 1 report
-
The execution loop treats a persistently failing block as fatal and has no skip, quarantine or record mechanism.
Seen in 1 report
-
The existence check relies only on token balances at the computed pair address and never verifies deployed code or reads reserves.
Seen in 1 report
-
The exposed COM class does not verify the caller's identity or privileges before performing file deletion.
Seen in 1 report
-
The expression wrapping blockquote text in quotation marks backtracks excessively on certain inputs in older Ruby versions.
Seen in 1 report
-
The extraction tool cannot delete files inside a non-writable directory, so temporary files are never cleaned up.
Seen in 1 report
-
The failure arm requeues the submission and continues without an await point, and the requeue rewinds the cursor so the same failing submission is re-emitted forever.
Seen in 1 report
-
The failure of the garbage collection marker initialisation is not handled, leaving an invalid pointer.
-
The FastCGI configuration caps concurrent php-cgi processes at two with a long idle timeout, so slow requests exhaust the pool.
-
The fee could round to zero and the code still attempts a token transfer.
Seen in 1 report
-
The fee growth inside a range can exceed the global fee growth, so subtracting one from the other underflows.
Seen in 1 report
-
The fee is not capped, so a fee greater than the withdrawal amount causes an arithmetic underflow when subtracted.
Seen in 1 report
-
The fee percentage is elapsed time times licence fee divided by a year with no upper bound, so it can exceed the base constant and underflow.
Seen in 1 report
-
The fee transfer to an untrusted, unchangeable recipient happens in the same step as the main payout.
Seen in 1 report
-
The fee transfer to the owner runs before the user transfer, so any fee failure reverts the whole withdrawal.
Seen in 1 report
-
The fee validation uses a different rounding direction (down) than the fee calculation (up), so a fee that is valid under the controller's rounding is rejected by the validator.
Seen in 1 report
-
The fetch implementation does not cap the number of content-encoding layers before decompressing.
-
The filename escape routine replaces each illegal character with two characters without checking the resulting length, overflowing a kernel buffer.
Seen in 1 report
-
The filter converts the exponent to an integer and tries to create a string of that length.
-
The filter handler inserts each new filter into an in-memory map with no limit on entries or memory.
Seen in 1 report
-
The filter's traversal pushes sibling nodes onto the processing stack twice, giving exponential processing.
Seen in 1 report
-
The flash loan function does not account for double entry-point tokens, so repayment is misread as excess balance.
Seen in 1 report
-
The flood-limiter state is updated only after signature verification, so messages failing verification never count against the limit.
Seen in 1 report
-
The flow limit is global per token and epoch, so one large transfer consumes the whole allowance.
Seen in 1 report
-
The form has no anti-automation control and auto-sends a confirmation email to any supplied address.
Seen in 1 report
-
The formatting function does not cap the width value before allocating the output buffer.