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,151 to 2,200 of 5,700
  1. The change-time endpoint did not check the booking start time server-side and relied on the front end hiding the option.

    Seen in 1 report
  2. The charge was computed from a static price on the offer SKU instead of the content's current authoritative price at order creation.

    Seen in 1 report
  3. The chat landing page did not check that the required information form had been completed before allowing access.

    Seen in 1 report
  4. The check compared only two of the three pairwise ratios.

    Seen in 1 report
  5. The check compared UTF-8 byte length against one, so any multi-byte character was rejected as malformed.

    Seen in 1 report
  6. The check converts debt into yield-token shares and compares against a share-denominated collateral balance.

    Seen in 1 report
  7. The check does not account for a burned NFT where the owner lookup returns the zero address, matching the registry's zero return.

    Seen in 1 report
  8. The check for an existing request compared a stored period of zero, which stayed true when the rebalancing period was also zero.

    Seen in 1 report
  9. The check for whether prizes are set only looks at prize index zero, ignoring other indices.

    Seen in 1 report
  10. The check only ensured minimum output was at least the input amount and did not enforce that the sale price stayed at or above the peg.

    Seen in 1 report
  11. The check only verified that acceptance time was less than the current timestamp and did not require it to be non-zero.

    Seen in 1 report
  12. The check required the new epoch to be exactly current plus one instead of allowing any later epoch.

    Seen in 1 report
  13. The check used the remaining ETH after the swap instead of the total ETH sent, so it reverted when repayment exceeded the leftover but not the total.

    Seen in 1 report
  14. The check uses raw collateral value rather than the credit limit that accounts for the collateral factor.

    Seen in 1 report
  15. The checker normalised or compared text without accounting for homoglyph characters from different alphabets, so visually identical but different Unicode characters evaded matching.

    Seen in 1 report
  16. The checkout logic did not validate that the final price stayed non-negative after applying multiple discounts and credits, and silently clamped negative totals to zero.

    Seen in 1 report
  17. The checkout trusted the contact email to associate an order with an existing account without verifying ownership.

    Seen in 1 report
  18. The checkpoint condition combined the liveness period with a reward-availability check, so activity was only measured when rewards existed.

    Seen in 1 report
  19. The checkpoint function appends a new epoch without checking whether an epoch with the same timestamp already exists, so a second checkpoint in one transaction overwrites the first.

    Seen in 1 report
  20. The checkpoint function returns early when shut down, so reward accounting is never updated on transfers.

    Seen in 1 report
  21. The checkpoint lookup at the period-start timestamp included a redemption written in the same block, so the exposure cap was taken from the post-redemption balance.

    Seen in 1 report
  22. The checkpoint lookup returned the most recent entry with a key less than or equal to the requested timestamp, so a write in the boundary second was included in what should be a frozen opening snapshot.

    Seen in 1 report
  23. The checkpoint lookup returns the earliest checkpoint in a block rather than the latest.

    Seen in 1 report
  24. The checkpoint loop is capped at twenty iterations while the last checkpoint time is advanced to now, so weeks beyond the cap are never recorded.

    Seen in 1 report
  25. The checkpoint reads the voted flag from the new index instead of the previous one, so it always stores false.

    Seen in 1 report
  26. The checkpoint set the last token time to the current block timestamp instead of advancing it only by the weeks actually processed, discarding the excess.

    Seen in 1 report
  27. The checkpoint uses greater-than-or-equal instead of strict greater-than, so the epoch can be set to the current timestamp.

    Seen in 1 report
  28. The checkpointing logic only added message value when the kind was not a call, assuming calls never move funds.

    Seen in 1 report
  29. The chunk counter is incremented before the first-chunk check, so the check never catches it.

    Seen in 1 report
  30. The circuit only enforces local ordering rules between adjacent entries and never requires the first popped entry to be a write or forbids consecutive rollbacks.

    Seen in 1 report
  31. The claim caps payout at the contract's current balance and clears unclaimed rewards without accounting for rewards still in the incentives controller.

    Seen in 1 report
  32. The claim check reverts on any prior claim instead of tracking the amount already claimed and allowing a top-up.

    Seen in 1 report
  33. The claim checks that the number of winners drawn meets the prize quantity rather than checking only that the specific winner index has been drawn.

    Seen in 1 report
  34. The claim contribution check did not account for the funding fee and rounding, and min/max checks could be impossible to satisfy.

    Seen in 1 report
  35. The claim function accepts any signer and pays the largest vested amount, so an attacker controls the payout cadence.

    Seen in 1 report
  36. The claim function allowed the caller to specify any destination and an eligible address was a permissionless contract.

    Seen in 1 report
  37. The claim function allows user-defined hooks to revert, and the protocol uses canary tier claims to decide tier expansion, so a reverting hook can block expansion.

    Seen in 1 report
  38. The claim function checked only that the recipient was approved, not that the caller was authorised.

    Seen in 1 report
  39. The claim function checks a single global flag for the current beneficiary's pool status instead of the status of the address claiming.

    Seen in 1 report
  40. The claim function checks for deposits instead of debt before attempting to burn the alchemic token.

    Seen in 1 report
  41. The claim function did not check that the escrow pool address was non-zero before deducting the escrowed portion.

    Seen in 1 report
  42. The claim function did not validate the amounts returned by the pool burn against a minimum threshold.

    Seen in 1 report
  43. The claim function does not check whether the lock has expired before depositing into it.

    Seen in 1 report
  44. The claim function does not prevent repeated claims on an expired bond, so the reward-per-share accumulator is updated many times.

    Seen in 1 report
  45. The claim function finalises the position unconditionally, burning the NFT and reducing total locked by the full nominal amount even when the payout was capped.

    Seen in 1 report
  46. The claim function hardcoded the recipient as the caller instead of letting the winner choose a receiver address.

    Seen in 1 report
  47. The claim function hardcodes the deployment check to ERC721 collections only.

    Seen in 1 report
  48. The claim function lacked validation preventing the retainer address from being used as a staking target.

    Seen in 1 report
  49. The claim function let the caller freely choose the voting power split without limiting the number of NFTs.

    Seen in 1 report
  50. The claim function re-initialises the distribution record with the purchased amount when it differs from the stored total.

    Seen in 1 report