Skip to content

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.

Back to the lesson 4,601 to 4,650 of 5,700
  1. The royalty percentage can be changed by a restricted role with no delay or limit.

    Seen in 1 report
  2. The safe transfer library does not verify that the token address contains code, so transfers from an empty address succeed silently.

    Seen in 1 report
  3. 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.

    Seen in 1 report
  4. The safety gates were keyed off a stale static allowlist of public resolvers rather than querying the on-chain resolver set.

    Seen in 1 report
  5. The sale assumes exclusive control of its token ID range although other minters can create tokens with any ID.

    Seen in 1 report
  6. The sale relies on a minting role the creator can revoke at any time, bypassing the before-start cancellation restriction.

    Seen in 1 report
  7. The saliency model prioritised lighter or higher-contrast regions, under-representing dark-skinned people.

    Seen in 1 report
  8. The saliency model prioritised visually prominent objects over text containing important information.

    Seen in 1 report
  9. The salt was computed only from the collection name and symbol, omitting the creator address, so the first caller became the creator.

    Seen in 1 report
  10. The same address can act as lender, borrower and connector, repayment in the same block is allowed and there is no collateral ratio limit.

    Seen in 1 report
  11. 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
  12. The same divergence-band gate was applied to both the standard and backstop books.

    Seen in 1 report
  13. The same generic message field is reused for both the seize amount and the repay amount without distinguishing them.

    Seen in 1 report
  14. 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
  15. 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
  16. The same one-time code or verification state is shared between email and phone verification.

    Seen in 1 report
  17. 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
  18. The same price calculation is used for assets and debt, with slippage applied in the wrong direction for debt.

    Seen in 1 report
  19. The same price limit value was passed to two pools with different price ranges.

    Seen in 1 report
  20. The same random number is used for both pod and operator selection, creating a biased distribution.

    Seen in 1 report
  21. 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
  22. 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
  23. 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
  24. The sameness check for locked splits omitted the prefer-claimed and prefer-add-to-balance fields.

    Seen in 1 report
  25. 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
  26. 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
  27. The save endpoint trusts a client-supplied field and does not verify the paid subscription.

    Seen in 1 report
  28. The save function only filtered slashes and also ran strftime on user-supplied format specifiers.

    Seen in 1 report
  29. The saved baseline was compared in raw form against a display-normalised form, so untouched values looked changed.

    Seen in 1 report
  30. 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
  31. The saved timestamp is set to the current block time instead of the oracle update time.

    Seen in 1 report
  32. The scale factor constant was copied from an 18-decimal protocol but used with 9-decimal precision.

    Seen in 1 report
  33. The scaling factor is not scaled to 18 decimals before being applied, so the exponential and logarithmic functions receive too few decimals.

    Seen in 1 report
  34. The scanner recomputed a fixed-size lookback window from the live game count on every tick without a persistent watermark or backlog.

    Seen in 1 report
  35. 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
  36. 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.

    Seen in 1 report
  37. The score increments on every vote without checking voting weight or proposal legitimacy, and proposals are free to create.

    Seen in 1 report
  38. The score was calculated in the browser and trusted by the server, and antifraud only judged whether the value looked plausible.

    Seen in 1 report
  39. The scrape function has a minimum excess threshold, so small residual amounts cannot be swept.

    Seen in 1 report
  40. The second leg's slippage calculation used the original input amount rather than the base amount produced.

    Seen in 1 report
  41. The secure-session password endpoint enforced a weaker rate limit than the normal login.

    Seen in 1 report
  42. 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
  43. The security token endpoint had no rate limit and did not invalidate old tokens, and a debug header disabled captcha.

    Seen in 1 report
  44. 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.

    Seen in 1 report
  45. The selection function did not sort the input slice before taking the first N elements.

    Seen in 1 report
  46. The selection function did not weight each token ID by its deposited quantity.

    Seen in 1 report
  47. The selection function does not check that the chosen slot and index fall within the mintable entropies.

    Seen in 1 report
  48. 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
  49. The sell and buy functions include no deadline parameter, so transactions can be executed at any later time.

    Seen in 1 report
  50. The sell function transfers the NFT to the buy order contract but never forwards it to the creator.

    Seen in 1 report