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.
-
Removing an operator overwrote its slot with the last element but never cleared the old last slot, leaving a stale zero-cap entry.
-
Repayment pushes tokens directly to the lender instead of using a pull pattern, so a blacklisted lender blocks it.
Seen in 1 report
-
Repayment reverts when the requested shares exceed current debt shares instead of ignoring the excess.
-
The repeat operator can allocate a very large string without a limit.
Seen in 1 report
-
Repeated calls to Windows text-drawing functions triggered by attacker-controlled title changes consume excessive resources.
-
Request complexity limits do not scale with the number of repeated selections in one operation.
Seen in 1 report
-
The reset endpoint neither rate limits requests nor checks the email matches the logged-in user.
Seen in 1 report
-
Resetting a request set the location pointer to null without freeing it, and cleanup did not free it either.
Seen in 1 report
-
Resident data size is read through a null-initialised variable instead of the checked one.
Seen in 1 report
-
Resources tied to WebGL context attributes are not released on page reload.
Seen in 1 report
-
Response-body rules match plain strings without special characters, so ordinary stored input triggers them.
Seen in 1 report
-
Retained header blocks are not counted against the session memory limit.
Seen in 1 report
-
Return data is decoded without checking its length, so an empty return reverts the transaction.
Seen in 1 report
-
Return requests can be placed and cancelled with no fee or time restriction, so reserved liquidity can be locked and released at no cost.
-
The reuse predicate checks only the commit-time window and never verifies storage covers the cached basket's newest component.
-
Reverts from logical checks in a receiver contract were not handled, and ordered delivery meant one stuck message blocked the rest.
Seen in 1 report
-
Reward accounting multiplies a huge reward amount by a tiny deposit without bounding the per-share value, so the result exceeds the integer limit.
Seen in 1 report
-
The reward loop does not handle a failing token transfer, so one revert blocks the whole claim.
Seen in 1 report
-
The reward loop uses a uint8 index while the reward token list has no upper bound.
Seen in 1 report
-
Reward-per-share values sit in a fixed-size array indexed by reward token position, so a later token exceeds the stored length.
Seen in 1 report
-
Rewards are aggregated into a single bank send, so one missing token balance fails the whole send.
-
Rewards are recomputed by iterating every epoch since first deposit inside loops over positions and farms, giving cubic complexity.
Seen in 1 report
-
Role changes are disallowed when an action was created in the same block, and action creation is unlimited.
Seen in 1 report
-
The RPC runtime caches a successful call to an unrestricted function, which is then reused to skip the SID check.
Seen in 1 report
-
RPC worker threads handling batched requests acquire shared resources in an order that lets them wait on each other in a cycle.
Seen in 1 report
-
safeIncreaseAllowance was used without resetting the allowance to zero first, leaving a residual allowance that blocked later approvals.
Seen in 1 report
-
Medium
-
-
safeTransferFrom without a gas limit lets a malicious receiver consume all gas.
Seen in 1 report
-
Scrapy enforced download size limits only on compressed response bodies, not on decompressed data.
Seen in 1 report
-
The server calls string methods on the event name without checking it is a string.
Seen in 1 report
-
The server does not validate the start_sha field in a draft note position.
-
Server-side length limits were not enforced on organisation name and description, so malformed JSON was stored and later crashed the app.
Seen in 1 report
-
Servers did not limit the number or size of continuation frames and did not time out streams lacking the end headers flag.
-
Servers process each stream cancellation without sufficient rate limiting, enabling resource exhaustion.
-
Services lack authentication, resource limits and input handling.
Seen in 1 report
-
Session creation leaves the status unset when the command list is empty, and cleanup only removes sessions marked valid or invalid.
Seen in 1 report
-
Setting a share unlock time and then immediately calling a bridge whose transfer check rejects while the unlock time is in the future.
Seen in 1 report
-
Settlement performs an external token transfer that can revert for blacklisted addresses with no fallback to store funds.
Seen in 1 report
-
Settlement sends native ether without wrapping it, giving the recipient control over the transfer.
Seen in 1 report
-
Several external token transfers are bundled in one call with no handling of individual failures.
Seen in 1 report
-
Several parsing functions use algorithms whose running time grows quadratically with input size.
-
Share bytes are passed to a decryption routine without a length check, causing an out-of-bounds slice.
-
Shares are stored keyed only by account, backup and share index without binding them to the current recovery session.
Seen in 1 report
-
The shutdown timer is only armed after the admin handle is woken, so it never arms for silent servers.
-
Slashing unnecessarily calls a claim function that can revert.
Seen in 1 report
-
Slow Unicode normalisation is applied to very long invalid input before length validation.
Seen in 1 report
-
Solidity checked arithmetic is used where the original code expected unchecked underflow.
Seen in 1 report
-
Medium
-
-
Some ERC20 tokens revert on zero-value transfers, and the liquidation reward calculation can produce zero, causing the liquidation transfer to revert and blocking liquidations.
Seen in 1 report
-
Special characters and emojis in contact names were not handled when displaying the chat.
Seen in 1 report
-
SQL wildcard characters in user input are not escaped before a LIKE query.
Seen in 1 report
-
Stack memory was allocated and field records written using the client field count before validating it against the index limit.
Seen in 1 report