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 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
-
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
-
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
-
The seller referrer fee is computed inside a block gated on creator recipients existing or the sale being primary.
Seen in 1 report
-
The seller referrer fee is subtracted from revenue without checking it does not exceed that revenue.
Seen in 1 report
-
The seller's payment uses one rounding while each bidder's refund uses separate roundings, so payouts can exceed funds.
-
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
-
The send amount was overwritten with the debited amount before computing the refund difference, making the difference always zero.
Seen in 1 report
-
The send function lacks the trade settlement logic that the transfer function has, so it bypasses payment.
-
The send function lacks validation that maxFee and ttl are zero before calling the fee adapter.
Seen in 1 report
-
The send function uses global source-chain gas values instead of destination-specific values.
Seen in 1 report
-
The sender address check was commented out, so only memo parsing was validated.
Seen in 1 report
-
The sender did not track or queue owed tokens when its balance was insufficient.
Seen in 1 report
-
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
-
The sender's health is asserted before the transfer but not re-checked after collateral is removed.
Seen in 1 report
-
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.
-
The sensitive joining link was included in the client-side cart or payment response instead of being withheld until payment was confirmed.
-
The separate total staked counters are not updated when an address becomes a strategy or tokens move between strategy and non-strategy addresses.
-
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
-
The server accepted a client-supplied access level for an invite without checking the caller's plan.
Seen in 1 report
-
The server accepted a client-supplied completion time because it never recorded when the session started.
-
The server accepted a client-supplied parameter for SMS auto-fill content without validating or restricting it.
Seen in 1 report
-
The server accepted a client-supplied payment profile identifier without checking it belonged to the requesting rider or was valid.
Seen in 1 report
-
The server accepted a client-supplied shipping cost instead of recalculating it from its own data.
Seen in 1 report
-
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
-
The server accepted any client-supplied package identifier without checking it was enabled for public purchase.
Seen in 1 report
-
The server accepted any valid package identifier without verifying it matched the price shown or was enabled for public purchase.
Seen in 1 report
-
The server accepted client-supplied license parameters and granted premium features before confirming payment.
Seen in 1 report
-
The server accepted client-supplied price and total fields without recalculating them from the product catalogue.
Seen in 1 report
-
The server accepted client-supplied price or quantity values without validating them against the real product price.
-
The server accepted the CAPTCHA response without verifying it with the CAPTCHA service and lacked rate limiting.
Seen in 1 report
-
The server accepted the client-supplied payment method ID without verifying that it referred to a valid, existing payment method.
Seen in 1 report
-
The server accepted the order amount from the client request instead of recalculating the price from the selected package.
Seen in 1 report
-
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
-
The server accepted the product price from the client request without validating it against the database price.
Seen in 1 report
-
The server accepted the signup request without verifying the captcha token with the captcha service or checking it was present.
Seen in 1 report
-
The server accepted user-supplied values for fields that were meant to be fixed in the email template, without validating or restricting them.
-
The server accepts a negative fractional donation amount without requiring it to be zero or positive.
-
The server accepts the payment amount from the client request without validating it against the expected price.
-
The server accepts the price from the client request without validating it against the real price.
Seen in 1 report
-
The server awarded points on submitted answers without recording that the quiz attempt had already been rewarded.
Seen in 1 report
-
The server calculated the order total from client-supplied price and promotion parameters without validating them against product rules.
-
The server checks that the code matches an issued code but not that it was consumed after a successful reset.
Seen in 1 report
-
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
-
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
-
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
-
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
-
The server did not check that the token amount was positive, so a negative value reversed the transaction.
Seen in 1 report
-
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
-
The server did not check the invitee email array for duplicates and relied on a client-side check.
Seen in 1 report