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 server does not check whether a pointer is null before using it when processing OPC UA messages.
-
The server does not check whether the client connection is still open before repeatedly flushing data to it.
Seen in 1 report
-
The server does not limit requested image dimensions.
Seen in 1 report
-
The server does not limit the length of the first name field before processing it.
Seen in 1 report
-
The server does not limit the length of the shoutout parameter before storing it, and later queries that load videos with that field fail.
-
The server does not properly limit the resources (such as memory or CPU) that a single request or connection can consume, allowing an attacker to exhaust them.
-
The server does not validate or limit input length, so processing an overly long string fails.
Seen in 1 report
-
The server does not validate that the time spent value is a positive, reasonable duration.
-
The server does not validate the Content-Length value before using it to read data, causing an out-of-bounds read.
-
The server fetches the full resource for the entire timeout without limiting downloaded size or concurrent fetches.
Seen in 1 report
-
The server hashes the password without first limiting its length, so very long inputs consume excessive CPU time.
-
The server lacked a maximum length or size check on the password input.
Seen in 1 report
-
The server mishandled a language parameter sent as an array, leaving an unhandled error that permanently blocked the account.
Seen in 1 report
-
The server mishandled an array-style theme preview parameter and stored bad state in the user's session.
Seen in 1 report
-
The server mishandles a newline in the URL and does not limit URL length, leading to repeated redirects and resource exhaustion.
-
The server nested the entire previous state cookie inside a new previous field on each login request instead of replacing it.
Seen in 1 report
-
The server passed a client-supplied page size straight into the result-set query without validating it against a maximum.
Seen in 1 report
-
The server processes search input inefficiently or recursively, consuming excessive resources on deeply nested input.
Seen in 1 report
-
The server rebroadcast client-controlled data without schema validation and the client rendered an unexpected object as text.
-
The server relied on client-side length enforcement for connection request messages.
-
The server sets the client socket to blocking mode and reads without handling an already-closed connection, so the descriptor is never released.
Seen in 1 report
-
The server stored an array message as null while the front end assumed a string and called length on it.
Seen in 1 report
-
The server stored an unbounded category parameter without a length check and the client could not render the oversized data.
Seen in 1 report
-
The server trusted client-side validation and did not handle the resulting exception safely.
-
The server trusted the role value sent by the browser without checking it matched a known role.
-
The server-side email regex used nested or overlapping quantifiers, causing catastrophic backtracking.
-
The server-supplied field length was used as the size argument to a stack allocation without validation.
-
The service did not limit how many accounts could monitor the same target, amplifying requests.
-
The service does not handle exceptions properly when performing an integer division, so a divide-by-zero error causes a denial-of-service condition.
Seen in 1 report
-
The service fails to check whether a pointer is null before dereferencing it while processing a specific request.
-
The service lacks proper validation of user-supplied data, leading to an integer underflow before reading from memory.
Seen in 1 report
-
The service module does not require authentication before allowing access to its functionality, enabling unauthenticated remote users to trigger a denial-of-service condition.
-
The service stored sensitive data in memory without proper locking, allowing a race condition.
-
The service trusted the pixel dimensions declared in the file and allocated memory without a maximum size.
Seen in 1 report
-
The service uses a pointer without checking it is null.
-
The serving map entry is refreshed on every successful request and never expires while requests continue, so a few validators can hold the size limit permanently.
Seen in 1 report
-
The session check concatenates the User-Agent pointer into a string without checking the header was supplied, dereferencing a null pointer.
Seen in 1 report
-
The setFeeTo function lacks a check that the new fee recipient is not the zero address, and the buy function does not guard against a zero feeTo before transferring fees.
Seen in 1 report
-
The setPlatform function updates the platform address but does not update the token allowance for the new platform.
Seen in 1 report
-
The setSpreads function allowed the wall spread to be exactly 10000, which led to a division by zero when the lower wall price became zero.
-
The setter allows a collateralisation value that makes the liquidation denominator zero.
-
The settlement function allowed nonce increments with empty settlement data and without cooldown or minimum profit and loss.
Seen in 1 report
-
The settlement function loops over an unbounded number of creators and performs external calls and storage writes for each, allowing gas usage to grow with the number of creators.
Seen in 1 report
-
The settlement function uses safeTransferFrom, which calls back into the winner's contract; a malicious winner can revert in that callback, causing the whole settlement to fail.
Seen in 1 report
-
The settlement loop reverted on a not-yet-due market instead of skipping it.
Seen in 1 report
-
The setWithdrawSequence function required the new sequence to match the current withdrawSeq length instead of the moneyMarkets length, so the array could not be reduced after adapter removals.
Seen in 1 report
-
The sFlow decoder did not validate or limit the size of fields in incoming packets, allowing malformed input to trigger excessive memory allocation.
Seen in 1 report
-
The SFTP init handler forces the session into blocking mode and calls a blocking init, so the timeout check never runs.
-
The shader translator did not validate that a resource index was within the declared resource array before indexing it.
Seen in 1 report
-
The shader translator did not validate the output register index before using it to compute a memory address.
Seen in 1 report