In-depth lesson · Business logic
Root causes
Every point the Business logic reports back under this heading, best-backed first, each with the reports it is seen in.
-
A greater-than-or-equal check on the sent value allowed excess native tokens to remain in the contract.
Seen in 1 report
-
A hard cap on delegates per destination exists without any cost or rate limit, so it can be filled with many cheap locks.
Seen in 1 report
-
A hard-coded guessable OTP was used for authentication and the store trusted a client-side payment status rather than verifying the transaction server-side.
-
A hardcoded block period was not updated after the chain moved to a different slot time.
Seen in 1 report
-
Medium
-
-
A hardcoded function selector fixes the acceptable loss with no way to adjust it.
Seen in 1 report
-
A hardcoded gas limit and gas price cause an excessive maximum fee to be deducted before the transfer is validated.
-
A hardcoded swap amount of 100 tokens is used for liquidity checks regardless of token unit value.
-
A hardcoded zero is passed instead of the actual font class during character conversion.
Seen in 1 report
-
A heap node is mutated in place without re-heapifying, breaking the heap invariant.
Seen in 1 report
-
A leading tab made the attribute-name parse fail and the loop exited before reading the Secure attribute.
Seen in 1 report
-
A legacy AJAX handler remained registered and trusted client-supplied segment index and status values without verifying that a real spin occurred.
-
A legacy GraphQL mutation stayed enabled on the main domain and wrote directly, bypassing the third-party service where the business rules lived.
-
A less-than-or-equal comparison was used where a strict less-than was intended.
Seen in 1 report
-
A logic error in the kernel's state management for passcode attempt tracking allowed an app to manipulate the failure counter.
-
A logic flaw in the Android app's email verification flow that fails to preserve the 'Protect your Tweets' setting.
Seen in 1 report
-
A logical AND in the require statement reverts whitelisted senders regardless of paused state.
Seen in 1 report
-
A logical AND short-circuited when the token was falsy, so the validation function was never called.
Seen in 1 report
-
A logical OR was used instead of AND in a require statement, inverting the intended check.
Seen in 1 report
-
A logical OR was used instead of AND in the collateral token check.
-
A loop always assigns the first configuration, making a later zero-epoch check unreachable.
Seen in 1 report
-
Info
-
-
A low-level call checked only the success flag and not whether the target had code.
Seen in 1 report
-
A low-level transfer call was treated as success without checking that the token address holds code.
Seen in 1 report
-
A low-precision divisor of 10,000 in integer division rounds small basis point values up when the numerator is large.
-
A macro used a comparison instead of a left shift, so the mask meant to hide messages also set the OpenVMS success bit.
-
A mapping entry is overwritten instead of being checked for or added to.
Seen in 1 report
-
A mapping returned zero for unknown token addresses without validating that the address was a known reward token, so index zero was used for any garbage address.
Seen in 1 report
-
A math utility with a divisor of one million was used instead of the precise utility with a divisor of ten to the twenty-seven.
-
A migration action that reset the filesystem import token flag was registered for upgrading devices, causing re-import of filesystem assets.
Seen in 1 report
-
A migration plan cached on domain and wallet only, not invalidated by a change to the V1 registry owner.
Seen in 1 report
-
A migration used core platform user IDs as primary keys in a payments service where IDs had diverged.
Seen in 1 report
-
A misleading unused constant coexists with the real denominator, inviting the wrong value when configuring splits.
Seen in 1 report
-
A mismatch between stored form options and effective options used to build the transaction plan, plus non-atomic execution of the address update and ownership transfer.
Seen in 1 report
-
A missing assignment of a temporary file handle and an inverted return value prematurely signalled analysis completion.
Seen in 1 report
-
A missing else branch in the refund logic when the governed gas pool feature was enabled caused the surplus to be discarded.
Seen in 1 report
-
A missing erase from the missing-groups map after a tab was resolved meant the stale entry was re-applied on every incremental sync.
Seen in 1 report
-
A missing pair of parentheses in the input amount formula applies the fee multiplier to only part of the expression.
-
A missing pair of parentheses in the price change formula causes multiplication to be evaluated before subtraction.
Seen in 1 report
-
A missing return statement after slashing a finality provider allows the code to continue and index the message as refundable.
Seen in 1 report
-
A missing source profile was treated as proof the destination resolver held no records, so an existing resolver was reattached uncleared.
Seen in 1 report
-
A multiplier is applied without dividing by the basis-points scale factor.
Seen in 1 report
-
A mutable position owner address is used as the matched-order flag and transfer to the zero address is allowed.
-
A mutable same-timestamp checkpoint is used as if it were an immutable opening exposure snapshot.
-
A mutable, reusable username was treated as an authentication identifier while login also accepted email.
-
A new claim window opens on every transfer and the claim-all function loops over every past window without a bound.
-
A new observation is only created when the current period is greater than the newest observation's period.
Seen in 1 report
-
A new position was only created when both collected token amounts were greater than zero, with no branch for the single-token case and no revert.
-
A node offset was computed in 32-bit arithmetic before being widened, so offsets above four gigabytes wrapped.
Seen in 1 report
-
A non-strict timestamp comparison included the last second of the challenge window.
-
A paid feature was gated only by a client-side disabled button with no server-side entitlement check.
Seen in 1 report
-
A pallet with no OnKilledAccount hook or removal logic, so index entries for reaped accounts persist and occupy bounded capacity.
Seen in 1 report