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,651 to 4,700 of 5,700
  1. The sell limit uses the total bought amount without adjusting for steps already claimed, so previously bought tokens remain fully sellable later.

    Seen in 1 report
  2. The sell order's price is used as the fill price for same-block orders without a fair averaging mechanism, allowing block-producer manipulation.

    Seen in 1 report
  3. The sell penalty used pool reserves that are not updated on direct token transfers, so transfers pushing the price below the peg were not penalised.

    Seen in 1 report
  4. The seller referrer fee is computed inside a block gated on creator recipients existing or the sale being primary.

    Seen in 1 report
  5. The seller referrer fee is subtracted from revenue without checking it does not exceed that revenue.

    Seen in 1 report
  6. The seller's payment uses one rounding while each bidder's refund uses separate roundings, so payouts can exceed funds.

    Seen in 1 report
  7. The semicolon was treated as a parameter separator by the internal API but not by the web server, causing inconsistent parsing across components.

    Seen in 1 report
  8. The send amount was overwritten with the debited amount before computing the refund difference, making the difference always zero.

    Seen in 1 report
  9. The send function lacks the trade settlement logic that the transfer function has, so it bypasses payment.

    Seen in 1 report
  10. The send function lacks validation that maxFee and ttl are zero before calling the fee adapter.

    Seen in 1 report
  11. The send function uses global source-chain gas values instead of destination-specific values.

    Seen in 1 report
  12. The sender address check was commented out, so only memo parsing was validated.

    Seen in 1 report
  13. The sender did not track or queue owed tokens when its balance was insufficient.

    Seen in 1 report
  14. The sender identity for auto-response emails was selected from a random user record instead of the program's configured sender.

    Seen in 1 report
  15. The sender's health is asserted before the transfer but not re-checked after collateral is removed.

    Seen in 1 report
  16. The Senior redemption budget excludes the residual recapitalisation bucket, so a matured Senior head gets a zero budget and the no-progress check reverts the entire settlement.

    Seen in 1 report
  17. The sensitive joining link was included in the client-side cart or payment response instead of being withheld until payment was confirmed.

    Seen in 1 report
  18. The separate total staked counters are not updated when an address becomes a strategy or tokens move between strategy and non-strategy addresses.

    Seen in 1 report
  19. The sequence-number validity check rejected any transaction whose sequence number was not greater than the minimum, conflicting with the mempool's replacement logic.

    Seen in 1 report
  20. The server accepted a client-supplied access level for an invite without checking the caller's plan.

    Seen in 1 report
  21. The server accepted a client-supplied completion time because it never recorded when the session started.

    Seen in 1 report
  22. The server accepted a client-supplied parameter for SMS auto-fill content without validating or restricting it.

    Seen in 1 report
  23. The server accepted a client-supplied payment profile identifier without checking it belonged to the requesting rider or was valid.

    Seen in 1 report
  24. The server accepted a client-supplied shipping cost instead of recalculating it from its own data.

    Seen in 1 report
  25. The server accepted a negative quantity from the client and used it directly in the price calculation without checking it was a positive whole number.

    Seen in 1 report
  26. The server accepted any client-supplied package identifier without checking it was enabled for public purchase.

    Seen in 1 report
  27. The server accepted any valid package identifier without verifying it matched the price shown or was enabled for public purchase.

    Seen in 1 report
  28. The server accepted client-supplied license parameters and granted premium features before confirming payment.

    Seen in 1 report
  29. The server accepted client-supplied price and total fields without recalculating them from the product catalogue.

    Seen in 1 report
  30. The server accepted client-supplied price or quantity values without validating them against the real product price.

    Seen in 1 report
  31. The server accepted the CAPTCHA response without verifying it with the CAPTCHA service and lacked rate limiting.

    Seen in 1 report
  32. The server accepted the client-supplied payment method ID without verifying that it referred to a valid, existing payment method.

    Seen in 1 report
  33. The server accepted the order amount from the client request instead of recalculating the price from the selected package.

    Seen in 1 report
  34. The server accepted the plan name and payment amount from the client request without validating them against the user's selection or the real price.

    Seen in 1 report
  35. The server accepted the product price from the client request without validating it against the database price.

    Seen in 1 report
  36. The server accepted the signup request without verifying the captcha token with the captcha service or checking it was present.

    Seen in 1 report
  37. The server accepted user-supplied values for fields that were meant to be fixed in the email template, without validating or restricting them.

    Seen in 1 report
  38. The server accepts a negative fractional donation amount without requiring it to be zero or positive.

    Seen in 1 report
  39. The server accepts the payment amount from the client request without validating it against the expected price.

    Seen in 1 report
  40. The server accepts the price from the client request without validating it against the real price.

    Seen in 1 report
  41. The server awarded points on submitted answers without recording that the quiz attempt had already been rewarded.

    Seen in 1 report
  42. The server calculated the order total from client-supplied price and promotion parameters without validating them against product rules.

    Seen in 1 report
  43. The server checks that the code matches an issued code but not that it was consumed after a successful reset.

    Seen in 1 report
  44. The server credited the wallet using the amount from the client's post-payment request instead of fetching the verified amount from the gateway.

    Seen in 1 report
  45. The server decided whether to enforce the challenge based on the shape of submitted fields rather than a server-side token.

    Seen in 1 report
  46. The server decided whether to validate the CAPTCHA from a client-supplied boolean and the login endpoint had no rate limiting.

    Seen in 1 report
  47. The server did not check that the order ID was unique or that the payment was legitimate, and accepted arbitrary checksum and card values.

    Seen in 1 report
  48. The server did not check that the token amount was positive, so a negative value reversed the transaction.

    Seen in 1 report
  49. The server did not check the age-verification status when processing the setting update, relying only on the interface to prevent the change.

    Seen in 1 report
  50. The server did not check the invitee email array for duplicates and relied on a client-side check.

    Seen in 1 report