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 signed request struct and execution logic omit a deadline field, so stale requests remain valid.
Seen in 1 report
-
The signed scope is re-derived from the display list with a first-match lookup whose empty fallback means root scope.
Seen in 1 report
-
The signer did not check whether a requested contract call had already been executed before signing.
-
The signer object used to read the public key was created before the rotation, so it still referred to the old key material.
Seen in 1 report
-
The signing code only packs the whitelist function and has no call for the unwhitelist command.
Seen in 1 report
-
The signing confirmation reuses the portfolio balance-privacy display preference to format a security-critical transaction amount.
-
The signing path never verifies that the claimed change address belongs to the signing wallet.
-
The signup endpoint had no check for existing subscribers or previously issued coupons, and no rate limiting or anti-automation control.
Seen in 1 report
-
The signup endpoint had no rate limiting or abuse prevention controls.
Seen in 1 report
-
The signup endpoint has no rate limiting, so responses reveal whether an email exists.
Seen in 1 report
-
The signup endpoint trusted a client-supplied email parameter instead of the email from the OAuth token.
Seen in 1 report
-
The signup endpoint trusted client-supplied options for the welcome email template, including the example API URL and contact URL, instead of using fixed server-side values.
Seen in 1 report
-
The signup flow compared email addresses case-sensitively instead of normalising them, so a differently-capitalised variant was accepted as a new account.
Seen in 1 report
-
The signup flow marked an email as taken as soon as an unconfirmed account was created rather than after verification.
Seen in 1 report
-
The signup flow trusted client-side onboarding data and did not bind the verification code to the email being verified.
Seen in 1 report
-
The signup flow trusts the email domain to assign staff privileges instead of verifying the address or a real staff record.
Seen in 1 report
-
The signup form had no check preventing the password from matching the email address.
Seen in 1 report
-
The simulator did not reject calls where the recipient was its own address, so it re-entered and read corrupted parameters.
-
The site hard-coded an app store link to a package that was never published or had been removed, shown only to Android user agents.
Seen in 1 report
-
The site marked an email as registered before it was confirmed and did not require confirmation to keep the account active.
Seen in 1 report
-
The site stored only one wallet connection state and did not handle a second connection, invalidating both.
Seen in 1 report
-
The size limit was checked against a client-provided length value instead of the actual uploaded data size.
Seen in 1 report
-
The slash amount is computed from total assets without excluding withdrawals past the slashing window.
-
The slash amount used the minipool's full duration instead of the reward cycle, overestimating missed rewards.
-
The slash amount was computed from duration and price without checking it against the operator's actual staked balance, so an underflow reverted the slash.
Seen in 1 report
-
The slash branch uses a strict less-than comparison, so a cooldown maturing exactly at the slash timestamp is treated as not matured.
-
The slash function uses the pool's minimum threshold as the slash amount instead of calculating the tokens needed to cover the remaining penalty.
-
The slash timestamp was set to the later of the last borrow time or the last epoch start, letting an agent reset the slashable window.
Seen in 1 report
-
The slashing function only accepts active validators, so marking a validator inactive removes it from the slashable set.
Seen in 1 report
-
The slice lengths passed to the byte-to-integer conversions were wrong: 32 instead of 12 for duration and the remaining length instead of 32 for amount.
Seen in 1 report
-
The slippage check compared the current price against a stale average while the cumulative weight grew without bound, so the average could never catch up.
Seen in 1 report
-
The slippage check compares the user's rate limit against the post-trade implied rate instead of the interest rate actually used for the trade.
Seen in 1 report
-
Medium
-
-
The slippage check only applied to the PnL token output, so when the swap failed and collateral was returned directly, no slippage protection was applied to that collateral amount.
-
The slippage check used a linear ratio of summed balances to token supply instead of computing the stableswap invariant before and after.
Seen in 1 report
-
The slippage fee multiplies a per-region base fee by the number of size regions without any maximum cap.
Seen in 1 report
-
The slippage limit check was only applied when dynamic slippage was enabled, leaving the non-dynamic path without any bound on the slippage value.
Seen in 1 report
-
The slippage limit is calculated by subtracting an extra one percent from the user's specified amount.
Seen in 1 report
-
The slippage limit is calculated from the asset amount instead of the share amount, setting the minimum returned shares too low.
Seen in 1 report
-
The slippage minimum is derived from the virtual price amount even though the actual single-coin amount is higher.
Seen in 1 report
-
The slippage parameter applied only to the liquidity pool withdrawal, not to the final amount after oracle-based skimming.
-
The slippage setting is only written in the constructor and has no setter, so it cannot adapt to market conditions.
Seen in 1 report
-
The slippage-protected minimum output is taken from a same-transaction quote, so it reflects any manipulation already in the pool.
Seen in 1 report
-
The slot-limit check tests only the collateral flag instead of whether the reserve is already active through collateral or borrowing.
Seen in 1 report
-
Medium
-
-
The SMS template used for OTP delivery was not sanitised, allowing user-controlled input to alter the message content.
-
The SMS-to-chat path did not apply the same block-list check as the in-app messaging path.
Seen in 1 report
-
The snapshot function updated the APR and APY fields but did not write the new value back to the field the getter reads.
Seen in 1 report
-
The social login flow did not match the returned email against existing accounts and always routed unknown logins to registration.
Seen in 1 report
-
The Solana gateway's RevertOptions struct defined abort_address as a Solana Pubkey instead of a 20-byte EVM address, causing an incorrect conversion when the abort was processed on ZetaChain.
Seen in 1 report
-
The Solidity wrapper declared five parameters while the Stylus function accepted three, causing an ABI mismatch.
-
The solvency calculation applies the collateralization rate to the share rather than converting to an amount first.