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,251 to 1,300 of 5,700
  1. Minting did not update the foreign reserve balance when native tokens were deposited.

    Seen in 1 report
  2. Minting logic uses the native value instead of the amount parameter, which is zero for ERC20 transfers.

    Seen in 1 report
  3. Minting trusted a caller-supplied size parameter without validating it against the size encoded in the token ID.

    Seen in 1 report
  4. mintSynth did not verify that the requested synth's underlying token matched the pool's own token.

    Seen in 1 report
  5. Missing state checks: the position is not verified as active before paying yield, and balance fields are not reset after withdrawal.

    Seen in 1 report
  6. There is missing validation that the recipient address is not the zero address in three functions.

    Seen in 1 report
  7. There is a missing verification check before allowing the Report Retest feature to be used on a program.

    Seen in 1 report
  8. Treasury and non-treasury token slices are mixed in a threshold comparison without a common percentage basis.

    Seen in 1 report
  9. moveQuoteToken lacks the bankruptcy condition check that removeQuoteToken performs.

    Seen in 1 report
  10. moveQuoteToken lacks the debt less than or equal to deposits check that removeQuoteToken has.

    Seen in 1 report
  11. MySQL truncated the string at the first character above the utf8 range, changing the stored address.

    Seen in 1 report
  12. Names were stored without normalising invisible whitespace while the frontend stripped it when rendering.

    Seen in 1 report
  13. Negative collateral is left unsocialised so total user collateral exceeds actual funds.

    Seen in 1 report
  14. Neither the wallet nor the card scheme validated the full relay-resistant protocol at their boundary.

    Seen in 1 report
  15. Net asset value depended on pool liquidity that any whitelisted borrower could reduce.

    Seen in 1 report
  16. netAssetDeposits was not adjusted for price changes between deposit and withdrawal.

    Seen in 1 report
  17. netAssetDeposits was not increased when quote tokens were deposited.

    Seen in 1 report
  18. New codes were stored without invalidating or expiring previously issued ones.

    Seen in 1 report
  19. New order IDs used the current index length instead of tracking freed IDs, so IDs collided after cancellation.

    Seen in 1 report
  20. New unstake amounts are aggregated into an existing cooldown entry and the end time is reset for the entire amount.

    Seen in 1 report
  21. New validators start with a base score equal to the total number of proposals rather than zero.

    Seen in 1 report
  22. There is no access control on the notify function to stop calls while a reward period is already running.

    Seen in 1 report
  23. No accounting or withdrawal logic exists for yield accrued by stored tokens.

    Seen in 1 report
  24. No commission checkpoint is created when a validator is added, so reward logic falls back to the current rate for periods before the first checkpoint.

    Seen in 1 report
  25. No commission checkpoint is created when a validator is added, so the fallback lookup returns the current commission for the initial interval.

    Seen in 1 report
  26. No deposit or withdrawal fee prevents holders from exiting and re-entering around a known loss event.

    Seen in 1 report
  27. No events are defined or emitted for rejected median updates or critical settings changes.

    Seen in 1 report
  28. No function removes pools or lowers allocation points, so total allocation only grows.

    Seen in 1 report
  29. There is no limit on how often the forgot-username request can be made from the same user or address.

    Seen in 1 report
  30. No lower bound is enforced on the price signature timestamp, so old signatures can be reused.

    Seen in 1 report
  31. No maximum quantity, stock, per-user limit or final price check was enforced before payment.

    Seen in 1 report
  32. No mechanism detects destination-chain call failures, so burned tokens are not refunded.

    Seen in 1 report
  33. No minimum initial deposit or cap on the points multiplier allowed the points-per-unit value to be inflated until multiplications overflowed.

    Seen in 1 report
  34. No minimum opened price is enforced for long limit orders, allowing a zero price that unlocks all locked values.

    Seen in 1 report
  35. There is no minimum vote threshold for a proposal to enter the final slate.

    Seen in 1 report
  36. No order is defined between escape and heal, and heal requires active agents above a threshold.

    Seen in 1 report
  37. No password strength or complexity rules were enforced when changing a password.

    Seen in 1 report
  38. There is no per-account or per-IP throttling, so repeated POST requests each triggered a new email.

    Seen in 1 report
  39. No per-user or per-IP limit was enforced on resending verification or password reset codes.

    Seen in 1 report
  40. There is no rate limit or cooldown on the rebalance function, so the slippage tolerance can be exploited many times in a single transaction.

    Seen in 1 report
  41. There is no rate limit or restriction on changing the birthdate, allowing unlimited updates.

    Seen in 1 report
  42. No rate-limiting mechanism was implemented on the account creation and forgot password endpoints.

    Seen in 1 report
  43. There is no server-side cap on coupons per order, no per-user redemption limit and no cross-session check of prior redemptions.

    Seen in 1 report
  44. There is no snapshot of voter balance at vote time, so clearing subtracts weight using the current balance.

    Seen in 1 report
  45. No withdrawal path exists for users, leaving the guardian as the only party able to free funds.

    Seen in 1 report
  46. Non-deterministic ranges such as map iteration were used in synthesis, so nodes computed different results.

    Seen in 1 report
  47. The non-final claim cap does not guarantee the vested unpaid amount is zero or above the minimum payout.

    Seen in 1 report
  48. The code does not check that the destination bucket is bankrupt before updating its deposit time.

    Seen in 1 report
  49. Nullification logic sets final TVL to zero without a path to return allocated emissions to the treasury.

    Seen in 1 report
  50. Observer code only compares the top-level transaction recipient to the TSS address and ignores internal transactions.

    Seen in 1 report