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 deployment script does not deploy and initialize the proxy in the same transaction, leaving initialize() callable by anyone.
Seen in 1 report
-
The deposit data field has no size limit while the L2 bridge processes deposits strictly in sequence.
-
The deposit function checks the contract balance against a maximum limit that an attacker could temporarily fill.
Seen in 1 report
-
The deposit function does not enforce a minimum deposit amount or fee.
Seen in 1 report
-
The deposit function does not verify that the bridge ID exists before incrementing its sequence.
Seen in 1 report
-
The deposit function does not limit how many NFTs can be added to a user's staked list, and the withdrawal function iterates over the entire list without a bound.
Seen in 1 report
-
Medium
-
-
The deposit function trusts any existing pair with zero balances without verifying that the pair was created by the protocol.
Seen in 1 report
-
The deposit function updates the last-deposit block for any caller and any vault without checking ownership or legitimacy.
Seen in 1 report
-
The deposit parameter setter accepts arbitrary values without validating fee reasonableness or slot consistency.
Seen in 1 report
-
The description column has no maximum length restriction.
Seen in 1 report
-
The description record is never size-capped and is escaped twice into one in-memory string with no exception handling around a fatal heap abort.
-
The deserialiser lets a crafted body reference actions and circular structures, causing the server to attempt execution and crash on a self-referencing payload.
Seen in 1 report
-
The deserialiser picks a decoder from an attacker-controlled type prefix without checking the decoded object matches the claimed type.
Seen in 1 report
-
Critical
-
-
The deserialiser reads a 32-bit length and allocates a buffer of that size without checking an upper bound.
Seen in 1 report
-
The deserialiser returns an error on the first malformed blob instead of skipping to the next one.
Seen in 1 report
-
The desktop service does not properly validate file paths or resolve symbolic links before deleting files.
Seen in 1 report
-
The destination chain is not validated against the token's original chain, so a deployment message can initialise the original chain's balance to zero.
-
The destroy function requires zero token supply but nothing prevents new tokens being minted after destruction was announced.
Seen in 1 report
-
The detach path re-casts all previous votes without skipping killed gauges, and the vote function reverts on a dead gauge.
-
The deterministic address depends only on the salt and fixed bytecode, not on constructor arguments, and there is no access control.
Seen in 1 report
-
The deviation is scaled to a fixed-point value representing 100 percent while the slippage parameter is a raw percentage integer, so the comparison mixes units.
Seen in 1 report
-
The device-detector regular expression has overlapping groups that cause excessive backtracking on long digit strings.
Seen in 1 report
-
The diagram integration lacks limits on the size or complexity of diagrams.
Seen in 1 report
-
The diff rendering process has no overall timeout and syntax highlighting tokenisation is not covered by the render timeout.
-
The directory walker recurses per subdirectory with no depth limit and only catches OS errors, so recursion errors escape.
Seen in 1 report
-
The disk handling code assumes every raw disk file is 512-byte aligned and never validates it.
Seen in 1 report
-
The dispute game logic does not handle a panicking VM state, so a panic at a chosen depth can block challenges to the root claim.
Seen in 1 report
-
The distribution module account is not in the bank module's blocklist of addresses that cannot receive arbitrary transfers.
Seen in 1 report
-
The driver completes an IRP that the WMI system control already completed because it misreads the disposition and error status on the failure path.
-
The driver does not handle the netdevice change event for ip6gre tunnels, so it never removes the old remote address or adds the new one.
Seen in 1 report
-
The driver does not validate the section raw size, causing an out-of-bounds read when computing a hash.
Seen in 1 report
-
The driver uses a user-controlled value as a divisor without checking it was non-zero.
-
The driver uses an unvalidated inter-stage shader location as an array index without checking it against the device limit.
-
The driver's pointer validation probes only the first four bytes before dereferencing a field at offset eight.
Seen in 1 report
-
The DroneID protocol was designed without encryption and the DUML protocol lacked proper input validation.
Seen in 1 report
-
The duplicate check loops over an unbounded array of referral users on every new referral.
-
The early return path skips clearing the reentrancy lock flag set at function entry.
Seen in 1 report
-
The edit endpoint reads the entire blob into memory without a size limit or streaming.
Seen in 1 report
-
The element count mapping is only set for generation zero and defaults to zero as a divisor.
-
The ELF parser divides by the section entry size without checking for zero and indexes a section cache with the link index without checking it is below the section count.
Seen in 1 report
-
The email address field has no length limit, so the server performs expensive processing on arbitrarily large input.
Seen in 1 report
-
The email input is passed into a template engine without sanitisation.
-
The email regex has a nested quantifier that allows several ways to match the same substring, so it backtracks exponentially when the match fails.
-
The email uniqueness check for internal bot accounts does not consider unconfirmed secondary emails added by other users.
Seen in 1 report
-
The email validation regex is vulnerable to ReDoS, timing out on long strings ending with '@'.
Seen in 1 report
-
The email-extraction regular expression contains overlapping or ambiguous clauses that allow exponential backtracking.
-
The emergency repair endpoint has no authentication or rate limiting, exposing a costly operation to anyone.
Seen in 1 report
-
The emoji field is not validated or length-limited, so long strings with newlines are stored and rendered.
Seen in 1 report
-
The encoding detection path reads the whole file handle without applying the size limit used by other sniffing paths.
Seen in 1 report
-
The encrypted section is added to a non-expiring replay cache before the MAC is verified.
Seen in 1 report