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 4,951 to 5,000 of 5,700
  1. The signed request struct and execution logic omit a deadline field, so stale requests remain valid.

    Seen in 1 report
  2. 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
  3. The signer did not check whether a requested contract call had already been executed before signing.

    Seen in 1 report
  4. 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
  5. The signing code only packs the whitelist function and has no call for the unwhitelist command.

    Seen in 1 report
  6. The signing confirmation reuses the portfolio balance-privacy display preference to format a security-critical transaction amount.

    Seen in 1 report
  7. The signing path never verifies that the claimed change address belongs to the signing wallet.

    Seen in 1 report
  8. 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
  9. The signup endpoint had no rate limiting or abuse prevention controls.

    Seen in 1 report
  10. The signup endpoint has no rate limiting, so responses reveal whether an email exists.

    Seen in 1 report
  11. The signup endpoint trusted a client-supplied email parameter instead of the email from the OAuth token.

    Seen in 1 report
  12. 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
  13. 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
  14. The signup flow marked an email as taken as soon as an unconfirmed account was created rather than after verification.

    Seen in 1 report
  15. The signup flow trusted client-side onboarding data and did not bind the verification code to the email being verified.

    Seen in 1 report
  16. 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
  17. The signup form had no check preventing the password from matching the email address.

    Seen in 1 report
  18. The simulator did not reject calls where the recipient was its own address, so it re-entered and read corrupted parameters.

    Seen in 1 report
  19. 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
  20. 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
  21. The site stored only one wallet connection state and did not handle a second connection, invalidating both.

    Seen in 1 report
  22. The size limit was checked against a client-provided length value instead of the actual uploaded data size.

    Seen in 1 report
  23. The slash amount used the minipool's full duration instead of the reward cycle, overestimating missed rewards.

    Seen in 1 report
  24. 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
  25. The slash branch uses a strict less-than comparison, so a cooldown maturing exactly at the slash timestamp is treated as not matured.

    Seen in 1 report
  26. The slash function uses the pool's minimum threshold as the slash amount instead of calculating the tokens needed to cover the remaining penalty.

    Seen in 1 report
  27. 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
  28. The slashing function only accepts active validators, so marking a validator inactive removes it from the slashable set.

    Seen in 1 report
  29. 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
  30. 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
  31. 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
  32. 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.

    Seen in 1 report
  33. 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
  34. The slippage fee multiplies a per-region base fee by the number of size regions without any maximum cap.

    Seen in 1 report
  35. 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
  36. The slippage limit is calculated by subtracting an extra one percent from the user's specified amount.

    Seen in 1 report
  37. 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
  38. The slippage minimum is derived from the virtual price amount even though the actual single-coin amount is higher.

    Seen in 1 report
  39. The slippage parameter applied only to the liquidity pool withdrawal, not to the final amount after oracle-based skimming.

    Seen in 1 report
  40. The slippage setting is only written in the constructor and has no setter, so it cannot adapt to market conditions.

    Seen in 1 report
  41. 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
  42. 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
  43. The SMS template used for OTP delivery was not sanitised, allowing user-controlled input to alter the message content.

    Seen in 1 report
  44. The SMS-to-chat path did not apply the same block-list check as the in-app messaging path.

    Seen in 1 report
  45. 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
  46. The social login flow did not match the returned email against existing accounts and always routed unknown logins to registration.

    Seen in 1 report
  47. 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
  48. The Solidity wrapper declared five parameters while the Stylus function accepted three, causing an ABI mismatch.

    Seen in 1 report
  49. The solvency calculation applies the collateralization rate to the share rather than converting to an amount first.

    Seen in 1 report