The Bribe contract's setGauge function can be called by anyone and only once, and it is normally invoked by the Gauge constructor. If the two constructors are not run atomically, an attacker can call setGauge in between, binding the Bribe to a wrong gauge and making it unusable.
Bribe rewards deposited during the first epoch are stored under a timestamp that can never be claimed because the distribution function only looks at the current epoch's start. An attacker could cause tokens to be permanently stuck by adding rewards early, though the report frames it as a bug rather than an attack.
The _burn function in VotingEscrow passes the caller (msg.sender) to _removeTokenFrom instead of the NFT owner, so an approved non-owner caller triggers an assertion failure. This makes merge and withdraw permanently unavailable for any approved sender who is not the owner.
The _burn() function does not remove the burned token from the owner's delegate list, so the list can grow until it hits the maximum allowed. An attacker can deposit tiny amounts to fill a victim's delegate list, preventing them from depositing more tokens.
The RedemptionSender contract allows users to specify any gas payment for a cross-chain message, which may be insufficient to cover the actual fees. This can cause the message to fail to be forwarded, potentially burning the user's tokens.
The Bribe contract records the full amount of a reward token deposit, but fee-on-transfer tokens deliver less than that amount, so the contract holds fewer tokens than recorded. When rewards are later delivered, the transfer fails because the contract lacks sufficient balance, locking rewards and potentially blocking all reward withdrawals from the Gauge.
The initializeReceiverWith function uses a flag that can be bypassed by passing address(0), allowing the deployer to re-initialize the contract and set arbitrary values for redeemableVELO and redeemableUSDC. This could let the deployer mint extra VELO and manipulate redemption calculations to receive more tokens than expected.
The Bribe contract's deliverReward function transfers epoch rewards but does not reset the stored reward amount to zero, so repeated calls in the same epoch can transfer the same rewards multiple times. An attacker could trigger multiple distributions by calling notifyRewardAmount to increase the index, causing the gauge to deliver bribes repeatedly and misallocate tokens.
The Voter.distribute() function only calls Gauge.deliverBribes() when the gauge's base token claimable amount divided by DURATION is greater than zero. If new bribe rewards are added but that condition is false, those rewards remain stuck in the Bribe contract.
The reward notification function can be called by anyone at any time, allowing an attacker to repeatedly add tiny reward amounts and extend the active reward period. This dilutes the reward rate and reduces the yield earned by stakers.
The contract's DOMAIN_TYPEHASH constant omits the version field, while the delegateBySig function builds the domain separator including version, causing signature verification to fail. An attacker could not exploit this for gain, but legitimate signatures from compliant wallets would be rejected.
The VeloGovernor contract's setProposalNumerator and setTeam functions could only be called by the team address, not by governance. This meant the team, rather than the governance process, controlled these settings.
The redemption process can fail if a user redeems more than their eligible amount, causing the destination chain transaction to revert without refunding the burned WeVE tokens. An attacker could lose their WeVE permanently by repeatedly redeeming due to slow cross-chain messaging.
The reward rate calculation in the Gauge contract used a fixed duration that did not match the actual remaining reward period, causing rewards to be distributed too quickly. As a result, users who claimed later could not receive their rewards because the contract balance was insufficient.
Bribe rewards not collected in the current epoch are not carried forward and are lost forever. An attacker could cause this by simply not triggering the distribution, but the impact is limited to the uncollected tokens.
The withdrawToken function in the Gauge contract does not update rewards before changing a user's balance, unlike the withdraw wrapper. If a user calls withdrawToken directly, their accumulated rewards can be lost due to incorrect reward accounting.
The notifyRewardAmount function in Bribe and Gauge contracts is callable by anyone and adds the provided token to a reward token list. An attacker can add a malicious token that reverts on transfer, causing deliverBribes to fail and blocking Voter.distribute and Gauge.getReward for that gauge.
The VotingEscrow contract's minting and transfer functions do not correctly check the return value of onERC721Received, so a non-fungible token representing a locked voting position could be sent to a contract that cannot handle it and become permanently locked. An attacker could not directly exploit this, but a user could lose their voting power and rewards if they transfer to an incompatible contract.
A malicious user could fill the rewards array with many different tokens by sending tiny amounts, reaching the MAX_REWARD_TOKENS limit. This would prevent any other tokens from being added as rewards.
The RedemptionReceiver contract on Optimism did not implement LayerZero's non-blocking message handling, so a failed message from any sender could block the channel between FTM and Optimism. An attacker could send a message that causes the receiver to revert, preventing legitimate redemption messages from being processed.
The gauge's reward calculation checks a 'voted' flag from the last checkpoint, but voting overwrites that flag without creating a new checkpoint. An attacker could vote just before claiming rewards and reset immediately after, receiving full rewards without maintaining a vote for the period.
A wrong array index in the _writeCheckpoint function caused every new balance checkpoint to record the user's voting status as false, even if they had previously voted. As a result, any deposit, withdrawal, or reward claim by a user who had voted stopped their rewards from accruing until they voted again.
The _burn function in VotingEscrow.sol does not move token delegates back to address(0), so after burning an NFT the delegation remains with the previous owner. An attacker can repeatedly deposit, lock, transfer, and burn tokens to accumulate voting power, gaining control over governance and undeserved rewards.
VF
Velodrome Finance contest
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.