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,901 to 1,950 of 5,700
  1. The backend enforced no upper bound on quantity and used an unsafe integer type in the price calculation.

    Seen in 1 report
  2. The backend failed to validate locale values on update and reused the stored value in critical flows such as login and invitations.

    Seen in 1 report
  3. The backend has no check against duplicate ban actions while the frontend only disables the button.

    Seen in 1 report
  4. The backend initialised the expected verification code to a default value and checked it before a phone number was set.

    Seen in 1 report
  5. The backend never marked a coupon as redeemed and had no per-user or per-order limit on how many times it could be applied.

    Seen in 1 report
  6. The backend parses duplicate parameters by taking the last occurrence without rejecting duplicates.

    Seen in 1 report
  7. The backend relied entirely on client-side state and did not independently verify the geofence and QR validation.

    Seen in 1 report
  8. The backend relied on client-side validation and did not enforce the same rules.

    Seen in 1 report
  9. The backend treats email and phone as writable and marks new values verified without re-verification, relying on the frontend to hide editing.

    Seen in 1 report
  10. The backend trusted a client-controlled activation flag instead of checking the user's subscription and quota in its own records.

    Seen in 1 report
  11. The backend trusted a client-supplied resetPassword parameter and client-side response state to drive the authentication flow.

    Seen in 1 report
  12. The backend trusted client-side verification state instead of checking authoritative records before sensitive operations.

    Seen in 1 report
  13. The backend trusted client-supplied configuration values for upload limits instead of enforcing them server-side.

    Seen in 1 report
  14. The backend trusted client-supplied passenger type, date of birth and seat offer identifier without re-validating them against the generated offer.

    Seen in 1 report
  15. The backend trusted client-supplied price and total values and never compared them with catalogue prices.

    Seen in 1 report
  16. The backend trusted client-supplied price fields in the checkout JSON instead of recalculating the total from server-side product data.

    Seen in 1 report
  17. The backend trusted client-supplied redirect parameters indicating payment success instead of verifying the transaction with the gateway.

    Seen in 1 report
  18. The backend trusted client-supplied user_id and amount on a top-up endpoint without authenticating the caller or verifying the payment with the gateway, and had no idempotency check.

    Seen in 1 report
  19. The backend trusted the amount supplied by the client in the QR code instead of verifying it against the order.

    Seen in 1 report
  20. The backend trusted the client-supplied assignee identifier without checking that the user exists, is in the same organisation or has workflow access.

    Seen in 1 report
  21. The backend trusted the client-supplied permission value without checking the subscription allowed that level.

    Seen in 1 report
  22. The backend trusted the frontend to enforce the paid-role restriction.

    Seen in 1 report
  23. The backend trusts a client-supplied forwarding header for country decisions instead of the real connection address or a trusted proxy chain.

    Seen in 1 report
  24. The backend validated each line item independently instead of summing quantity per product SKU across lines.

    Seen in 1 report
  25. The backend validated only that the invite token was valid and unexpired without binding it to the invited email.

    Seen in 1 report
  26. The backend validated the source account balance but never verified that the account's asset matched the product being traded.

    Seen in 1 report
  27. The backend validates that quantity is an integer but does not enforce a minimum of one.

    Seen in 1 report
  28. The backend validation logic only checked passwords up to twelve characters and ignored longer ones.

    Seen in 1 report
  29. The backing manager sends RSR to the trader instead of directly to staking, so the distributor splits it.

    Seen in 1 report
  30. The backlog function only counts transactions at and after the encoder's block cursor, excluding encoded channels, frames, pending submissions and in-flight L1 transactions.

    Seen in 1 report
  31. The bad debt check applies collateral and debt weights to the collateral ratio, pushing it below one even when liquidation is still profitable.

    Seen in 1 report
  32. The bad debt check requires an empty collateral position but no minimum collateral size is enforced.

    Seen in 1 report
  33. The bad debt function did not reject the insurance account as the liquidated trader.

    Seen in 1 report
  34. The bad debt ratio is scaled by only one fixed-point factor instead of two, causing a unit mismatch.

    Seen in 1 report
  35. The bad ratio function reads raw storage instead of the getter that substitutes defaults.

    Seen in 1 report
  36. The bad-debt liquidation passes a profit value of zero to the pool repayment instead of the accrued interest, so no shares are minted for the interest portion.

    Seen in 1 report
  37. The bad-debt ratio denominator included a balance a user could move with a deposit and withdraw around the claim.

    Seen in 1 report
  38. The bad-debt ratio uses a spot total-collateral figure that includes deposits not tied to any borrowing.

    Seen in 1 report
  39. The balance and reserve reads are reversed in the amount adjustment, so the requested amount is computed as balance plus requested minus reserves.

    Seen in 1 report
  40. The balance calculation omitted a check that the queried time is before the lock end, so expired locks still contributed voting power.

    Seen in 1 report
  41. The balance calculation used Compound's cached exchange rate and Beta's unaccrued total loan figure instead of accruing first.

    Seen in 1 report
  42. The balance change overwrites the fee offset without first crediting owed fees to unclaimed fees.

    Seen in 1 report
  43. The balance check after the trade compares only ETH balances and ignores WETH balances.

    Seen in 1 report
  44. The balance check assumes the received amount equals the requested amount, which fails for fee-on-transfer tokens.

    Seen in 1 report
  45. The balance check assumes the swapped token differs from the borrowed token when they are always the same.

    Seen in 1 report
  46. The balance check subtracts only amounts already claimed, not amounts already vested, so vested-but-unclaimed tokens count as transferable.

    Seen in 1 report
  47. The balance check was omitted from the deposit and withdraw paths that use the reserve-token-specified helper.

    Seen in 1 report
  48. The balance function counted only held tokens and omitted unclaimed rewards, so shares were minted against an understated total.

    Seen in 1 report
  49. The balance function includes deposit pool assets not yet deposited and converts them at the current share price.

    Seen in 1 report
  50. The balance function returns only the vault's own token balance instead of the vault plus strategy balance, so share calculations use a wrong denominator.

    Seen in 1 report