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 application trusted a client-supplied step parameter to decide which verification was completed without binding the code to the correct step.
Seen in 1 report
-
The application trusted a client-supplied success callback without verifying authenticity or payment status.
-
The application trusted a client-supplied X-Forwarded-For header and mishandled duplicate headers.
Seen in 1 report
-
The application trusted a user-controlled return parameter for the post-verification destination and did not confirm password verification had completed.
Seen in 1 report
-
The application trusted client-controlled localStorage to enforce a voting limit that should have been enforced server-side.
-
The application trusted client-side checks and client-supplied responses for security decisions.
Seen in 1 report
-
The application trusted client-submitted account statistics instead of recalculating them server-side before the credit review.
-
The application trusted client-supplied forwarding headers to identify the client IP for rate limiting without validating them.
Seen in 1 report
-
The application trusted client-supplied payment and recharge amounts without checking they matched.
Seen in 1 report
-
The application trusted the client-supplied X-Forwarded-For header for rate limiting and geo-based access decisions.
Seen in 1 report
-
The application trusted the forwarded-for header without validating it came from a trusted proxy.
Seen in 1 report
-
The application trusted the updated plan without checking the invoice payment status, relying on a payment provider default that applies changes on failed payment.
Seen in 1 report
-
The application trusts a client-side boolean flag for CAPTCHA completion instead of validating the token server-side.
Seen in 1 report
-
The application trusts a client-supplied forwarding header to identify the client IP for rate limiting.
Seen in 1 report
-
The application trusts a client-supplied price parameter instead of looking up the price server-side from a product identifier.
Seen in 1 report
-
The application trusts the client-supplied X-Forwarded-For header for rate limiting instead of the connection IP or a trusted proxy configuration.
Seen in 1 report
-
The applications performed critical calculations and validations on the client side and did not verify them on the server.
-
The applyCover function does not verify that the market is in a Trading state before allowing the owner to apply coverage.
Seen in 1 report
-
The approval calldata commits only to the incident ID, not to the specific assessment round or loss schedule reviewed.
-
The approval check returned early when caller and account were the same address, skipping the check that the caller was an approved collateralizable contract.
Seen in 1 report
-
The approval event hooks omit the owner parameter, so listeners cannot tell who initiated the approval.
Seen in 1 report
-
The approval function took only an incident id and read the mutable current round at execution, so the signed transaction did not bind to the reviewed round.
Seen in 1 report
-
The approval helper called approve directly without first setting the allowance to zero.
Seen in 1 report
-
The approval is granted before checking whether there are deposits to burn.
Seen in 1 report
-
The approval status is set by client-side validation without the server enforcing the same check.
Seen in 1 report
-
The approval status UI does not account for the author also being an approver.
Seen in 1 report
-
The approve function only checks the token owner and ignores approved operators.
Seen in 1 report
-
The approve function returned early when the amount equalled the maximum instead of always updating the allowance.
Seen in 1 report
-
The approve helper sets the allowance to the maximum without first resetting it to zero.
Seen in 1 report
-
The approveUSDPrice function does not check whether the caller has already disapproved the same proposal, allowing both actions.
-
The APR function does not check whether locked profit is zero before calculating from the stored vesting profit.
Seen in 1 report
-
The arbitrary call reverted when the target token had a non-zero incentive balance, which anyone could set.
Seen in 1 report
-
The archive wrapper was initialised without specific file arguments, so a literal wildcard entry matched and triggered an early-exit optimisation.
Seen in 1 report
-
The arctan approximation omitted absolute value operations, giving wrong results for negative inputs.
Seen in 1 report
-
The arguments in the function call were passed in the wrong order: the borrowing factor and position size were swapped relative to the function signature.
Seen in 1 report
-
The arguments to the before-transfer hook are swapped in the burn function.
Seen in 1 report
-
The arguments to the pool swap call were swapped.
Seen in 1 report
-
The arguments to the swap maths function were mixed up, so the first swap used the wrong pool's reserves.
Seen in 1 report
-
The arming path after parent fill does not re-run protection price validation against the post-fill mark, unlike the standalone create path.
-
The assessState function is publicly callable, allowing an attacker to control the timing of the snapshot that determines who can claim unlocked capital.
Seen in 1 report
-
The asset price returns a zero low price on oracle timeout and rebalancing uses it without a fallback.
Seen in 1 report
-
The asset registry and withdrawal queue are not updated when shares are queued for exit.
-
The asset selection skips troves below the minimum ratio, so the lowest healthy trove is picked instead of the overall riskiest.
-
The assignment to the Senior high-water mark is unconditional, so a later partial recapitalisation replaces the larger original recovery target with the smaller residual.
Seen in 1 report
-
The asymmetric deposit fee calculation applied only the swap fee rate to the virtual swap and omitted the taker fee.
Seen in 1 report
-
The async swapper is invoked with a regular external call instead of a delegatecall, so it cannot operate on the caller's tokens.
Seen in 1 report
-
The attachment filter did not normalise or validate file extensions containing special characters.
Seen in 1 report
-
The attribution logic adds only positive VPI to prior charges and ignores negative VPI, so a netted rebate is mistaken for uncollected spread.
-
The auction accepted the highest bid without any minimum price.
Seen in 1 report
-
The auction allowed the price to reach zero and did not handle tokens that revert on zero-value transfers.
Seen in 1 report