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 1,351 to 1,400 of 5,700
  1. Parental controls are enforced only by a client-side check rather than on the server.

    Seen in 1 report
  2. Partial redemptions are allowed when the basket is disabled, and the redemption limit depends on an inflatable total supply.

    Seen in 1 report
  3. Passive energy generation is disabled at the fork block instead of when the new consensus actually becomes active.

    Seen in 1 report
  4. Password and captcha validation applied only inside the JSON parsing path.

    Seen in 1 report
  5. Password protection was disabled during testing while zero placeholder prices remained live.

    Seen in 1 report
  6. Password strength validation was implemented only in the signup flow and not shared with the password reset flow.

    Seen in 1 report
  7. Password strength was enforced only in the browser and the server accepted whatever was submitted.

    Seen in 1 report
  8. Password validation checked length and character type but did not reject whitespace-only passwords or trim spaces before validation.

    Seen in 1 report
  9. Pause checks were placed inside only some functions rather than at the start of every state-changing function.

    Seen in 1 report
  10. Pausing sets the collateral validity flag to false and close and liquidation functions check it first.

    Seen in 1 report
  11. A maintenance reward is paid to whoever calls first with no randomness or restriction.

    Seen in 1 report
  12. Payment transfer and NFT return happen in one transaction, so a payment revert blocks the NFT return.

    Seen in 1 report
  13. Payments are pushed to the lien owner without checking whether the transfer will succeed, so a reverting transfer blocks repayment and auction settlement.

    Seen in 1 report
  14. Payout token decimals are read dynamically on every call instead of stored at deployment.

    Seen in 1 report
  15. Pending download callbacks are stored in one origin-agnostic queue per tab, and accepting a prompt drains the whole queue without checking each callback's origin against the origin shown.

    Seen in 1 report
  16. Pending invitation tokens were not invalidated on organisation deletion and existence was not checked on acceptance.

    Seen in 1 report
  17. Pending payments apply the current dynamic shares to the total historical balance instead of snapshotting shares when each inflow arrived.

    Seen in 1 report
  18. Pending randomness requests were keyed only by sequence number, not by provider address, so requests from different providers collided.

    Seen in 1 report
  19. Pending-edit identity was built from the non-injective display symbol instead of the numeric coin type.

    Seen in 1 report
  20. Per-address blocklist results are combined with an any check instead of an all check.

    Seen in 1 report
  21. Per-token entitlement was divided by the full total supply, which still included tokens held by disapproved holders.

    Seen in 1 report
  22. Permit failures are swallowed by a try-catch so execution continues without the token approval.

    Seen in 1 report
  23. Phone validation checked only format and did not detect premium-rate numbers or normalise variants of the same number.

    Seen in 1 report
  24. Placeholder implementations returned the maximum uint256 value without accounting for maxSupply.

    Seen in 1 report
  25. Poke proceeds with an empty pool list and marks the token as voted.

    Seen in 1 report
  26. Policy inspects only the call and ignores the separate tip field that also debits the signer.

    Seen in 1 report
  27. Pool accounting did not reserve liquidity for synth minters.

    Seen in 1 report
  28. The pool accounting update was placed inside the branch that only runs when an existing reward rate is positive.

    Seen in 1 report
  29. The pool address for price calculations is selected by a hardcoded fee tier rather than the pool actually used.

    Seen in 1 report
  30. Pool cash is read from the live token balance, so donations count as cash without minting shares.

    Seen in 1 report
  31. Pool creation did not validate that constant product pools have exactly two tokens, and the slippage check was skipped when no tolerance was given.

    Seen in 1 report
  32. Pool creation does not prevent the staking token from being the reward token.

    Seen in 1 report
  33. Pool creation does not verify that the collateral mint's freeze authority is disabled.

    Seen in 1 report
  34. Pool creation was permissionless and the initial price was set solely by the first liquidity provider with no minimum.

    Seen in 1 report
  35. The pool curve is computed from oracle price and reserves without accounting for the price impact of asymmetric liquidity additions.

    Seen in 1 report
  36. Precision loss in the share-to-token conversion made the withdrawn amount smaller than the requested amount.

    Seen in 1 report
  37. Premium access was granted from an updated payment method or stale subscription state rather than a confirmed successful payment.

    Seen in 1 report
  38. Premium features were gated by client-side checks on a subscription-status response the client could alter.

    Seen in 1 report
  39. Premium restrictions were enforced per route or in the frontend rather than uniformly on every API endpoint and on the asset URLs themselves.

    Seen in 1 report
  40. Premium status was stored locally and checked only client-side with no server-side validation.

    Seen in 1 report
  41. Previously generated checkout sessions were not invalidated and subscription state was not synchronised between frontend and backend.

    Seen in 1 report
  42. Price deviation was checked only before the swap and not before adding liquidity.

    Seen in 1 report
  43. Price fields are 64-bit integers instead of 128-bit, too small for 18-decimal token amounts.

    Seen in 1 report
  44. Price helpers read the global implied collateral ratio before it is synced, so calculations run on stale data.

    Seen in 1 report
  45. Price impact depended on each individual swap size rather than cumulative volume, so splitting reduced total impact.

    Seen in 1 report
  46. Pricing and shipping calculations used the client-supplied quantity without validating it against sensible bounds.

    Seen in 1 report
  47. Profit is calculated from the difference between deposited and returned amounts, which only reflects option fees.

    Seen in 1 report
  48. Profit is computed by subtracting the initial margin from the settled margin even though the initial margin was never invested in cross mode.

    Seen in 1 report
  49. provideLiquidity does not verify that the amount used stays within the available unstaked balance.

    Seen in 1 report