Skip to content

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.

Back to the lesson 551 to 600 of 5,700
  1. A greater-than-or-equal check on the sent value allowed excess native tokens to remain in the contract.

    Seen in 1 report
  2. 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
  3. 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.

    Seen in 1 report
  4. A hardcoded block period was not updated after the chain moved to a different slot time.

    Seen in 1 report
  5. A hardcoded function selector fixes the acceptable loss with no way to adjust it.

    Seen in 1 report
  6. A hardcoded gas limit and gas price cause an excessive maximum fee to be deducted before the transfer is validated.

    Seen in 1 report
  7. A hardcoded swap amount of 100 tokens is used for liquidity checks regardless of token unit value.

    Seen in 1 report
  8. A hardcoded zero is passed instead of the actual font class during character conversion.

    Seen in 1 report
  9. A heap node is mutated in place without re-heapifying, breaking the heap invariant.

    Seen in 1 report
  10. A leading tab made the attribute-name parse fail and the loop exited before reading the Secure attribute.

    Seen in 1 report
  11. A legacy AJAX handler remained registered and trusted client-supplied segment index and status values without verifying that a real spin occurred.

    Seen in 1 report
  12. A legacy GraphQL mutation stayed enabled on the main domain and wrote directly, bypassing the third-party service where the business rules lived.

    Seen in 1 report
  13. A less-than-or-equal comparison was used where a strict less-than was intended.

    Seen in 1 report
  14. A logic error in the kernel's state management for passcode attempt tracking allowed an app to manipulate the failure counter.

    Seen in 1 report
  15. A logic flaw in the Android app's email verification flow that fails to preserve the 'Protect your Tweets' setting.

    Seen in 1 report
  16. A logical AND in the require statement reverts whitelisted senders regardless of paused state.

    Seen in 1 report
  17. A logical AND short-circuited when the token was falsy, so the validation function was never called.

    Seen in 1 report
  18. A logical OR was used instead of AND in a require statement, inverting the intended check.

    Seen in 1 report
  19. A logical OR was used instead of AND in the collateral token check.

    Seen in 1 report
  20. A loop always assigns the first configuration, making a later zero-epoch check unreachable.

    Seen in 1 report
  21. A low-level call checked only the success flag and not whether the target had code.

    Seen in 1 report
  22. A low-level transfer call was treated as success without checking that the token address holds code.

    Seen in 1 report
  23. A low-precision divisor of 10,000 in integer division rounds small basis point values up when the numerator is large.

    Seen in 1 report
  24. A macro used a comparison instead of a left shift, so the mask meant to hide messages also set the OpenVMS success bit.

    Seen in 1 report
  25. A mapping entry is overwritten instead of being checked for or added to.

    Seen in 1 report
  26. 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
  27. 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.

    Seen in 1 report
  28. 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
  29. A migration plan cached on domain and wallet only, not invalidated by a change to the V1 registry owner.

    Seen in 1 report
  30. A migration used core platform user IDs as primary keys in a payments service where IDs had diverged.

    Seen in 1 report
  31. A misleading unused constant coexists with the real denominator, inviting the wrong value when configuring splits.

    Seen in 1 report
  32. 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
  33. A missing assignment of a temporary file handle and an inverted return value prematurely signalled analysis completion.

    Seen in 1 report
  34. 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
  35. 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
  36. A missing pair of parentheses in the input amount formula applies the fee multiplier to only part of the expression.

    Seen in 1 report
  37. A missing pair of parentheses in the price change formula causes multiplication to be evaluated before subtraction.

    Seen in 1 report
  38. A missing return statement after slashing a finality provider allows the code to continue and index the message as refundable.

    Seen in 1 report
  39. 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
  40. A multiplier is applied without dividing by the basis-points scale factor.

    Seen in 1 report
  41. A mutable position owner address is used as the matched-order flag and transfer to the zero address is allowed.

    Seen in 1 report
  42. A mutable same-timestamp checkpoint is used as if it were an immutable opening exposure snapshot.

    Seen in 1 report
  43. A mutable, reusable username was treated as an authentication identifier while login also accepted email.

    Seen in 1 report
  44. A new claim window opens on every transfer and the claim-all function loops over every past window without a bound.

    Seen in 1 report
  45. A new observation is only created when the current period is greater than the newest observation's period.

    Seen in 1 report
  46. 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.

    Seen in 1 report
  47. A node offset was computed in 32-bit arithmetic before being widened, so offsets above four gigabytes wrapped.

    Seen in 1 report
  48. A non-strict timestamp comparison included the last second of the challenge window.

    Seen in 1 report
  49. A paid feature was gated only by a client-side disabled button with no server-side entitlement check.

    Seen in 1 report
  50. A pallet with no OnKilledAccount hook or removal logic, so index entries for reaped accounts persist and occupy bounded capacity.

    Seen in 1 report