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 royalty percentage can be changed by a restricted role with no delay or limit.
Seen in 1 report
-
The safe transfer library does not verify that the token address contains code, so transfers from an empty address succeed silently.
-
The safeTransferFrom function did not verify that the receiver's onERC721Received returned the expected selector, so any successful call (even via a fallback) was accepted.
-
The safety gates were keyed off a stale static allowlist of public resolvers rather than querying the on-chain resolver set.
-
The sale assumes exclusive control of its token ID range although other minters can create tokens with any ID.
-
The sale relies on a minting role the creator can revoke at any time, bypassing the before-start cancellation restriction.
-
The saliency model prioritised lighter or higher-contrast regions, under-representing dark-skinned people.
Seen in 1 report
-
The saliency model prioritised visually prominent objects over text containing important information.
Seen in 1 report
-
The salt was computed only from the collection name and symbol, omitting the creator address, so the first caller became the creator.
-
The same address can act as lender, borrower and connector, repayment in the same block is allowed and there is no collateral ratio limit.
-
The same amount is passed to a deposit function that scales it and an allocate function that expects eighteen decimals, without scaling first.
Seen in 1 report
-
The same divergence-band gate was applied to both the standard and backstop books.
-
The same generic message field is reused for both the seize amount and the repay amount without distinguishing them.
-
The same JWT was reused for the registration response and the email verification endpoint, so the token was never secret to the user.
Seen in 1 report
-
The same minimum output was used for swap success and failure paths, but the failure path did not deduct swap fees.
Seen in 1 report
-
The same one-time code or verification state is shared between email and phone verification.
-
The same path is stored for both key orderings without reversing it, so the first token does not match the input token in one direction.
Seen in 1 report
-
The same price calculation is used for assets and debt, with slippage applied in the wrong direction for debt.
-
The same price limit value was passed to two pools with different price ranges.
Seen in 1 report
-
The same random number is used for both pod and operator selection, creating a biased distribution.
Seen in 1 report
-
The same slippage setting was reused for two unrelated checks: comparing spot and oracle prices, and comparing deposit ratios to pool balances.
Seen in 1 report
-
The same-block deposit guard is only applied on the deposit and withdraw paths, while the liquidation path moves collateral without updating the last-deposit block for the receiving account.
Seen in 1 report
-
The same-block transfer check exists in one balance function but is missing from the historical balance functions used by vote and token URI lookups.
Seen in 1 report
-
The sameness check for locked splits omitted the prefer-claimed and prefer-add-to-balance fields.
Seen in 1 report
-
Medium
-
-
The sample-order limit was not enforced server-side and the original premium image URL was exposed in the resizing response.
Seen in 1 report
-
The sanitiser's list of secure directives only covered script-src and object-src, so Level 3 directives that override script-src passed through unchecked.
Seen in 1 report
-
The save endpoint trusts a client-supplied field and does not verify the paid subscription.
-
The save function only filtered slashes and also ran strftime on user-supplied format specifiers.
Seen in 1 report
-
The saved baseline was compared in raw form against a display-normalised form, so untouched values looked changed.
-
The saved cart stores a price snapshot at abandonment time and the checkout flow does not re-validate it against the current product price.
Seen in 1 report
-
The saved timestamp is set to the current block time instead of the oracle update time.
Seen in 1 report
-
The scale factor constant was copied from an 18-decimal protocol but used with 9-decimal precision.
Seen in 1 report
-
The scaling factor is not scaled to 18 decimals before being applied, so the exponential and logarithmic functions receive too few decimals.
-
The scanner recomputed a fixed-size lookback window from the live game count on every tick without a persistent watermark or backlog.
-
The scheduler's inclusion condition used a logical OR with an address equality check, letting the node master bypass the active requirement.
Seen in 1 report
-
The scheduling function only rejected a zero amount and did not check against the existential deposit, while execution used transfer_keep_alive which cannot create an account below that threshold.
-
The score increments on every vote without checking voting weight or proposal legitimacy, and proposals are free to create.
-
The score was calculated in the browser and trusted by the server, and antifraud only judged whether the value looked plausible.
-
The scrape function has a minimum excess threshold, so small residual amounts cannot be swept.
Seen in 1 report
-
The second leg's slippage calculation used the original input amount rather than the base amount produced.
Seen in 1 report
-
The secure-session password endpoint enforced a weaker rate limit than the normal login.
-
The security council can cancel any pending operation including one that would replace it, while the owner is the sole proposer, so a single compromised actor can halt all upgrades.
Seen in 1 report
-
The security token endpoint had no rate limit and did not invalidate old tokens, and a debug header disabled captcha.
Seen in 1 report
-
The seed floor's share of Senior principal is not excluded from covenant exposure or coupon accrual, so a retained fee owned only by the seed still drives Junior withdrawal limits and coupon payments.
-
The selection function did not sort the input slice before taking the first N elements.
Seen in 1 report
-
The selection function did not weight each token ID by its deposited quantity.
Seen in 1 report
-
The selection function does not check that the chosen slot and index fall within the mintable entropies.
Seen in 1 report
-
The self-relay early return assumed no execution was needed when the recipient was the sender, which failed when the recipient was a contract that could execute calls.
Seen in 1 report
-
The sell and buy functions include no deadline parameter, so transactions can be executed at any later time.
Seen in 1 report
-
The sell function transfers the NFT to the buy order contract but never forwards it to the creator.
Seen in 1 report