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 application created a cache file per unique session cookie value without limiting the number of files or cleaning them up.
Seen in 1 report
-
The application decodes the hexadecimal escape sequence in branch names without proper validation, leading to an error that breaks the branch listing page.
-
The application did not enforce a maximum length on the filter field before storing it.
Seen in 1 report
-
The application did not enforce a maximum length on the token field.
Seen in 1 report
-
The application did not limit the length of the git user name when rendering commit information.
Seen in 1 report
-
The application did not limit the length or size of the base bounty input.
-
The application did not validate the Content-Length header, allowing excessive memory allocation.
Seen in 1 report
-
The application does not check the uncompressed size of uploaded archives and preserves modification times, preventing cleanup.
Seen in 1 report
-
The application failed to validate that the tag name was a non-null string before saving it, and the front-end did not handle a null tag name.
Seen in 1 report
-
The application set GET parameter values as cookies without a size limit or input validation.
Seen in 1 report
-
The application trusts the size of the parameter and runs a regular expression scan on it without a length limit.
Seen in 1 report
-
The application used the parameter value directly in a Set-Cookie header without sanitising CRLF characters or cookie attributes.
Seen in 1 report
-
The applyRewards function fails when the amount of ETH received is below the minimum stake amount required by SafEth.
Seen in 1 report
-
The approval is not reset to zero after repayment.
-
The approve function does not check whether the spender is the execution layer contract.
-
The archive analyser ran a slow password-stretching loop on the same thread as its watchdog, so the timer could not fire.
Seen in 1 report
-
The archive header parser trusts a fixed-length size field without checking for negative values, and an error path leaks an object.
-
The argument pointer loop only checks for a null pointer, not the null terminator byte at the end of the network buffer.
Seen in 1 report
-
The arguments to the reallocation call are swapped, so the current and target idle balances are passed in the wrong order.
Seen in 1 report
-
The array storage-size calculation does not validate that the element count times element size fits within the allowed range before asserting.
Seen in 1 report
-
The array was declared with length two but the code assigned three entries, so the third write was out of bounds.
Seen in 1 report
-
The artifact reader trusts the uncompressed size metadata in the zip file without verifying the actual size.
Seen in 1 report
-
The AsciiDoc math rendering feature processes a crafted expression inefficiently, causing excessive CPU usage in the browser.
Seen in 1 report
-
The assert assumed the contract's LP token balance was zero after redemption, but an attacker could donate LP tokens to break this assumption.
Seen in 1 report
-
The asset lookup reads from the manager's own storage instead of the diamond's, so the asset owner is always the zero address.
Seen in 1 report
-
The asset manager called each adapter without a try-catch, so a revert in any single adapter reverted the entire transaction.
-
The association list is an unbounded vector scanned linearly on every recovery operation.
Seen in 1 report
-
The attach path called the poke function, which updated the last voted timestamp and triggered the vote delay check.
Seen in 1 report
-
The attacker-controlled expiry field is not range-checked before the expiry time calculation.
Seen in 1 report
-
The attestation deadline adds a fixed offset to a slot-derived time without overflow checks and the slot is not validated first.
Seen in 1 report
-
Medium
-
-
The audit log page did not handle a release with an attached milestone, so rendering that entry threw an error and took the whole page down.
Seen in 1 report
-
The authorisation check only confirmed the caller supplied its own package name rather than verifying it was permitted to use the developer-only feature.
Seen in 1 report
-
The authorisation check was placed after state mutations inside the dispatch function, and the outer error handler incremented the nonce a second time on failure.
Seen in 1 report
-
The auto-PONG send buffer had only a soft limit and the flush result was ignored, so queued replies accumulated without a hard cap.
Seen in 1 report
-
The available liquidation balance was derived from a balance capped by the mint limit, so reaching the limit zeroed it.
Seen in 1 report
-
The AVP length is not checked against the minimum header size before subtracting, so the unsigned calculation underflows.
Seen in 1 report
-
The AWS API Gateway parsed the X-Forwarded-For header key differently when a space was inserted before the colon, so rate limiting did not apply.
Seen in 1 report
-
The backend does not validate that the folder name is a non-null string before saving.
Seen in 1 report
-
The backend fetched external images from webhook messages without rate limiting.
Seen in 1 report
-
The backend or reverse proxy used the Host header for routing or TLS validation and mishandled multiple Host headers.
Seen in 1 report
-
The backend validated the rating value when present but never checked that the parameter existed, so a review with no rating was stored and broke page rendering.
Seen in 1 report
-
The backlog counter was decremented when a block entered the in-memory accumulator rather than when it was flushed to a channel.
Seen in 1 report
-
The backup liquidation path depends on a protocol that is not deployed on the target chain, so it always reverts there.
Seen in 1 report
-
The balance check uses the sum of two variables but the deduction is applied only to one, so the subtraction can underflow.
Seen in 1 report
-
The balance decrease burned shares for the full asset amount without capping the burn at the staker's actual share balance.
-
The batch function called untrusted recipients without isolating failures, so one revert aborted the batch.
Seen in 1 report
-
The batch function does not handle tokens already reset in the current epoch.
Seen in 1 report
-
The batch handler forwarded every response into a fixed-size channel without checking the response count matched the request count.
Seen in 1 report
-
The batch payout loop did not isolate failures per payee, so one reverting transfer aborted the whole call.
-
The batch write publishes transactions without verifying the data is a valid signed transaction when no prevalidator is configured.
Seen in 1 report