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.
-
A user-controlled count was multiplied by an entry size and added to a header without an integer overflow check, so the allocated buffer was far smaller than the loop that walked it.
Seen in 1 report
-
A user-controlled parameter selects arbitrary Ruby methods to invoke.
Seen in 1 report
-
A user-supplied id is trusted to set the next id counter without range validation.
Seen in 1 report
-
A user-supplied path is used in file operations without validation.
Seen in 1 report
-
A user-supplied value is used as a memory offset without validating the resulting address.
Seen in 1 report
-
A UTF-16 path buffer pointer was overwritten when the file descriptor was set, losing the only reference.
-
A value based on total assets is subtracted from the yield intercept without checking it is not larger.
-
A value from a malformed changeset is passed to the value-type function without a null check.
-
A verifier check fails when it finds an object that was not checked.
Seen in 1 report
-
A very large scaling factor overflows when total staked is tiny.
Seen in 1 report
-
A very wide gap between lookup table price bounds combined with a large step size makes the Newton correction overshoot and underflow the reserve.
-
A zero check was applied to total supply while the division used a derived supply that can be zero independently.
Seen in 1 report
-
Abbreviated commit hashes can collide, making the tarball download ambiguous.
Seen in 1 report
-
$5,000
-
-
Accepted basket not updated when the engine mark time advances, so the price check reverts.
-
Accumulator additions are not wrapped in an unchecked block, so overflow reverts instead of wrapping.
Seen in 1 report
-
Activation synchronously notifies observers that may destroy the window before the following call uses it.
Seen in 1 report
-
Add-on code fails to validate JavaScript inputs and error conditions.
Seen in 1 report
-
Address vector expansion not accounted for when recompressing, so the buffer headroom is exceeded.
Seen in 1 report
-
Aggregating balances from all subvaults without checking that each supports the asset.
Seen in 1 report
-
All events in a block were handled synchronously before replying, with no bound on event count or response time.
-
All pending deposits are bundled into a single transaction instead of being split into smaller ones.
Seen in 1 report
-
All received NFTs were stored in one shared array and found by linear scan, with no cap on array growth and no way to remove an entry without a successful transfer.
Seen in 1 report
-
An account pointer was dereferenced without checking whether the account existed in the state database.
-
An address-printing function calls assert instead of returning an error for an unsupported address family.
Seen in 1 report
-
An allocation flag was not reset when a later Content-Type header was short, so a stack buffer pointer was freed as heap memory.
Seen in 1 report
-
An arithmetic operation in the reward calculation overflows even though the input is within the allowed range.
-
An arithmetic underflow when subtracting the weight change from the current slope.
-
An assertion aborts the process when the public key is missing instead of returning an error.
Seen in 1 report
-
An assertion that allowances are zero after adding liquidity conflicts with a partial-fill minimum.
-
An attacker-controlled integer was used as an array index without checking it was within bounds.
Seen in 1 report
-
An early error return skips freeing the allocated response buffer when the size check fails.
Seen in 1 report
-
An early return sits outside the capacity check, off-by-one comparisons are used, and the pending connection counter is decremented without a check.
Seen in 1 report
-
An exception was thrown from a background thread in C++ cryptographic code instead of being handled safely.
Seen in 1 report
-
An exposed phpinfo page leaked the origin IP and the origin accepted direct connections instead of only traffic from the WAF.
Seen in 1 report
-
An external function is declared with the wrong return type, so the call reverts.
Seen in 1 report
-
An external self-call inside validation changed the observed caller to the wallet itself, so caller-bound signatures never matched.
Seen in 1 report
-
An incorrect function selector is used when encoding the external call.
-
An index check uses less-than-or-equal instead of less-than, allowing an index equal to the length.
Seen in 1 report
-
Critical
-
-
An integer overflow in a buffer allocation routine during request handling led to an infinite loop.
Seen in 1 report
-
An integer overflow in packet parsing when handling attacker-controlled data.
-
An integer overflow in the quota charge calculation resets the used-bytes counter to zero.
Seen in 1 report
-
An integer underflow in the NTLM challenge response length handling leads to a heap overflow.
-
An interest helper wrapped in try/catch whose catch block needs a minimum gas amount makes a view function revert.
Seen in 1 report
-
An N+1 query pattern fetches offers in one query then runs separate queries per offer for the user and currencies.
Seen in 1 report
-
An on-chain expiry is converted to a date without a range check, and the resulting invalid date is truthy so the null guard misses it.
-
An order passed as a memory parameter means pointer assignments update only the temporary copy.
Seen in 1 report
-
An out-of-bounds read when processing a referral response with a non-zero referral value.
Seen in 1 report
-
An outdated package depended on a vulnerable version of a websocket library with a regex flaw.
Seen in 1 report
-
An outdated safe approval helper reverts when changing a non-zero allowance to another non-zero value.
Seen in 1 report
-
An unauthenticated peer's advertised height is trusted for sync-state decisions before any header or work validation.