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 3,951 to 4,000 of 5,700
  1. The parser decoded the recipient principal but omitted validation that it starts with the expected prefix.

    Seen in 1 report
  2. The parser did not strip trailing optional whitespace from header values as the specification requires.

    Seen in 1 report
  3. The parser failed to interpret truncated argument data that older solc-compiled contracts accept by zero-padding, falling back to a generic display.

    Seen in 1 report
  4. The parser merged attributes from duplicate html or body tags without applying the checks that hide nonce attributes.

    Seen in 1 report
  5. The parser only checks a minimum length and does not reject values longer than twenty bytes.

    Seen in 1 report
  6. The parser treated legacy octal literals with digits 8 or 9 as decimal instead of rejecting them.

    Seen in 1 report
  7. The partial emergency liquidation path does not update the loan's rate accumulator.

    Seen in 1 report
  8. The partial fill quote amount was a proportional share of total input rather than the actual amount paid minus refund.

    Seen in 1 report
  9. The partial liquidation logic does not account for the liquidation bonus reducing the collateral ratio below the full-liquidation threshold.

    Seen in 1 report
  10. The partial transfer path lacks the account-registration call that the normal transfer path performs for the receiver.

    Seen in 1 report
  11. The partial-close release cap uses equity minus maintenance minus one atom instead of the stricter initial-margin threshold used by the withdraw path.

    Seen in 1 report
  12. The pass threshold is read from global storage at vote-check time instead of being cached per proposal.

    Seen in 1 report
  13. The passive order sizing formula used the initial quote reserve divided by price instead of the square root of the invariant divided by price.

    Seen in 1 report
  14. The password change endpoint did not apply the same complexity validation that is used when an account is created or when an administrator sets a password.

    Seen in 1 report
  15. The password change endpoint does not check that the request is fresh and tied to the current session.

    Seen in 1 report
  16. The password change form did not check that the new password differs from the current one and enforced no complexity rules.

    Seen in 1 report
  17. The password check relies on a client-side cookie holding an unsalted hash and enforces no rate limit.

    Seen in 1 report
  18. The password policy was enforced only in the browser interface, not on the server.

    Seen in 1 report
  19. The password recovery endpoint lacked any throttling or rate limit.

    Seen in 1 report
  20. The password reset endpoint did not enforce any rate limiting or throttling on incoming requests.

    Seen in 1 report
  21. The password reset endpoint implemented no rate limiting or throttling.

    Seen in 1 report
  22. The password reset endpoint lacked server-side rate limiting or throttling.

    Seen in 1 report
  23. The password submission endpoint lacks rate limiting or lockout.

    Seen in 1 report
  24. The path builder validates only the first hop of a two-hop swap and assumes the second pool exists.

    Seen in 1 report
  25. The pause and whitelist guard uses a boolean expression that rejects every transfer while paused, including whitelisted senders.

    Seen in 1 report
  26. The pause blocked the only function that could use a time-limited payment proof.

    Seen in 1 report
  27. The pause blocks margin additions but not liquidations, and there is no grace period after unpausing.

    Seen in 1 report
  28. The pause check is applied to the price setter but not the price reader.

    Seen in 1 report
  29. The pause check trusts a caller-supplied principal value without verifying it matches the principal actually used.

    Seen in 1 report
  30. The pause flag is checked only in user-facing entry points while the interest accrual path computes the borrow index purely from timestamps.

    Seen in 1 report
  31. The pause only blocks message relay while sending remains callable, so incoming deposits revert without saving replay information.

    Seen in 1 report
  32. The pause state was checked in the proper-game check but not in the dispute entry points.

    Seen in 1 report
  33. The pause takes effect immediately and blocks functions that return funds to users.

    Seen in 1 report
  34. The payable adapter forwards a caller-supplied value without checking it equals the ETH sent.

    Seen in 1 report
  35. The payload type parameter is not included in the message hash that is signed, so its value is not authenticated.

    Seen in 1 report
  36. The paymaster's validation function does not track whether a signature has already been used, and the sender contract can be upgraded to bypass nonce checks.

    Seen in 1 report
  37. The payment amount was fixed in a token at creation but the item count was read from the mutable order after payment.

    Seen in 1 report
  38. The payment amount was taken from a client-side response without server-side validation.

    Seen in 1 report
  39. The payment and licence revocation logic did not link invoice generation, refunds and premium content licences to successful payment.

    Seen in 1 report
  40. The payment API accepts a client-supplied amount without validating it against the actual outstanding balance before reactivating the account.

    Seen in 1 report
  41. The payment app and bank do not properly confirm the final transaction status, so a lost message leaves inconsistent states.

    Seen in 1 report
  42. The payment call was retried without an idempotency key, so a lost response led to a second charge.

    Seen in 1 report
  43. The payment gateway reported transaction status to the platform without authentication, so anyone could forge the update.

    Seen in 1 report
  44. The payment handler returned early when the dont-mint flag was set, skipping the code that updates the payer's credit balance.

    Seen in 1 report
  45. The payment handler trusted the beneficiary field and added the payment to that beneficiary's credit without checking the payer was the beneficiary.

    Seen in 1 report
  46. The payment integration was left in test mode or did not verify the actual transaction status of the card.

    Seen in 1 report
  47. The payment loop does not subtract each paid amount from the remaining payment, so the full amount is passed to the first lien.

    Seen in 1 report
  48. The payment loop uses the original array length while the deletion function compresses the array during iteration.

    Seen in 1 report
  49. The payment routine assigns the total owed back into the principal field instead of tracking accrued interest separately.

    Seen in 1 report
  50. The payment routine transfers the caller-supplied amount without capping it at the lien's outstanding balance.

    Seen in 1 report