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,301 to 5,350 of 5,700
  1. The unsubscribe action did not require proof that the requester owned the email address.

    Seen in 1 report
  2. The unsubscribe endpoint did not verify that the requester owned the address being unsubscribed.

    Seen in 1 report
  3. The unsubscribe endpoint trusted a single encoded parameter to identify the recipient with no further verification or rate limiting.

    Seen in 1 report
  4. The unsubscribe mechanism trusted any email arriving at the unsubscribe address without verifying the sender was the actual group member.

    Seen in 1 report
  5. The unvouch function lacked a check for an active accusation lock.

    Seen in 1 report
  6. The unwhitelist function reverted if the operator was not whitelisted, forcing owners to whitelist an operator before removing them.

    Seen in 1 report
  7. The unwrap function used transferFrom instead of safeTransferFrom, skipping the recipient capability check.

    Seen in 1 report
  8. The unwrap helper was passed msg.sender instead of the receiver address.

    Seen in 1 report
  9. The update endpoint saved the name parameter without checking whether the user may change it, relying on the interface to hide the option.

    Seen in 1 report
  10. The update function called a verification routine that reverts when the pool id already exists, yet the update was only ever called for existing ids.

    Seen in 1 report
  11. The update function did not require the new provider's latest timestamp to be strictly greater.

    Seen in 1 report
  12. The update function exited early when both checkpoint count and balance delta were zero, so new users never bootstrapped.

    Seen in 1 report
  13. The update function forced the end time to at least the current timestamp and minting used a strict greater-than check.

    Seen in 1 report
  14. The update function incremented the checkpoint counter even when no deposit or redemption was made.

    Seen in 1 report
  15. The update function only rounded up when the delta became zero and truncated values like 1.999.

    Seen in 1 report
  16. The update function reset the receiver's average start time whenever the time since the last update exceeded a reference time, without checking whether the deposit was significant.

    Seen in 1 report
  17. The update function set the last-update timestamp to the current block time even when the validator was slashed, without capping at the slash timestamp.

    Seen in 1 report
  18. The update function set the stored buffer directly to the new cap instead of preserving the existing amount capped by the new limit.

    Seen in 1 report
  19. The update function used a negated whitelist check on the sender instead of allowing whitelisted addresses, inverting the intended logic.

    Seen in 1 report
  20. The update hook claimed rewards without first accruing fees.

    Seen in 1 report
  21. The update path renamed the shortcut without checking whether the target name was already taken, unlike the creation path.

    Seen in 1 report
  22. The update process did not verify that the new version was newer or authorised.

    Seen in 1 report
  23. The update set the last fee operation time to the block timestamp instead of adding only the whole minutes consumed.

    Seen in 1 report
  24. The update used the pool's last updated timestamp, which was not reset when weights were set, so new weights applied retroactively.

    Seen in 1 report
  25. The update-settings function omitted the assignment of the migration token allocation from the input parameters.

    Seen in 1 report
  26. The upgrade function called process_collected_fees before any fees existed, and that function cleared the proposer whenever the collected amount was zero.

    Seen in 1 report
  27. The upgrade path updated the base contract's DAO pointer but never updated the reserve's trusted address.

    Seen in 1 report
  28. The upgrade permits a new version to use a different oracle while sharing the same token, creating price discrepancies.

    Seen in 1 report
  29. The upgrade registered the new contract before unregistering the old one under the same name key, wiping the new address.

    Seen in 1 report
  30. The upkeep function does not verify that enough gas was supplied for every step, and the try/catch around the last step lets it fail without reverting the whole call.

    Seen in 1 report
  31. The upload endpoint did not verify the target form still existed before accepting and storing the file.

    Seen in 1 report
  32. The upload flag is cleared only for one post option and not for the post fields, copy post fields or MIME post options.

    Seen in 1 report
  33. The upload option is not reset when switching from an upload to a POST, so the upload read callback and buffer persist.

    Seen in 1 report
  34. The upload-share handler used a lookup that only checked the regular backups field while social backup ciphertexts lived in a separate social recovery field.

    Seen in 1 report
  35. The use of an external self-call changed msg.sender to the contract address, breaking an ownership check.

    Seen in 1 report
  36. The user identifier in the JWT is not validated against the session.

    Seen in 1 report
  37. The user's vesting record is loaded into a memory variable, so clearing the locked amount never updates the stored state that the claimable calculation reads.

    Seen in 1 report
  38. The user-specified withdrawal amount was not capped to the user's total raw supply.

    Seen in 1 report
  39. The user-supplied fee is forwarded without checking the fee the oracle actually charges.

    Seen in 1 report
  40. The utilisation calculation used live token balances instead of cached values, so a direct transfer manipulated it.

    Seen in 1 report
  41. The utilisation check runs immediately after adding the flash loan liability, before the repayment actions are processed.

    Seen in 1 report
  42. The utilisation formula does not handle reserves exceeding cash, so the denominator can fall below borrows.

    Seen in 1 report
  43. The utilisation rate is computed as borrowed divided by available unborrowed assets rather than borrowed divided by total assets.

    Seen in 1 report
  44. The validation compared the intrinsic gas cost against the total gas limit instead of the gas limit remaining after subtracting the overhead.

    Seen in 1 report
  45. The validation condition used the state variable instead of the function parameter, so the maximum limit was never enforced.

    Seen in 1 report
  46. The validation function did not enforce that a farm's start epoch must be after the current epoch.

    Seen in 1 report
  47. The validation function is called after the state change and passed the same diff again, applying it twice.

    Seen in 1 report
  48. The validation layer compared the raw unnormalised address while a later delivery layer canonicalised it, so the two disagreed about the domain.

    Seen in 1 report
  49. The validation logic for the same setting was duplicated in two places with different minimum thresholds, so the stricter check could be bypassed through the management function.

    Seen in 1 report
  50. The validation loop does not track which validators have already voted, so duplicate votes count towards the threshold.

    Seen in 1 report