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 mempool ordering key prioritises gas price over sequence number without considering the account.
-
The merkleRoot is used as a salt for contract deployment, making it single-use, and there is no protection against front-running.
-
The Mermaid flowchart rendering with top-to-bottom direction processes the diagram inefficiently, causing excessive CPU usage in the browser.
Seen in 1 report
-
The message ID hash omits the gossip topic, so identical wire bytes on different topics collide in the global duplicate cache before the application validator runs.
-
The messenger forwards all remaining gas to the target, which can consume the gas needed to record a failed message.
Seen in 1 report
-
The metadata decoder set arbitrary instance variables from user-controlled keys without restricting which variables could be set.
Seen in 1 report
-
The method did not limit or validate the size or complexity of user-supplied path data.
-
The metrics label uses the raw unbounded request path, so every distinct path creates new time series that are never cleaned up.
-
The mid-price adds bid and ask without guarding against overflow.
Seen in 1 report
-
The midpoint calculation overflows the fixed-width type when the high price is near the maximum.
-
The migration function is publicly callable and relies on a one-time withdrawal amount, so a failed ticket leaves funds in escrow.
Seen in 1 report
-
The migration process does not account for direct calls to the legacy message passer that bypass the cross-domain messenger.
Seen in 1 report
-
The migration sets the inner gas limit to zero and the outer limit too low, so the messenger can run out of gas before recording the message for replay.
Seen in 1 report
-
The migrator contract has no payable receive or fallback function, so any ether transfer to it reverts.
-
The minGasReserve storage variable could be modified by any delegatecall target, and there was no separate setter function to restore it, so a malicious target could set it to a value that caused a permanent underflow.
Seen in 1 report
-
The minimum bid increment is a percentage of the current highest bid, so a very low starting bid makes later increments tiny.
Seen in 1 report
-
The minimum shares check runs after every deposit and withdrawal, and the share calculation can be manipulated by direct token transfers.
-
The minimum size check for ask orders validates the quote value instead of the base amount.
Seen in 1 report
-
The minimum used sequence number is computed as zero when the stored value is zero, so the too-new tolerance never advances.
-
The mint function applies the target lockup to every recipient including the fee recipient and resets it on each mint.
Seen in 1 report
-
The mint function trusts off-chain token data instead of the verified receiver and amount fields.
Seen in 1 report
-
The mint loop used the token ID modulo 100 to look up founder ownership, so when all 100 possible remainders were assigned to vesting founders, the loop never found a free token and ran indefinitely.
Seen in 1 report
-
The mirror URL was not validated or encoded before parsing, so an invalid URI raised an unhandled exception that broke the settings page.
Seen in 1 report
-
The Modbus and vendor API services lack authentication and expose a reboot function to any network client.
-
The model name parameter was used to build a file path without validation.
Seen in 1 report
-
The moved LP amount is subtracted from the stored amount without checking it is at least as large, and the position is not deleted after a full move.
Seen in 1 report
-
The multipart parser has no limit on the number of file parts and opens a temporary file for each part without closing them until the request ends.
Seen in 1 report
-
The mutation for creating image diff notes did not validate position data, so malformed input corrupted the design state.
Seen in 1 report
-
The name helper assumes a string return and does not handle the bytes32 case.
Seen in 1 report
-
The network boundary does not enforce a nested field's type before it reaches a database query, and the error is uncaught.
Seen in 1 report
-
The network daemon does not handle a failed bind gracefully and soft-locks.
Seen in 1 report
-
The new cap is checked against the live token balance, which an attacker can inflate just before the admin transaction.
Seen in 1 report
-
The new proposal functions never checked that the type string was known or that the proposed address and parameter were non-zero.
Seen in 1 report
-
The Nginx configuration included the health check endpoints in the HTTP server block without applying the IP whitelist, and the HTTP server did not redirect these specific paths to HTTPS.
Seen in 1 report
-
The node did not limit handshake message count or close early on invalid or excessive messages.
Seen in 1 report
-
The node does not verify that the source address of a pong message matches the address used in the corresponding ping.
Seen in 1 report
-
$2,000 Medium
-
-
The nonce is incremented only after all withdrawal checks pass, so an early failure leaves the nonce unchanged.
Seen in 1 report
-
The normaliser searched backwards for the last slash on every parent-directory sequence, giving quadratic time complexity.
Seen in 1 report
-
The note renderer did not cap or efficiently handle long runs of zero-width characters and looped while laying out text.
Seen in 1 report
-
The notification insert was unchunked and the number of favouriters per item was unbounded, so one oversized batch exceeded the database bind-parameter limit and failed atomically.
-
The notifyRewardAmount function lacks access control, allowing anyone to add arbitrary tokens to the reward list, and the deliverBribes loop does not handle token transfer failures gracefully.
Seen in 1 report
-
The NTLM credentials parser did not validate input length before copying, writing past the end of the credentials buffer.
Seen in 1 report
-
The number of chained compression algorithms accepted was unbounded.
Seen in 1 report
-
$2,400 Medium
-
-
The number of markets a borrower can enter is unlimited and liquidation loops over all of them.
Seen in 1 report
-
The object lookup used a sentinel of minus one for no index, indistinguishable from a negative index read from the file.
Seen in 1 report
-
The observer client does not verify that received events came from the connector contract.
-
The occlusion query offset counter was incremented without comparing against the device maximum and the render encoder was reused.
Seen in 1 report
-
The OCSPRequest and resumeSession event emits were not wrapped in try/catch, unlike the SNICallback path patched earlier.
-
The off-chain parser requires exactly one signer account while the on-chain program accepts and ignores extra accounts.
-
The offset-splitting integer division could floor to zero, and the validation shader ran with runtime checks disabled so out-of-bounds values were accepted as draw arguments.