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 1,301 to 1,350 of 5,700
  1. An off-by-one in the auction period time comparison creates a one-second settlement window.

    Seen in 1 report
  2. Off-chain capacity is computed from a manipulable balance snapshot while the on-chain check recomputes later.

    Seen in 1 report
  3. One asset-removal function omits the bankruptcy check that the other removal functions perform.

    Seen in 1 report
  4. One client adds a precompile collision check that the execution specs and other clients do not have.

    Seen in 1 report
  5. One client does not reject an invalid nonce before applying state changes, producing a divergent state root.

    Seen in 1 report
  6. One collateral-removal path lacks the revert-if-auction-clearable check that the other paths have.

    Seen in 1 report
  7. One contract inherits the standard renounce-ownership function without overriding it, unlike the other governance contracts that were patched.

    Seen in 1 report
  8. One health check used less-than-or-equal while the liquidation check used strict greater-than, so the boundary case disagreed.

    Seen in 1 report
  9. One liquidation path does not set the deposit's liquidated flag or related state that the other path sets.

    Seen in 1 report
  10. One mint path assumed IDs equal a counter while another path allowed arbitrary IDs.

    Seen in 1 report
  11. One native reserve variable covered both LP deposits and synth backing, so LP share maths included funds LPs never provided.

    Seen in 1 report
  12. One path sums pooled tokens before pricing while another prices each NFT individually and truncates, giving different totals.

    Seen in 1 report
  13. Only an add-header message is exposed, enforcing latest-height-plus-one, with no reachable remove or set message.

    Seen in 1 report
  14. Only exact string duplicates were checked, with no normalisation or mixed-script blocking.

    Seen in 1 report
  15. Only the borrowed token is approved for the Curve pool, omitting approval for the other supplied tokens.

    Seen in 1 report
  16. Only the earner could call stopEarning, so removal from the approved list did not stop accrual.

    Seen in 1 report
  17. Only the feed URL string was checked for duplicates, not the actual XML content.

    Seen in 1 report
  18. Only the message value was passed as the L1 call value, omitting the ETH withdrawn from the bridge minter.

    Seen in 1 report
  19. Only the pre-liquidation state is validated and no post-liquidation safety improvement is enforced.

    Seen in 1 report
  20. Only the price per token is validated, not the total collateral value.

    Seen in 1 report
  21. Only the single transfer function is overridden; the batch transfer path lacks the transferability check.

    Seen in 1 report
  22. Only the value one is treated as positive and all other values as negative, so the different-side check can be passed by two shorts.

    Seen in 1 report
  23. Open interest is calculated from margin before fees rather than the actual position size after fees.

    Seen in 1 report
  24. The open/increase branch of the bounty reservation leaves carry and settlement fields of the commitment effects at zero.

    Seen in 1 report
  25. Operator precedence applies the division to the entire sum instead of only the new fee amount.

    Seen in 1 report
  26. The oracle hard-codes a 1:1 redemption assumption for expired principal tokens without checking the actual redemption path or slippage.

    Seen in 1 report
  27. Oracle storage was not cleared when an asset was removed, so stale entries contaminated the moving average after re-adding.

    Seen in 1 report
  28. Oracles were keyed by foreign asset alone rather than by the asset pair, so a second registration replaced the first.

    Seen in 1 report
  29. Order direction was fixed at creation from the current rate and not updated when the price crossed the take-profit before execution.

    Seen in 1 report
  30. Order execution writes the new price only into the engine mark and not into the oracle's accepted basket, leaving the two stores out of sync.

    Seen in 1 report
  31. Order IDs were built only from block number and user address, so different contracts could produce the same ID.

    Seen in 1 report
  32. Order matching relies on validators acting fairly, without checks or incentives preventing them from manipulating matches for profit.

    Seen in 1 report
  33. Order of operations was wrong: asset removal preceded the earnings update.

    Seen in 1 report
  34. A LIMIT/OFFSET query is ordered only by a non-unique column so tied rows are not partitioned deterministically across pages.

    Seen in 1 report
  35. Orders were keyed only by chain id and token pair, so different users' orders collided in one storage slot.

    Seen in 1 report
  36. OTP verification was performed only on the client side with no server-side validation.

    Seen in 1 report
  37. Outcome names are concatenated with quotes but embedded quotes and commas are never escaped, so the resulting string is ambiguous.

    Seen in 1 report
  38. Override validation read the original campaign entry instead of the latest stored override.

    Seen in 1 report
  39. Owner checks and display use the raw route string while token-ID selection uses the normalised label, with no preflight match.

    Seen in 1 report
  40. Owner lookup on a burned profile reverts and fails the whole collect.

    Seen in 1 report
  41. The owner query normalises the name but the records query uses the raw URL name.

    Seen in 1 report
  42. Ownership is derived from the v1 registry controller instead of the registrant.

    Seen in 1 report
  43. Ownership of a newly created object was assigned to whoever first requested the redirect URL containing its ID, without checking that requester was the user who started creation.

    Seen in 1 report
  44. Ownership of the claimed first-party sender address was not verified, and asynchronous dispatch fell back to first-party delivery without re-checking the sender.

    Seen in 1 report
  45. Ownership transfer does not validate that the new owner is authorised to use the callback.

    Seen in 1 report
  46. Ownership was verified only by the email tag inside a user-supplied feed, with no duplicate-content comparison against existing podcasts.

    Seen in 1 report
  47. Pages were served from the browser's cache or history after logout, without the server or page preventing them from being shown again.

    Seen in 1 report
  48. Paid-plan restrictions were enforced only in the browser response rather than on the server.

    Seen in 1 report
  49. Pair overrides are applied after converting ETH to WETH and sorting the pair, so overrides cannot distinguish them.

    Seen in 1 report