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,401 to 5,450 of 5,700
  1. The verifier's storage-value function did not check the dispute game blacklist before using a game to verify proofs.

    Seen in 1 report
  2. The vest function resets the unlock schedule but leaves the claimed amount unchanged.

    Seen in 1 report
  3. The vested marker advances to the full value even when the distributed amount was capped by the balance.

    Seen in 1 report
  4. The vesting contract never approves the NFT contract before it performs a transferFrom.

    Seen in 1 report
  5. The vesting manager copies the seller's stepsClaimed into its own record when it has no existing allocation, leaking state between listings.

    Seen in 1 report
  6. The vesting manager stores a single marketplace address and rejects calls from any other, orphaning listings on the previous marketplace.

    Seen in 1 report
  7. The veto check only blocked specific functions and missed calls to any function on the governance contract itself.

    Seen in 1 report
  8. The veto contract added a voting-state-only check while the governance contract allowed vetoing in more states.

    Seen in 1 report
  9. The veto function did not check whether the proposal had already been vetoed.

    Seen in 1 report
  10. The veto function did not record whether the caller had already voted on that proposal.

    Seen in 1 report
  11. The veto function does not decrement the proposer's proposal counters.

    Seen in 1 report
  12. The veto skipped proposals containing any action against the governance contract.

    Seen in 1 report
  13. The view function fetched prime cash factors without first accruing them.

    Seen in 1 report
  14. The view omitted the early-return condition for inactive-but-not-slashed validators that the state-changing function applied.

    Seen in 1 report
  15. The view path accrues reward-per-token without checking that total stake is non-zero, unlike the state-changing path.

    Seen in 1 report
  16. The view validates against the active reward-token mapping instead of the historical one.

    Seen in 1 report
  17. The virtual price impact threshold was applied per order rather than to the total position size or across all orders in a block, allowing orders below the threshold to bypass the impact.

    Seen in 1 report
  18. The virtual rewards ratio could be inflated by the first depositor and the result was cast to a narrow integer without an overflow check.

    Seen in 1 report
  19. The virtual token inherits a default of 18 decimals instead of overriding to match the underlying token.

    Seen in 1 report
  20. The vote factor is applied at claim time using the current value while vote tokens were minted at initialisation using the old value.

    Seen in 1 report
  21. The vote function checked minimum lock durations but not that the remaining lock exceeded the epoch duration.

    Seen in 1 report
  22. The vote function does not check whether distribute has been called for the current epoch, allowing total voting to be reset after votes are cast.

    Seen in 1 report
  23. The vote function does not revert when the calculated vote count is zero.

    Seen in 1 report
  24. The vote-counting contract compares the voter's address to their delegate instead of reusing the bonding manager's registered-transcoder check.

    Seen in 1 report
  25. The vote-counting functions (getVotes and getPriorVotes) did not check the minimum voting power threshold when summing delegated balances, so the threshold only applied at the time of delegation.

    Seen in 1 report
  26. The vote-counting logic does not re-check the threshold after updating support on a transfer.

    Seen in 1 report
  27. The vote-handling code hardcodes the success observation vote type for certain messages.

    Seen in 1 report
  28. The voting endpoint has no server-side repeat-vote check, no internal-only restriction and debug output left on.

    Seen in 1 report
  29. The voting hash for key generation does not include the public key being voted on.

    Seen in 1 report
  30. The voting token allowed any holder to burn, breaking the exit function that relied on burning to reset voting values.

    Seen in 1 report
  31. The voucher's last-updated timestamp is not refreshed when a maxed-trust voucher participates in the locked coin age accumulator.

    Seen in 1 report
  32. The vouching user is not excluded from the vouchers pool fee when increasing their own vouch.

    Seen in 1 report
  33. The WAF relied on a JavaScript challenge and a cookie that stayed valid for hundreds of requests.

    Seen in 1 report
  34. The wallet does not display or allow selection of transaction inputs and signatures can become stale, letting a signer withhold and later broadcast.

    Seen in 1 report
  35. The watcher did not subscribe to or handle the inotify queue-overflow event and its buffer-growth retry did not enlarge the buffer.

    Seen in 1 report
  36. The web interface and git ref resolution handled ambiguous branch names inconsistently.

    Seen in 1 report
  37. The web interface misinterprets a branch name containing a slash and a commit hash as a path.

    Seen in 1 report
  38. The web interface resolved ambiguous references (same name for branch and tag) by preferring the tag, while the clone operation used the branch, and the restriction on creating such tags could be bypassed by changing the default branch.

    Seen in 1 report
  39. The web interface resolved the ambiguous branch name 'refs/heads/main' to the genuine 'main' branch, while Git's command-line resolution picked the malicious branch 'refs/heads/refs/heads/main'.

    Seen in 1 report
  40. The WebDAV authentication path bypassed the brute-force logging used by other login endpoints.

    Seen in 1 report
  41. The webhook accepted a username from the request instead of using a fixed server-side identity.

    Seen in 1 report
  42. The webhook did not verify the provider's signature, caller identity or payment status server-side, and the coin grant was not atomic.

    Seen in 1 report
  43. The webhook resolves the channel with an unordered first match on the email target only, with no user, channel-type or status constraint.

    Seen in 1 report
  44. The week counter was cast to an 8-bit integer and used to index a prize array without checking the initialised range.

    Seen in 1 report
  45. The weighted-average cooldown gave too much weight to the receiver's nearly expired cooldown.

    Seen in 1 report
  46. The whenNotPaused modifier was omitted from four vault functions even though the contract inherits the pause utility.

    Seen in 1 report
  47. The whitelist was checked against the transaction sender rather than the credited user address.

    Seen in 1 report
  48. The WHOIS parser's regular expression excluded plus and equals signs, so it extracted a truncated address.

    Seen in 1 report
  49. The win cap compares the partial payout against the full trade margin instead of the margin being closed.

    Seen in 1 report