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 5,601 to 5,650 of 5,700
  1. Trust was decided only from the GitHub organisation in the notebook URL, not from who authored or reviewed the notebook.

    Seen in 1 report
  2. Two components disagree on handler address encoding and the message is marked consumed before the downstream check.

    Seen in 1 report
  3. Two contracts each require the other's address in their constructors, creating a circular dependency.

    Seen in 1 report
  4. Two contracts used different time units (seconds versus epochs) to determine lock expiry, causing inconsistent active status.

    Seen in 1 report
  5. Two different transfer methods are both invoked inside one transfer function.

    Seen in 1 report
  6. Two error flags are combined with a bitwise OR producing a value the switch statement does not handle.

    Seen in 1 report
  7. Two gap-filling functions share logic but only one requests and distributes the missing reward.

    Seen in 1 report
  8. Two independent paths to the special entropy value exist with no check preventing both in the same generation.

    Seen in 1 report
  9. Two module functions hard-coded the unwrap flag to false, so the helper that builds the composed message was never used.

    Seen in 1 report
  10. Two opposite actions share the same type hash and used-signature registry, so a signature is valid for either.

    Seen in 1 report
  11. Two separate reward-token registries, one in the facet and one in the treasury, were not kept in sync.

    Seen in 1 report
  12. Two struct variables are assigned to the same memory location, so extrapolation uses initial values.

    Seen in 1 report
  13. Two swap and liquidity functions were missing the when-not-paused modifier.

    Seen in 1 report
  14. Two timestamp checks use mismatched strict comparisons, so the exact start timestamp is accepted by both.

    Seen in 1 report
  15. Two transfer paths enforce different health checks, so the stricter free-balance requirement can be sidestepped.

    Seen in 1 report
  16. Unclaimed reserves from a finished reserve auction are still included in liabilities.

    Seen in 1 report
  17. Unicode escape sequences in user input were not sanitised before being used to build email content.

    Seen in 1 report
  18. Uniqueness is scoped per account and only checked against already-verified rows at request time, with no re-check when the token is consumed.

    Seen in 1 report
  19. Unlocking sets the listing owner to zero, so the NFT is no longer treated as protected.

    Seen in 1 report
  20. Unregistering an operator vault does not clear the auto-deployed vault mapping, leaving a stale address.

    Seen in 1 report
  21. Unstake writes a new checkpoint for a later period instead of correcting the previously scheduled checkpoint.

    Seen in 1 report
  22. Unstake zeroes a vesting duration's staked amount even when no tokens from that duration are removed.

    Seen in 1 report
  23. Unstaking unlocks the NFT for transfer without checking whether tokens remain in the stake-at-risk contract.

    Seen in 1 report
  24. Unstaking used the warm-up credits amount, which included pending rebase rewards.

    Seen in 1 report
  25. Unwrapping zeroes a node's expiry even when it still has child nodes, so the parent no longer constrains the child.

    Seen in 1 report
  26. The update function processes rewards before storing the new parameters, so the old values are cached and used.

    Seen in 1 report
  27. Update returns early past the end block without first accruing the per-share reward.

    Seen in 1 report
  28. Updating a user's pending epoch on every deposit pushes earlier pending deposits forward out of sync with global settlement.

    Seen in 1 report
  29. Updating the minimum collateralisation ratio does not rescale the stored total locked collateral.

    Seen in 1 report
  30. User-supplied name fields were inserted into email templates without sanitising or escaping.

    Seen in 1 report
  31. Username validation compares against banned words without normalising Unicode.

    Seen in 1 report
  32. Username validation did not reserve names that collide with static server resources, and profiles were placed at the site root.

    Seen in 1 report
  33. Usernames are stored without trimming or normalising surrounding whitespace and near-duplicates are not flagged.

    Seen in 1 report
  34. Users can withdraw all funds at any time without a delay or lock, so they can exit before a pending slash.

    Seen in 1 report
  35. Users' swapped assets are not segregated from collected fees, so the owner's withdrawal transfers the entire balance.

    Seen in 1 report
  36. Validation accepted one wrong character and ignored case, and challenge generation lacked randomness.

    Seen in 1 report
  37. Validation and action read different occurrences of a duplicated parameter.

    Seen in 1 report
  38. Validation blocked one exact pattern rather than normalising and comparing branch names exactly.

    Seen in 1 report
  39. Validation compared the buyer's constraint to the seller's constraint instead of comparing the constructed item count to the seller's maximum.

    Seen in 1 report
  40. Validation compares the cash amount directly to the minimum credit without converting between cash and credit.

    Seen in 1 report
  41. Validation counts token IDs across all buy orders but never checks that each individual order names the tokens it pays for.

    Seen in 1 report
  42. Validation iterated over deposits but never rejected a transaction with an empty deposit list.

    Seen in 1 report
  43. The validation layer and business-logic layer use JSON parsers with different duplicate-key policies while forwarding the raw body.

    Seen in 1 report
  44. Validation only checked for missing fields rather than rejecting null values, and the bookings endpoint mishandled an empty array in a date filter.

    Seen in 1 report
  45. Validation only checked the input was non-empty after trimming and did not strip zero-width Unicode characters.

    Seen in 1 report
  46. Validation only checked whether slippage exceeded the limit and did not reject zero, which downstream logic read as no limit.

    Seen in 1 report
  47. Validation only checks the numeric part of the code and there is no rate limiting.

    Seen in 1 report
  48. Validation rejects an empty address even though the keeper treats an empty address as the signal to delete the hook.

    Seen in 1 report
  49. Validation relied on a trivial arithmetic check and a short exclusion list with no cryptographic signature.

    Seen in 1 report
  50. Validation used a blacklist of control and whitespace characters instead of a whitelist of allowed characters.

    Seen in 1 report