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 4,251 to 4,300 of 5,700
  1. The rating mutation lacked authentication, CSRF protection, rate limiting and per-user vote validation, so identical requests could be replayed indefinitely.

    Seen in 1 report
  2. The ratio check used loop-accumulated variables that were still zero on the first iteration.

    Seen in 1 report
  3. The ratio decrease formula computes previous divided by current minus one instead of the difference divided by previous.

    Seen in 1 report
  4. The raw email string was compared without trimming or canonicalising, so variants slipped past the duplicate check.

    Seen in 1 report
  5. The raw sync/import path omits the post-Isthmus requestsHash invariant check that the Engine path enforces.

    Seen in 1 report
  6. The raw token balance was used to judge success instead of tracking deposits through the intended function.

    Seen in 1 report
  7. The raw URL string was compared against the blocklist without normalising the host or resolving path traversal.

    Seen in 1 report
  8. The re-registration path updates the status but leaves the stored review counts untouched.

    Seen in 1 report
  9. A read helper mutates the lifetime of a security-critical stored baseline and is reachable through an unauthenticated public entry point.

    Seen in 1 report
  10. The readiness check did not wait for the asynchronous funding quote, so the displayed total differed from the later-resolved budget.

    Seen in 1 report
  11. The realised premium is passed as a positive value without negating it, so the collateral tracker treats it as owed to the user.

    Seen in 1 report
  12. The rebalance deposited before pulling, but those protocols forbid deposit and withdrawal in the same block.

    Seen in 1 report
  13. The rebalance function is missing the when-not-paused modifier.

    Seen in 1 report
  14. The rebalancer sets itself as depositor so refunds go to it, but it has no mechanism to handle or recover them.

    Seen in 1 report
  15. The rebalancing function exits all positions entirely and re-enters them based on new weights instead of adjusting only the positions that need to change.

    Seen in 1 report
  16. The rebalancing function uses a require that reverts the entire transaction if any currency is no longer unhealthy instead of skipping it.

    Seen in 1 report
  17. The rebalancing period was incremented before the corresponding reward was settled, and the basket rebalance was not restricted in that interval.

    Seen in 1 report
  18. The rebase function uses the total token balance instead of the adjusted balance when capping the additional amount.

    Seen in 1 report
  19. The rebase function was permissionless and the remote side did not check that the multiplier was newer than the current one.

    Seen in 1 report
  20. The rebate branch of the close planner sets only the net rebate amount and leaves the withheld and collected charge fields at zero, so the fee-allocation step credits nobody.

    Seen in 1 report
  21. The rebate is paid from free cash without being tied to the LP cohort that received the original charge, so an LP can exit between charge and rebate.

    Seen in 1 report
  22. The recalculated delta is used to update debt but the original requested amount is used to mint tokens.

    Seen in 1 report
  23. The recalculation on reopen awarded a fixed amount rather than restoring the previous value.

    Seen in 1 report
  24. The recapitalisation amount stays queued as pending claimant value after the trader claim is paid, so the queue is no longer backed by cash and is reserved from LP withdrawals.

    Seen in 1 report
  25. The recapitalisation reconciliation branch sets the Senior high-water mark to the recapitalisation target instead of keeping the larger of the existing mark and the target.

    Seen in 1 report
  26. The recapitalisation recording function adds the full inflow to the pending bucket without subtracting the portion consumed by the terminal trader-claim deficit.

    Seen in 1 report
  27. The receive callback is gated behind an interface support check that the standard does not require.

    Seen in 1 report
  28. The receive callback requires the caller to be the underlying NFT contract, so other airdrops revert.

    Seen in 1 report
  29. The receive function did not verify that the transaction status was unknown before processing, allowing replay of processed messages.

    Seen in 1 report
  30. The receive function maps lock-mint and burn-unlock to the opposite token operation because the same mode setting is reused for sending and receiving.

    Seen in 1 report
  31. The receive function starts the timelock whenever the confirmation wallet sends enough ether, without checking that a wallet-change proposal exists.

    Seen in 1 report
  32. The receive function unconditionally calls stake on every incoming payment, including validator returns.

    Seen in 1 report
  33. The receive handler encoded a call to exercise without the required module address argument, causing a decoding failure on the destination.

    Seen in 1 report
  34. The receive path passed the whole leftover buffer to the body writer without clamping to the declared message size.

    Seen in 1 report
  35. The receiver validation assumed the sender was always the original user, but during single-sided provision the contract called itself.

    Seen in 1 report
  36. The receiver's cooldown was recalculated as a weighted average including the sender's cooldown on every transfer.

    Seen in 1 report
  37. The receiver's xReceive function performs a deposit call that can revert without a try/catch or other defensive handling, and the L2 side does not mirror L1 limits or pause state.

    Seen in 1 report
  38. The receiving code credited internal ETH transfers without verifying that the entire smart contract transaction had completed successfully.

    Seen in 1 report
  39. The receiving contract does not record or check the unique message identifier before processing.

    Seen in 1 report
  40. The recipient counter starts at zero while zero is also the default index for an unregistered recipient.

    Seen in 1 report
  41. The recipient variable is passed into the sender field of the emitted event.

    Seen in 1 report
  42. The reclaim function transferred tokens without reducing the rewards-unclaimed field, allowing repeated claims.

    Seen in 1 report
  43. The reconcile applies surplus routing to restore senior before applying the queued recapitalisation, so later revenue is consumed by the senior gap.

    Seen in 1 report
  44. The reconcile pass routes a delta against the principal pair that the previous pass itself rewrote, so the split depends on how many times the value was observed.

    Seen in 1 report
  45. The reconcile plan caps unassigned assets against a distributable value that includes unrealised trader profit and stores the reduced reserve without recording the shortfall.

    Seen in 1 report
  46. The reconcile plan used by the view functions returns early when the mark is stale, so the preview stops after the senior coupon and never includes mark-independent collected cash.

    Seen in 1 report
  47. The reconcile planner reserves the same physical cash twice because it does not track which pending buckets are already backed.

    Seen in 1 report
  48. The reconcile snapshot used for LP share pricing omits outstanding VPI (rebate or charge) from its asset or liability calculation.

    Seen in 1 report
  49. The reconcile stores the minimum of the ownerless balance and distributable value without recording the clipped amount.

    Seen in 1 report
  50. The reconciliation planner reserves residual pending recapitalization and revenue buckets against cash already stored as Senior principal, causing a false empty-pool bootstrap.

    Seen in 1 report