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 3,351 to 3,400 of 5,700
  1. The handler did not verify the Ethereum extension option was present, so the gas-charging step was skipped while refund logic still ran.

    Seen in 1 report
  2. The handler does not verify that the participant address matches the transaction initiator.

    Seen in 1 report
  3. The handler field was decoded as an application ID in one function and compared as an application address in another, so the digest and check disagreed.

    Seen in 1 report
  4. The handler is created with the elevated extension security level but without the extension ID, so cleanup routines that look up handlers by extension ID never find it.

    Seen in 1 report
  5. The handler passed the timer's round instead of the round stored on the scheduled vote.

    Seen in 1 report
  6. The handler uses its own address instead of the token state variable when populating the from-token field and event.

    Seen in 1 report
  7. The handler's receive function unconditionally returns true after its assertions pass, so the settlement never sees a failure.

    Seen in 1 report
  8. The hard-coded Uniswap v3 VIP selector constant is wrong, so valid calldata is rejected.

    Seen in 1 report
  9. The harvest amount depended on the pool price at that moment, so it could be manipulated by trades around the harvest.

    Seen in 1 report
  10. The hash used to verify loan integrity left out a fee field, so later changes to that field went undetected.

    Seen in 1 report
  11. The heal check requires two rounds to have passed when the rule only requires one.

    Seen in 1 report
  12. The health calculation compounds the current debt from the initial checkpoint, ignoring later additions.

    Seen in 1 report
  13. The health check is performed only at transaction time without requiring collateral to remain.

    Seen in 1 report
  14. The health check only adjusts collateral for the current intent and ignores all other pending intents.

    Seen in 1 report
  15. The health check panics when total risk is zero after full liquidation instead of allowing it.

    Seen in 1 report
  16. The health check to close the liquidation used the debt after repayment but before slashing collateral, overstating the health factor.

    Seen in 1 report
  17. The health check used the same threshold for borrowing and liquidation, leaving no gap between maximum loan-to-value and the liquidation threshold.

    Seen in 1 report
  18. The heavy ad intervention only accounted for network usage attributed to the ad frame itself, so SharedWorker requests escaped the accounting.

    Seen in 1 report
  19. The helper assumes a single asset ordering for all swap types and does not branch on exact-output swaps where assets are reversed.

    Seen in 1 report
  20. The helper decodes the output amount without checking that the destination token and receiver match the expected asset and wrapper.

    Seen in 1 report
  21. The helper did not reject msg.value when the token was an ERC20.

    Seen in 1 report
  22. The helper only populated the ETH value when ETH was the primary token, ignoring the secondary-token case.

    Seen in 1 report
  23. The high-risk check only inspects module upgrades and policy changes, omitting kernel migration and changes to the risk-level mapping.

    Seen in 1 report
  24. The high-security check models value outflow only as a runtime call and ignores the uncapped transaction tip settled by a separate extension.

    Seen in 1 report
  25. The high-security gate validates only the call and ignores the transaction tip charged before dispatch.

    Seen in 1 report
  26. The high-security policy inspects only the call type and ignores the transaction tip charged by a later extension.

    Seen in 1 report
  27. The high-water mark is overwritten unconditionally without checking it is higher than the existing mark.

    Seen in 1 report
  28. The high-water mark is scaled down by the ratio of paid assets to principal, so paying the entire principal even one atom zeroes the mark while other Senior shares remain outstanding.

    Seen in 1 report
  29. The high-water mark is updated to the current NAV per share on every permissionless debt report with no decay or time adjustment.

    Seen in 1 report
  30. The high-water mark reduction uses the fraction of net principal paid while ownership reduction uses shares burned, so the two diverge after impairment.

    Seen in 1 report
  31. The high-water mark reduction uses the payout-to-principal ratio, which ERC-4626 virtual offsets inflate when principal is tiny.

    Seen in 1 report
  32. The high-water mark was increased by the new minipool's amount rather than reset to the current total assigned.

    Seen in 1 report
  33. The high-water-mark scaling uses the funded-asset fraction instead of checking whether all senior shares actually exited, so a one-atom principal makes the fraction collapse.

    Seen in 1 report
  34. The highest voting power variable was not updated when a block with greater power was found.

    Seen in 1 report
  35. The hold check was only added to the deposit admission path and not to the redemption request paths, while the documentation describes the hold as stopping all new senior requests.

    Seen in 1 report
  36. The hook calculated its invariant from a single global reserves array shared across all pools instead of isolating reserves per pool.

    Seen in 1 report
  37. The hook checks the output token variable instead of the native input variable when deciding whether fees are covered.

    Seen in 1 report
  38. The host could set the rage quit timestamp to any value without restricting decreases.

    Seen in 1 report
  39. The hourly average counted each trade equally regardless of size.

    Seen in 1 report
  40. The HTTP fallback accepted not-modified responses without cryptographic verification, letting an attacker control the date header and pin security-critical state.

    Seen in 1 report
  41. The idempotency key was committed before the delivery rows in a non-transactional statement, so a retry returned early and never created deliveries.

    Seen in 1 report
  42. The if-statements compared the difference between pool amounts to the pool amount itself rather than to the user's deposit amount, leading to incorrect branching.

    Seen in 1 report
  43. The illegal payment challenge lacked a check that the challenged transaction occurred after the agent's creation block, unlike the top-up payment confirmation which did have such a check.

    Seen in 1 report
  44. The immutability check was applied per token storage slot inside a loop instead of to the strategy hash as a whole.

    Seen in 1 report
  45. The immutable pair address is checked before the mutable pool set, so removal from the set has no effect.

    Seen in 1 report
  46. The implied volatility formula assumes an efficient market, but Uniswap liquidity is long-only so mispricing is not corrected.

    Seen in 1 report
  47. The import allowed a branch name that looks like a full reference, and the web interface and download resolved the default branch differently.

    Seen in 1 report
  48. The import trusted the size limit value from the uploaded export file instead of applying the instance limit.

    Seen in 1 report
  49. The inbound tracker path does not enforce the same block confirmation threshold as the normal handler.

    Seen in 1 report
  50. The inbound vote message uses the transaction signer instead of the immediate caller of the deposit function.

    Seen in 1 report