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.
-
The backend enforced no upper bound on quantity and used an unsafe integer type in the price calculation.
Seen in 1 report
-
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
-
The backend has no check against duplicate ban actions while the frontend only disables the button.
-
The backend initialised the expected verification code to a default value and checked it before a phone number was set.
Seen in 1 report
-
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
-
The backend parses duplicate parameters by taking the last occurrence without rejecting duplicates.
-
The backend relied entirely on client-side state and did not independently verify the geofence and QR validation.
-
The backend relied on client-side validation and did not enforce the same rules.
Seen in 1 report
-
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
-
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
-
The backend trusted a client-supplied resetPassword parameter and client-side response state to drive the authentication flow.
Seen in 1 report
-
The backend trusted client-side verification state instead of checking authoritative records before sensitive operations.
-
The backend trusted client-supplied configuration values for upload limits instead of enforcing them server-side.
-
The backend trusted client-supplied passenger type, date of birth and seat offer identifier without re-validating them against the generated offer.
-
The backend trusted client-supplied price and total values and never compared them with catalogue prices.
Seen in 1 report
-
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
-
The backend trusted client-supplied redirect parameters indicating payment success instead of verifying the transaction with the gateway.
Seen in 1 report
-
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
-
The backend trusted the amount supplied by the client in the QR code instead of verifying it against the order.
Seen in 1 report
-
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
-
The backend trusted the client-supplied permission value without checking the subscription allowed that level.
Seen in 1 report
-
The backend trusted the frontend to enforce the paid-role restriction.
Seen in 1 report
-
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
-
The backend validated each line item independently instead of summing quantity per product SKU across lines.
Seen in 1 report
-
The backend validated only that the invite token was valid and unexpired without binding it to the invited email.
Seen in 1 report
-
The backend validated the source account balance but never verified that the account's asset matched the product being traded.
Seen in 1 report
-
The backend validates that quantity is an integer but does not enforce a minimum of one.
Seen in 1 report
-
The backend validation logic only checked passwords up to twelve characters and ignored longer ones.
Seen in 1 report
-
The backing manager sends RSR to the trader instead of directly to staking, so the distributor splits it.
-
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.
-
The bad debt check applies collateral and debt weights to the collateral ratio, pushing it below one even when liquidation is still profitable.
-
The bad debt check requires an empty collateral position but no minimum collateral size is enforced.
Seen in 1 report
-
The bad debt function did not reject the insurance account as the liquidated trader.
Seen in 1 report
-
The bad debt ratio is scaled by only one fixed-point factor instead of two, causing a unit mismatch.
Seen in 1 report
-
The bad ratio function reads raw storage instead of the getter that substitutes defaults.
Seen in 1 report
-
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.
-
The bad-debt ratio denominator included a balance a user could move with a deposit and withdraw around the claim.
Seen in 1 report
-
The bad-debt ratio uses a spot total-collateral figure that includes deposits not tied to any borrowing.
-
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
-
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
-
The balance calculation used Compound's cached exchange rate and Beta's unaccrued total loan figure instead of accruing first.
-
The balance change overwrites the fee offset without first crediting owed fees to unclaimed fees.
Seen in 1 report
-
The balance check after the trade compares only ETH balances and ignores WETH balances.
-
The balance check assumes the received amount equals the requested amount, which fails for fee-on-transfer tokens.
Seen in 1 report
-
The balance check assumes the swapped token differs from the borrowed token when they are always the same.
-
The balance check subtracts only amounts already claimed, not amounts already vested, so vested-but-unclaimed tokens count as transferable.
Seen in 1 report
-
The balance check was omitted from the deposit and withdraw paths that use the reserve-token-specified helper.
Seen in 1 report
-
The balance function counted only held tokens and omitted unclaimed rewards, so shares were minted against an understated total.
-
The balance function includes deposit pool assets not yet deposited and converts them at the current share price.
Seen in 1 report
-
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