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 change-time endpoint did not check the booking start time server-side and relied on the front end hiding the option.
Seen in 1 report
-
The charge was computed from a static price on the offer SKU instead of the content's current authoritative price at order creation.
-
The chat landing page did not check that the required information form had been completed before allowing access.
Seen in 1 report
-
The check compared only two of the three pairwise ratios.
Seen in 1 report
-
The check compared UTF-8 byte length against one, so any multi-byte character was rejected as malformed.
Seen in 1 report
-
The check converts debt into yield-token shares and compares against a share-denominated collateral balance.
-
The check does not account for a burned NFT where the owner lookup returns the zero address, matching the registry's zero return.
Seen in 1 report
-
The check for an existing request compared a stored period of zero, which stayed true when the rebalancing period was also zero.
Seen in 1 report
-
Medium
-
-
The check for whether prizes are set only looks at prize index zero, ignoring other indices.
Seen in 1 report
-
The check only ensured minimum output was at least the input amount and did not enforce that the sale price stayed at or above the peg.
Seen in 1 report
-
The check only verified that acceptance time was less than the current timestamp and did not require it to be non-zero.
-
The check required the new epoch to be exactly current plus one instead of allowing any later epoch.
-
The check used the remaining ETH after the swap instead of the total ETH sent, so it reverted when repayment exceeded the leftover but not the total.
Seen in 1 report
-
The check uses raw collateral value rather than the credit limit that accounts for the collateral factor.
Seen in 1 report
-
The checker normalised or compared text without accounting for homoglyph characters from different alphabets, so visually identical but different Unicode characters evaded matching.
-
The checkout logic did not validate that the final price stayed non-negative after applying multiple discounts and credits, and silently clamped negative totals to zero.
-
The checkout trusted the contact email to associate an order with an existing account without verifying ownership.
-
The checkpoint condition combined the liveness period with a reward-availability check, so activity was only measured when rewards existed.
Seen in 1 report
-
The checkpoint function appends a new epoch without checking whether an epoch with the same timestamp already exists, so a second checkpoint in one transaction overwrites the first.
-
The checkpoint function returns early when shut down, so reward accounting is never updated on transfers.
Seen in 1 report
-
The checkpoint lookup at the period-start timestamp included a redemption written in the same block, so the exposure cap was taken from the post-redemption balance.
Seen in 1 report
-
The checkpoint lookup returned the most recent entry with a key less than or equal to the requested timestamp, so a write in the boundary second was included in what should be a frozen opening snapshot.
-
The checkpoint lookup returns the earliest checkpoint in a block rather than the latest.
-
The checkpoint loop is capped at twenty iterations while the last checkpoint time is advanced to now, so weeks beyond the cap are never recorded.
Seen in 1 report
-
The checkpoint reads the voted flag from the new index instead of the previous one, so it always stores false.
Seen in 1 report
-
The checkpoint set the last token time to the current block timestamp instead of advancing it only by the weeks actually processed, discarding the excess.
Seen in 1 report
-
The checkpoint uses greater-than-or-equal instead of strict greater-than, so the epoch can be set to the current timestamp.
Seen in 1 report
-
The checkpointing logic only added message value when the kind was not a call, assuming calls never move funds.
Seen in 1 report
-
The chunk counter is incremented before the first-chunk check, so the check never catches it.
Seen in 1 report
-
The circuit only enforces local ordering rules between adjacent entries and never requires the first popped entry to be a write or forbids consecutive rollbacks.
Seen in 1 report
-
The claim caps payout at the contract's current balance and clears unclaimed rewards without accounting for rewards still in the incentives controller.
Seen in 1 report
-
The claim check reverts on any prior claim instead of tracking the amount already claimed and allowing a top-up.
-
The claim checks that the number of winners drawn meets the prize quantity rather than checking only that the specific winner index has been drawn.
-
The claim contribution check did not account for the funding fee and rounding, and min/max checks could be impossible to satisfy.
-
The claim function accepts any signer and pays the largest vested amount, so an attacker controls the payout cadence.
Seen in 1 report
-
The claim function allowed the caller to specify any destination and an eligible address was a permissionless contract.
Seen in 1 report
-
The claim function allows user-defined hooks to revert, and the protocol uses canary tier claims to decide tier expansion, so a reverting hook can block expansion.
Seen in 1 report
-
The claim function checked only that the recipient was approved, not that the caller was authorised.
-
The claim function checks a single global flag for the current beneficiary's pool status instead of the status of the address claiming.
-
The claim function checks for deposits instead of debt before attempting to burn the alchemic token.
Seen in 1 report
-
The claim function did not check that the escrow pool address was non-zero before deducting the escrowed portion.
-
The claim function did not validate the amounts returned by the pool burn against a minimum threshold.
-
The claim function does not check whether the lock has expired before depositing into it.
Seen in 1 report
-
The claim function does not prevent repeated claims on an expired bond, so the reward-per-share accumulator is updated many times.
Seen in 1 report
-
The claim function finalises the position unconditionally, burning the NFT and reducing total locked by the full nominal amount even when the payout was capped.
-
The claim function hardcoded the recipient as the caller instead of letting the winner choose a receiver address.
Seen in 1 report
-
The claim function hardcodes the deployment check to ERC721 collections only.
Seen in 1 report
-
The claim function lacked validation preventing the retainer address from being used as a staking target.
Seen in 1 report
-
The claim function let the caller freely choose the voting power split without limiting the number of NFTs.
Seen in 1 report
-
The claim function re-initialises the distribution record with the purchased amount when it differs from the stored total.
Seen in 1 report