Skip to content

In-depth lesson · Business logic

Typical fixes

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 401 to 427 of 427
  1. Use the same withdrawal fee formula in the withdraw function and the preview function.

    Seen in 1 report
  2. Use unpredictable codes and rate limit code entry.

    Seen in 1 report
  3. Validate that the bid amount equals the listed price and restrict the recipient.

    Seen in 1 report
  4. Validate that the permitted_roles parameter contains a known, valid role ID.

    Seen in 1 report
  5. Validate that the provided increases are reasonable relative to the pool's state.

    Seen in 1 report
  6. Validate that the recipient address is not the zero address.

    Seen in 1 report
  7. Validate the amount as a number before it reaches the transfer model and reject UI-only sentinels from external input.

    Seen in 1 report
  8. Validate the captcha cookie value and tie it to a solved challenge.

    Seen in 1 report
  9. Validate the interest to pay specified by the caller.

    Seen in 1 report
  10. Validate the payment source before delivering the gift.

    Seen in 1 report
  11. Validate username characters on the server, not only in the browser.

    Seen in 1 report
  12. Verify a successful payment server-side before crediting a balance, and ignore client-supplied amount and threshold.

    Seen in 1 report
  13. Verify ownership of the channel and use a single server-side source for the channel identifier.

    Seen in 1 report
  14. Verify payment succeeded and that the plan is valid for the user before activating.

    Seen in 1 report
  15. Verify promo code validity server-side and keep the signup state on the server rather than trusting the response.

    Seen in 1 report
  16. Verify server-side that the user is entitled to the domain through purchase or ownership before attaching it.

    Seen in 1 report
  17. Verify that submitted scripts match the referenced Bitcoin transaction scripts.

    Seen in 1 report
  18. Verify that the claimed change address belongs to the signing wallet before signing.

    Seen in 1 report
  19. Verify that the initial depositor is the caller.

    Seen in 1 report
  20. Verify that the market is in a Trading state before applying coverage.

    Seen in 1 report
  21. Verify that the source account's asset matches the asset being traded.

    Seen in 1 report
  22. Verify the paid subscription server-side before storing the custom field.

    Seen in 1 report
  23. Verify the triggering pool is the officially listed pool before crediting rewards.

    Seen in 1 report
  24. Verify the user's entitlement or payment before granting a paid tier.

    Seen in 1 report
  25. Whitelist which fields the client may set and keep pricing fields server-owned.

    Seen in 1 report
  26. Withdraw remaining assets from the old dispatcher before revoking its allowance.

    Seen in 1 report