Skip to content

Code4rena

Velodrome Finance contest

Every publicly disclosed report for Velodrome Finance contest and what kind of bugs they were.

disclosed reports
23
most reported class
Business logic
bug classes found
5
first disclosure
2022
Find Velodrome Finance contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Velodrome Finance contest chose to make public.

Race condition

Gauge set can be front run if bribe and gauge constructors aren’t run atomically

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.

Velodrome Finance contest

Medium
Business logic

Bribe Rewards Struck In Contract If Deposited During First Epoch

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.

Velodrome Finance contest

High
Access control

VotingEscrow ’s merge and withdraw aren’t available for approved users

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.

Velodrome Finance contest

High
DoS

Owner’s delegates should be decreased in _burn()

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.

Velodrome Finance contest

Medium
Business logic

RedemptionSender should estimate fees to prevent failed transactions

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.

Velodrome Finance contest

Medium
Business logic

Bribe.sol is not meant to handle fee-on-transfer 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.

Velodrome Finance contest

Medium
Business logic

Alter velo receptions computation

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.

Velodrome Finance contest

Medium
Business logic

Wrong reward distribution in Bribe because deliverReward() won’t set tokenRewardsPerEpoch[token][epochStart] to 0

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.

Velodrome Finance contest

Medium
Business logic

Griefing Attack By Extending The Reward Duration

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.

Velodrome Finance contest

Medium
Smart contracts

Wrong DOMAIN_TYPEHASH definition

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.

Velodrome Finance contest

Medium
Business logic

WeVE (FTM) may be lost forever if redemption process is failed

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.

Velodrome Finance contest

Medium
Business logic

Bribe Rewards Not Collected In Current Period Will Be Lost Forever

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.

Velodrome Finance contest

Medium
DoS

Temporary DOS by calling notifyRewardAmount() in Bribe/Gauge with malicious tokens

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.

Velodrome Finance contest

Medium
Business logic

Voting tokens may be lost when given to non-EOA accounts

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.

Velodrome Finance contest

Medium
DoS

Attacker can block LayerZero channel

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.

Velodrome Finance contest

High
Business logic

User rewards stop accruing after any _writeCheckpoint calling action

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.

Velodrome Finance contest

High
Smart contracts

Users can get unlimited votes

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.

Velodrome Finance contest

High