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.
-
The parser decoded the recipient principal but omitted validation that it starts with the expected prefix.
-
The parser did not strip trailing optional whitespace from header values as the specification requires.
Seen in 1 report
-
The parser failed to interpret truncated argument data that older solc-compiled contracts accept by zero-padding, falling back to a generic display.
-
The parser merged attributes from duplicate html or body tags without applying the checks that hide nonce attributes.
Seen in 1 report
-
The parser only checks a minimum length and does not reject values longer than twenty bytes.
Seen in 1 report
-
The parser treated legacy octal literals with digits 8 or 9 as decimal instead of rejecting them.
-
The partial emergency liquidation path does not update the loan's rate accumulator.
-
The partial fill quote amount was a proportional share of total input rather than the actual amount paid minus refund.
Seen in 1 report
-
The partial liquidation logic does not account for the liquidation bonus reducing the collateral ratio below the full-liquidation threshold.
-
The partial transfer path lacks the account-registration call that the normal transfer path performs for the receiver.
-
The partial-close release cap uses equity minus maintenance minus one atom instead of the stricter initial-margin threshold used by the withdraw path.
-
The pass threshold is read from global storage at vote-check time instead of being cached per proposal.
-
The passive order sizing formula used the initial quote reserve divided by price instead of the square root of the invariant divided by price.
-
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
-
The password change endpoint does not check that the request is fresh and tied to the current session.
Seen in 1 report
-
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
-
The password check relies on a client-side cookie holding an unsalted hash and enforces no rate limit.
-
The password policy was enforced only in the browser interface, not on the server.
Seen in 1 report
-
The password recovery endpoint lacked any throttling or rate limit.
Seen in 1 report
-
The password reset endpoint did not enforce any rate limiting or throttling on incoming requests.
Seen in 1 report
-
The password reset endpoint implemented no rate limiting or throttling.
Seen in 1 report
-
The password reset endpoint lacked server-side rate limiting or throttling.
Seen in 1 report
-
The password submission endpoint lacks rate limiting or lockout.
Seen in 1 report
-
The path builder validates only the first hop of a two-hop swap and assumes the second pool exists.
Seen in 1 report
-
The pause and whitelist guard uses a boolean expression that rejects every transfer while paused, including whitelisted senders.
Seen in 1 report
-
The pause blocked the only function that could use a time-limited payment proof.
Seen in 1 report
-
The pause blocks margin additions but not liquidations, and there is no grace period after unpausing.
Seen in 1 report
-
The pause check is applied to the price setter but not the price reader.
Seen in 1 report
-
The pause check trusts a caller-supplied principal value without verifying it matches the principal actually used.
Seen in 1 report
-
The pause flag is checked only in user-facing entry points while the interest accrual path computes the borrow index purely from timestamps.
-
The pause only blocks message relay while sending remains callable, so incoming deposits revert without saving replay information.
-
The pause state was checked in the proper-game check but not in the dispute entry points.
Seen in 1 report
-
The pause takes effect immediately and blocks functions that return funds to users.
-
The payable adapter forwards a caller-supplied value without checking it equals the ETH sent.
Seen in 1 report
-
The payload type parameter is not included in the message hash that is signed, so its value is not authenticated.
-
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
-
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
-
The payment amount was taken from a client-side response without server-side validation.
Seen in 1 report
-
The payment and licence revocation logic did not link invoice generation, refunds and premium content licences to successful payment.
Seen in 1 report
-
The payment API accepts a client-supplied amount without validating it against the actual outstanding balance before reactivating the account.
-
The payment app and bank do not properly confirm the final transaction status, so a lost message leaves inconsistent states.
Seen in 1 report
-
The payment call was retried without an idempotency key, so a lost response led to a second charge.
Seen in 1 report
-
The payment gateway reported transaction status to the platform without authentication, so anyone could forge the update.
Seen in 1 report
-
The payment handler returned early when the dont-mint flag was set, skipping the code that updates the payer's credit balance.
-
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
-
The payment integration was left in test mode or did not verify the actual transaction status of the card.
Seen in 1 report
-
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
-
The payment loop uses the original array length while the deletion function compresses the array during iteration.
-
The payment routine assigns the total owed back into the principal field instead of tracking accrued interest separately.
Seen in 1 report
-
The payment routine transfers the caller-supplied amount without capping it at the lien's outstanding balance.
Seen in 1 report