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.
-
The verifier's storage-value function did not check the dispute game blacklist before using a game to verify proofs.
Seen in 1 report
-
The vest function resets the unlock schedule but leaves the claimed amount unchanged.
Seen in 1 report
-
The vested marker advances to the full value even when the distributed amount was capped by the balance.
-
The vesting contract never approves the NFT contract before it performs a transferFrom.
Seen in 1 report
-
The vesting manager copies the seller's stepsClaimed into its own record when it has no existing allocation, leaking state between listings.
-
The vesting manager stores a single marketplace address and rejects calls from any other, orphaning listings on the previous marketplace.
Seen in 1 report
-
The veto check only blocked specific functions and missed calls to any function on the governance contract itself.
Seen in 1 report
-
The veto contract added a voting-state-only check while the governance contract allowed vetoing in more states.
-
The veto function did not check whether the proposal had already been vetoed.
Seen in 1 report
-
Medium
-
-
The veto function did not record whether the caller had already voted on that proposal.
-
The veto function does not decrement the proposer's proposal counters.
Seen in 1 report
-
The veto skipped proposals containing any action against the governance contract.
Seen in 1 report
-
The view function fetched prime cash factors without first accruing them.
Seen in 1 report
-
The view omitted the early-return condition for inactive-but-not-slashed validators that the state-changing function applied.
-
The view path accrues reward-per-token without checking that total stake is non-zero, unlike the state-changing path.
-
The view validates against the active reward-token mapping instead of the historical one.
-
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
-
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
-
The virtual token inherits a default of 18 decimals instead of overriding to match the underlying token.
Seen in 1 report
-
The vote factor is applied at claim time using the current value while vote tokens were minted at initialisation using the old value.
-
The vote function checked minimum lock durations but not that the remaining lock exceeded the epoch duration.
Seen in 1 report
-
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
-
The vote function does not revert when the calculated vote count is zero.
Seen in 1 report
-
The vote-counting contract compares the voter's address to their delegate instead of reusing the bonding manager's registered-transcoder check.
-
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
-
The vote-counting logic does not re-check the threshold after updating support on a transfer.
Seen in 1 report
-
The vote-handling code hardcodes the success observation vote type for certain messages.
Seen in 1 report
-
The votes array length is not verified to be exactly the intended number of rounds.
-
The voting endpoint has no server-side repeat-vote check, no internal-only restriction and debug output left on.
Seen in 1 report
-
The voting hash for key generation does not include the public key being voted on.
Seen in 1 report
-
The voting token allowed any holder to burn, breaking the exit function that relied on burning to reset voting values.
Seen in 1 report
-
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
-
The vouching user is not excluded from the vouchers pool fee when increasing their own vouch.
-
The WAF relied on a JavaScript challenge and a cookie that stayed valid for hundreds of requests.
Seen in 1 report
-
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
-
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
-
The web interface and git ref resolution handled ambiguous branch names inconsistently.
Seen in 1 report
-
The web interface misinterprets a branch name containing a slash and a commit hash as a path.
-
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
-
Medium
-
-
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
-
The WebDAV authentication path bypassed the brute-force logging used by other login endpoints.
Seen in 1 report
-
The webhook accepted a username from the request instead of using a fixed server-side identity.
Seen in 1 report
-
The webhook did not verify the provider's signature, caller identity or payment status server-side, and the coin grant was not atomic.
-
The webhook resolves the channel with an unordered first match on the email target only, with no user, channel-type or status constraint.
-
The week counter was cast to an 8-bit integer and used to index a prize array without checking the initialised range.
-
The weighted-average cooldown gave too much weight to the receiver's nearly expired cooldown.
Seen in 1 report
-
The whenNotPaused modifier was omitted from four vault functions even though the contract inherits the pause utility.
-
The whitelist was checked against the transaction sender rather than the credited user address.
Seen in 1 report
-
The WHOIS parser's regular expression excluded plus and equals signs, so it extracted a truncated address.
Seen in 1 report
-
The win cap compares the partial payout against the full trade margin instead of the margin being closed.
Seen in 1 report