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,801 to 1,850 of 5,700
  1. The application trusted a client-supplied step parameter to decide which verification was completed without binding the code to the correct step.

    Seen in 1 report
  2. The application trusted a client-supplied success callback without verifying authenticity or payment status.

    Seen in 1 report
  3. The application trusted a client-supplied X-Forwarded-For header and mishandled duplicate headers.

    Seen in 1 report
  4. The application trusted a user-controlled return parameter for the post-verification destination and did not confirm password verification had completed.

    Seen in 1 report
  5. The application trusted client-controlled localStorage to enforce a voting limit that should have been enforced server-side.

    Seen in 1 report
  6. The application trusted client-side checks and client-supplied responses for security decisions.

    Seen in 1 report
  7. The application trusted client-submitted account statistics instead of recalculating them server-side before the credit review.

    Seen in 1 report
  8. The application trusted client-supplied forwarding headers to identify the client IP for rate limiting without validating them.

    Seen in 1 report
  9. The application trusted client-supplied payment and recharge amounts without checking they matched.

    Seen in 1 report
  10. The application trusted the client-supplied X-Forwarded-For header for rate limiting and geo-based access decisions.

    Seen in 1 report
  11. The application trusted the forwarded-for header without validating it came from a trusted proxy.

    Seen in 1 report
  12. The application trusted the updated plan without checking the invoice payment status, relying on a payment provider default that applies changes on failed payment.

    Seen in 1 report
  13. The application trusts a client-side boolean flag for CAPTCHA completion instead of validating the token server-side.

    Seen in 1 report
  14. The application trusts a client-supplied forwarding header to identify the client IP for rate limiting.

    Seen in 1 report
  15. The application trusts a client-supplied price parameter instead of looking up the price server-side from a product identifier.

    Seen in 1 report
  16. The application trusts the client-supplied X-Forwarded-For header for rate limiting instead of the connection IP or a trusted proxy configuration.

    Seen in 1 report
  17. The applications performed critical calculations and validations on the client side and did not verify them on the server.

    Seen in 1 report
  18. The applyCover function does not verify that the market is in a Trading state before allowing the owner to apply coverage.

    Seen in 1 report
  19. The approval calldata commits only to the incident ID, not to the specific assessment round or loss schedule reviewed.

    Seen in 1 report
  20. The approval check returned early when caller and account were the same address, skipping the check that the caller was an approved collateralizable contract.

    Seen in 1 report
  21. The approval event hooks omit the owner parameter, so listeners cannot tell who initiated the approval.

    Seen in 1 report
  22. The approval function took only an incident id and read the mutable current round at execution, so the signed transaction did not bind to the reviewed round.

    Seen in 1 report
  23. The approval helper called approve directly without first setting the allowance to zero.

    Seen in 1 report
  24. The approval is granted before checking whether there are deposits to burn.

    Seen in 1 report
  25. The approval status is set by client-side validation without the server enforcing the same check.

    Seen in 1 report
  26. The approval status UI does not account for the author also being an approver.

    Seen in 1 report
  27. The approve function only checks the token owner and ignores approved operators.

    Seen in 1 report
  28. The approve function returned early when the amount equalled the maximum instead of always updating the allowance.

    Seen in 1 report
  29. The approve helper sets the allowance to the maximum without first resetting it to zero.

    Seen in 1 report
  30. The approveUSDPrice function does not check whether the caller has already disapproved the same proposal, allowing both actions.

    Seen in 1 report
  31. The APR function does not check whether locked profit is zero before calculating from the stored vesting profit.

    Seen in 1 report
  32. The arbitrary call reverted when the target token had a non-zero incentive balance, which anyone could set.

    Seen in 1 report
  33. The archive wrapper was initialised without specific file arguments, so a literal wildcard entry matched and triggered an early-exit optimisation.

    Seen in 1 report
  34. The arctan approximation omitted absolute value operations, giving wrong results for negative inputs.

    Seen in 1 report
  35. The arguments in the function call were passed in the wrong order: the borrowing factor and position size were swapped relative to the function signature.

    Seen in 1 report
  36. The arguments to the before-transfer hook are swapped in the burn function.

    Seen in 1 report
  37. The arguments to the pool swap call were swapped.

    Seen in 1 report
  38. The arguments to the swap maths function were mixed up, so the first swap used the wrong pool's reserves.

    Seen in 1 report
  39. The arming path after parent fill does not re-run protection price validation against the post-fill mark, unlike the standalone create path.

    Seen in 1 report
  40. The assessState function is publicly callable, allowing an attacker to control the timing of the snapshot that determines who can claim unlocked capital.

    Seen in 1 report
  41. The asset price returns a zero low price on oracle timeout and rebalancing uses it without a fallback.

    Seen in 1 report
  42. The asset registry and withdrawal queue are not updated when shares are queued for exit.

    Seen in 1 report
  43. The asset selection skips troves below the minimum ratio, so the lowest healthy trove is picked instead of the overall riskiest.

    Seen in 1 report
  44. The assignment to the Senior high-water mark is unconditional, so a later partial recapitalisation replaces the larger original recovery target with the smaller residual.

    Seen in 1 report
  45. The asymmetric deposit fee calculation applied only the swap fee rate to the virtual swap and omitted the taker fee.

    Seen in 1 report
  46. The async swapper is invoked with a regular external call instead of a delegatecall, so it cannot operate on the caller's tokens.

    Seen in 1 report
  47. The attachment filter did not normalise or validate file extensions containing special characters.

    Seen in 1 report
  48. The attribution logic adds only positive VPI to prior charges and ignores negative VPI, so a netted rebate is mistaken for uncollected spread.

    Seen in 1 report
  49. The auction accepted the highest bid without any minimum price.

    Seen in 1 report
  50. The auction allowed the price to reach zero and did not handle tokens that revert on zero-value transfers.

    Seen in 1 report