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,901 to 4,950 of 5,700
  1. The settlement subtracts the buyer's fee from the payment to the seller instead of charging it to the buyer.

    Seen in 1 report
  2. The settlement threshold is public and the vault allows withdrawals at any time, so providers can time exits.

    Seen in 1 report
  3. The settlement's set-required-validators function does not call the corresponding function in the signature verifier.

    Seen in 1 report
  4. The setToProcessGroups function did not clear the elected accounts array after processing.

    Seen in 1 report
  5. The setWorkAddress function was missing a require statement that would reject the caller's own address as the work address.

    Seen in 1 report
  6. The share balance is multiplied by the token-per-share rate instead of divided by it, inverting the conversion.

    Seen in 1 report
  7. The share balance is passed to a function expecting an asset amount, ignoring the vault's share-to-asset exchange rate.

    Seen in 1 report
  8. The share calculation does not handle the case where shares to burn round down to zero.

    Seen in 1 report
  9. The share calculation skips updating the global integral when total staked is zero, so the first deposit does not initialise reward accounting.

    Seen in 1 report
  10. The share calculation used the initial Ether balance and never decremented it.

    Seen in 1 report
  11. The share calculation uses current total assets without protecting against a first depositor inflating the share price via a large donation.

    Seen in 1 report
  12. The share calculation uses integer division without a virtual offset, allowing the share price to be inflated and rounding down to zero.

    Seen in 1 report
  13. The share calculation uses the current underlying balance without accounting for losses.

    Seen in 1 report
  14. The share conversion divides by total assets plus one, so a zero-asset pool collapses the denominator to one and mints unbounded shares.

    Seen in 1 report
  15. The share endpoint accepted name and email parameters from any user with share access and did not prevent re-adding an existing owner with a lower role.

    Seen in 1 report
  16. The share exchange rate is recalculated after locked funds are subtracted from the pool's underlying total, so repeated lock events drive the rate towards zero and cause share minting to explode.

    Seen in 1 report
  17. The share lock was applied to the immediate caller (the proxy) rather than the final recipient, so the proxy could not transfer the shares on.

    Seen in 1 report
  18. The share parameter is accepted without validation against the debited amount and overrides the amount on the destination chain.

    Seen in 1 report
  19. The share price for base liquidity providers uses the raw pool total without subtracting bad debt that exceeds the safety module balance.

    Seen in 1 report
  20. The share price is total funds divided by total supply, and trading fees reduce total funds without adjusting the share accounting.

    Seen in 1 report
  21. The share price is updated only when donations occur, allowing an attacker to buy shares just before a donation and redeem just after.

    Seen in 1 report
  22. The share redemption during restake reduced stake shares but not the owner's address shares.

    Seen in 1 report
  23. The share removal helper lacks a check that reverts when it cannot remove all requested shares.

    Seen in 1 report
  24. The share-report email template did not include a warning that the report is from a sandbox.

    Seen in 1 report
  25. The share-to-asset ratio was updated only at the moment of loss socialisation, so an earlier withdrawal escaped the loss.

    Seen in 1 report
  26. The shareholder-setting function does not verify that accounts are unique.

    Seen in 1 report
  27. The short-side reserve calculation used open interest in USD without adjusting for the collateral token price.

    Seen in 1 report
  28. The shutdown function did not disable the savings contract, so interest kept accruing after the final rate was set.

    Seen in 1 report
  29. The shutdown function does not check the success of the withdraw-all call before setting the shutdown flag.

    Seen in 1 report
  30. The shutdown vote count is not reset to zero when a collection is shut down.

    Seen in 1 report
  31. The sides limit was enforced only in client-side JavaScript.

    Seen in 1 report
  32. The sign-up flow did not validate the email domain and did not require email confirmation before granting an authenticated session.

    Seen in 1 report
  33. The sign-up flow does not block or verify against disposable email domains, so confirmation emails can be received in temporary inboxes.

    Seen in 1 report
  34. The sign-up form did not validate the phone number length and truncated longer inputs to 10 digits before sending the verification code.

    Seen in 1 report
  35. The signature covered a delimiter-free concatenation of field names and values, so field boundaries could be shifted.

    Seen in 1 report
  36. The signature covers both arrays but the processing loop iterates only over the loan ID array length.

    Seen in 1 report
  37. The signature covers only the request path and counter, not the body, and the replay counter resets to zero on startup.

    Seen in 1 report
  38. The signature did not bind the swap data to a specific borrower's borrowing index, allowing reuse.

    Seen in 1 report
  39. The signature is checked against a computed ID but the stored blob ID is never compared with that computed ID.

    Seen in 1 report
  40. The signature loop counts every valid signature without tracking which validator produced it.

    Seen in 1 report
  41. The signature over the profit value was not bound to a specific user or deposit index, so valid values could be replayed.

    Seen in 1 report
  42. The signature validation omits the vault address and strategy version from the encoded data, so the same signature remains valid for different vaults.

    Seen in 1 report
  43. The signature was computed over concatenated parameter values without delimiters, so shifting characters between fields kept it valid.

    Seen in 1 report
  44. The signed credit structure has no deadline or nonce, so signatures remain valid indefinitely.

    Seen in 1 report
  45. The signed credit structure omits the marketplace address, so signatures are not bound to a marketplace.

    Seen in 1 report
  46. The signed customer payload does not include a rules version or hash, so current rules apply at execution time.

    Seen in 1 report
  47. The signed label was derived from the normalised name while the UI displayed the raw name, so transform-class labels produced a different labelhash.

    Seen in 1 report
  48. The signed message did not include the caller's address, so a valid signature could be reused by anyone.

    Seen in 1 report
  49. The signed message omitted any maximum bond amount, so the signature did not bind the financial terms the operator agreed to.

    Seen in 1 report
  50. The signed recovery message contains only the account ID and new encryption key, with no version, nonce or timestamp, and no freshness check.

    Seen in 1 report