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 2,451 to 2,500 of 5,700
  1. The compare function lacks bounds checks on offset and length relative to the actual byte array lengths.

    Seen in 1 report
  2. The comparison operands in the gte and lte checks were swapped.

    Seen in 1 report
  3. The comparison operator and variable naming are inverted, checking a minimum rate where a maximum is intended.

    Seen in 1 report
  4. The comparison operator in the LTV check is reversed.

    Seen in 1 report
  5. The comparison operator was inverted, using greater-than-or-equal where less-than-or-equal was intended.

    Seen in 1 report
  6. The comparison used greater-than-or-equal instead of greater-than, rejecting amounts equal to the threshold.

    Seen in 1 report
  7. The comparison used strict greater-than and less-than instead of inclusive comparisons, so the boundary answers were not treated as circuit-breaking.

    Seen in 1 report
  8. The compatibility check accepts either interface but the bridge unconditionally calls a function from the legacy one.

    Seen in 1 report
  9. The compiler did not cache a non-literal iterable before the loop, re-evaluating it each iteration.

    Seen in 1 report
  10. The compound function does not distribute rewards before converting reward tokens, so pending rewards are compounded after the attacker's deposit.

    Seen in 1 report
  11. The compounding assumed a one-to-one reward ratio between operator and liquid staker, ignoring the commission fee.

    Seen in 1 report
  12. The compounding calculation divides by a smaller precision than the rate is stored with, scaling interest by ten.

    Seen in 1 report
  13. The compounding function added rewards to an internal counter without reconciling with the real staked balance.

    Seen in 1 report
  14. The compounding swap uses a fixed slippage tolerance that an outside party can deliberately exceed, leaving rewards unclaimed and shared with later depositors.

    Seen in 1 report
  15. The compression function does not verify that every chunk in the dictionary is actually referenced by the encoded data.

    Seen in 1 report
  16. The compute function returned the last estimated value even when Newton's method failed to converge.

    Seen in 1 report
  17. The computed safe amount was discarded and the original amount was passed to the external call.

    Seen in 1 report
  18. The conclusion check used a strict less-than comparison, so at the exact conclusion timestamp the auction was neither active nor concluded.

    Seen in 1 report
  19. The condition checked if msg.value exceeded fee plus gas allowance, but the code only transferred the fee to the protocol and refunded the rest, failing to retain the gas allowance.

    Seen in 1 report
  20. The condition compares the absolute value of the hedge amount instead of checking whether it is positive.

    Seen in 1 report
  21. The condition deciding the absorption penalty uses the trove threshold rather than its LTV.

    Seen in 1 report
  22. The condition for detecting underflow in boundedSub() was incorrect: it checked b <= type(int256).min - a instead of a <= type(int256).min + b, so some underflow cases were not caught.

    Seen in 1 report
  23. The condition in the time-to-epoch-end function is inverted, returning zero when the epoch end is in the future.

    Seen in 1 report
  24. The condition used less-than-or-equal instead of greater-than-or-equal, resetting stepdown when rewards were below the tail rate rather than when they reached it.

    Seen in 1 report
  25. The condition uses logical AND instead of OR, so the revert only triggers when both sub-conditions are true.

    Seen in 1 report
  26. The condition uses OR instead of AND, so it reverts when the sender is whitelisted or the receiver is not.

    Seen in 1 report
  27. The conditional branches for minimum output use the wrong price function for each swap direction.

    Seen in 1 report
  28. The configurator invokes router setters with an extra leading caller argument while the router expects only asset and value.

    Seen in 1 report
  29. The confirm button is disabled only when fetching call bytes fails, not when decoding fails, so a decode exception falls back to a headline built from pallet and call names only.

    Seen in 1 report
  30. The confirm endpoint did not re-check the two-factor code and allowed the same confirm action to be replayed on a deleted recurring payment.

    Seen in 1 report
  31. The confirmation endpoint lacked rate limiting, cooldown timers and abuse detection.

    Seen in 1 report
  32. The confirmation input was never compared with the new password.

    Seen in 1 report
  33. The confirmation sheet treats a successful storage read as sufficient and its blocking condition omits semantic decode failure, falling back to indexer display data.

    Seen in 1 report
  34. The confirmation step credited rewards on every page load instead of recording that the deposit had already been rewarded.

    Seen in 1 report
  35. The Connect OAuth account creation flow did not enforce email verification before granting full account capabilities, unlike the standard registration flow.

    Seen in 1 report
  36. The connection-reuse comparison used case-insensitive path matching and ignored some certificate options.

    Seen in 1 report
  37. The connector does not expose a wrapper for the lending protocol's claim collateral function, so surplus balances cannot be withdrawn.

    Seen in 1 report
  38. The consensus check uses a strict greater-than comparison instead of greater-than-or-equal, so exactly two-thirds is not counted.

    Seen in 1 report
  39. The consent modifier recorded consent and returned false on the first call instead of reverting, trapping any ETH sent.

    Seen in 1 report
  40. The consolidation comparator uses a non-exact EIP-2718 decode that does not verify the whole input slice was consumed.

    Seen in 1 report
  41. The constant marking the highest precompile address was not updated to include the newly added precompile addresses.

    Seen in 1 report
  42. The constructor and setters failed to validate that the slippage parameter was at most the maximum.

    Seen in 1 report
  43. The constructor approves the strategy asset for the market instead of the market's loan token and never enforces that the two are the same.

    Seen in 1 report
  44. The constructor gated Convex booster configuration on a hardcoded mainnet chain ID check.

    Seen in 1 report
  45. The constructor passed a quorum numerator of four out of one hundred instead of the intended twenty-five.

    Seen in 1 report
  46. The constructor required a deprecated oracle flag that was no longer relevant.

    Seen in 1 report
  47. The constructor set the governor but never called the configure-claimable-gas function, leaving the yield mode at void.

    Seen in 1 report
  48. The constructor set the total supply without minting corresponding tokens to any address.

    Seen in 1 report
  49. The constructor stored zero as the last timestamp rather than the block timestamp, inflating elapsed time in the APR calculation.

    Seen in 1 report
  50. The contact endpoint had no server-side throttling or per-user submission limit.

    Seen in 1 report