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.
-
Header values are duplicated into struct members without freeing the previous allocation for the same member.
Seen in 1 report
-
HTTP client libraries are used with default settings that do not limit response size, enforce timeouts or restrict redirects.
Seen in 1 report
-
The HTTP transport accepts any compression encoding, so attacker-controlled Brotli responses reach a vulnerable decoder.
Seen in 1 report
-
The icon name is not checked against an allowed list and the frontend does not handle unknown icons.
-
Image dimensions were taken from untrusted EXIF data without checking them against the real file size before allocating memory.
Seen in 1 report
-
Inactive prizes are never removed from the prizeIds array and there is no cap on its size, so loops over it become unbounded.
Seen in 1 report
-
Inadequate input validation on the recipient field allowed an invalid value that triggered an unhandled error loop.
-
Incoming share requests were not rate-limited, so each triggered a blocking popup.
Seen in 1 report
-
Incoming votes are added to the collected list without verifying their cryptographic signatures.
Seen in 1 report
-
Individual external call failures are not handled, so one revert blocks the entire rebalance.
Seen in 1 report
-
Input and source vector lengths were not validated before an unchecked array access during signing.
Seen in 1 report
-
Input was validated with a regex with poor worst-case performance and no length limit, and the value was echoed in error responses.
Seen in 1 report
-
Insufficient validation of RPC request sizes leads to excessive memory allocation.
Seen in 1 report
-
Integer division in the token-to-votes conversion truncates so minting and burning round differently.
-
Integer division rounds down and mismatches the collateral check when the division is not exact.
Seen in 1 report
-
Integer division truncates a fractional quotient below one to zero, which then feeds a logarithm of zero.
Seen in 1 report
-
Integer division truncates small refills to zero while the last-updated timestamp is still advanced, discarding the elapsed time.
Seen in 1 report
-
Integer division truncates to zero and the result is then used as a divisor without handling that case.
Seen in 1 report
-
Integer division truncates to zero when the elapsed time is very small and the user's share of supply is tiny.
Seen in 1 report
-
Medium
-
-
Integer division truncation in the coins per second calculation can yield zero and cause a division-by-zero error when computing the start time.
Seen in 1 report
-
An integer read from an HTTP header is used directly to allocate an array and control a loop.
Seen in 1 report
-
Integer rounding makes the divisor zero for small bid factors and low-precision prices.
-
Internal helpers that read and write proxy implementations had their logic commented out, so they returned zero and stored nothing.
Seen in 1 report
-
Invitations were sent to syntactically invalid addresses, so bounces could accumulate and suspend the outbound mail service.
-
The invite flow fails when an existing user's email matches the invited address.
Seen in 1 report
-
The IRQL raised flag is not managed correctly during IOCTL processing, causing a worker thread deadlock.
-
Iterating over an unbounded user-controlled array without batching or a gas limit.
-
Job execution requires gas price at or below the user's limit, so no alternative operator can step in.
-
Join validation de-duplicates only by public key and never checks for duplicate address and port pairs.
Seen in 1 report
-
Jump destination validation uses the creation code length instead of zero and then calls a zero address.
Seen in 1 report
-
Leftover collateral is unconditionally transferred to the borrower without handling a rejected transfer.
-
The limiter keys IPv6 clients by full /128 address instead of a shared prefix.
Seen in 1 report
-
Line information is not updated before justification, so an unsigned subtraction underflows and produces a huge length.
Seen in 1 report
-
$10,000 High
-
-
Line matching scans all open boundaries character by character with no efficient lookup.
Seen in 1 report
-
The line reader processes characters one by one with no limit on line length.
Seen in 1 report
-
A linear scan over all tiers is used instead of a bounded search.
Seen in 1 report
-
Liquidation pushes the NFT with a safe transfer that invokes the borrower's callback.
Seen in 1 report
-
Liquidation uses the same loop limit as other functions but can require up to twice the number of markets in orders.
Seen in 1 report
-
The log directory is writable by unprivileged users and log file names are predictable.
Seen in 1 report
-
The loop condition allows the index to reach a value that the deploy step then accesses out of bounds.
-
Loop detection compared raw path strings without normalising trailing slashes.
Seen in 1 report
-
A low-level call reverts on failure with no handling for recipients that cannot receive Ether.
-
Malformed percent-encoded sequences in URLs were not validated or handled, breaking the page for viewers.
-
Maximum amount parameters were not validated before increasing the router allowance.
Seen in 1 report
-
Measuring the transferred amount by balance difference is unreliable with ERC777 because the receiver hook can change the balance mid-transfer.
Seen in 1 report
-
Memory allocated for a connection is not released when the connection ends abruptly or through an invalid header rather than a normal shutdown.
Seen in 1 report
-
Memory allocated per new TCP connection is not freed when the connection ends.
Seen in 1 report
-
Memory handling in web content processing was flawed and needed improving.
-
Memory is allocated from an attacker-controlled count before checking that the count is reasonable.
-
Message bodies were stored and rendered without output encoding and accepted unbounded length.
Seen in 1 report