Skip to content

Code4rena

VTVL contest

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

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

Disclosed reports

Newest first. Only what VTVL contest chose to make public.

Smart contracts

Permanent freeze of vested tokens due to overflow in _baseVestedAmount

The vesting calculation multiplies a uint112 token amount by a uint40 duration, which can overflow and revert, permanently freezing vested tokens for large allocations. An attacker cannot directly exploit this, but affected users cannot withdraw their funds.

VTVL contest

High
Business logic

_baseVestedAmount() and vestedAmount() Return Incorrect Historical Values

The vesting contract's historical vested amount calculation returns the total amount withdrawn instead of the time-based vested amount for any timestamp before the withdrawal, distorting historical values. An attacker could exploit this to manipulate systems that rely on historical vesting data, such as airdrops or reward distributions.

VTVL contest

Medium
Business logic

Two address tokens can be withdrawn by the admin even if they are vested

The vesting contract's withdrawOtherToken function only checks that the supplied token address differs from the vesting token address. For tokens that expose two addresses for the same underlying asset, the admin could pass the second address and withdraw funds already reserved for vesting, leaving the contract unable to pay beneficiaries.

VTVL contest

Medium
Smart contracts

Reentrancy may allow an admin to steal funds

The withdrawAdmin function in VTVLVesting.sol checks the contract's token balance before transferring tokens, allowing a reentrant token to call the function again before the balance updates. An admin could exploit this to drain tokens reserved for active vestings.

VTVL contest

Medium
Business logic

_releaseIntervalSecs is not validated

The smart contract function that creates vesting claims does not validate the release interval against the linear vest amount and timestamps, allowing an admin to set an incorrect interval. This could cause unfair token distributions or make the final withdrawal revert.

VTVL contest

Medium
Business logic

not able to create claim

After an admin revokes a recipient's claim, the claim's startTimestamp is not reset to zero, so the hasNoClaim modifier blocks creating a new claim for the same recipient. This prevents the admin from re-creating a claim for that recipient in the same vesting contract.

VTVL contest

Medium
Business logic

Vesting Schedule Start and End Time can be Set in the Past

The vesting contract lacks a check that the start and end timestamps are in the future, so an administrator could accidentally create a schedule that has already started and ended. If that happens, recipients can withdraw their entire vested amount immediately.

VTVL contest

Medium
Business logic

Variable balance token causing fund lock and loss

The vesting contract checks its token balance only when a claim is created, but some ERC20 tokens can change balance over time. If the balance falls below the reserved amount, withdrawals revert and users' funds are locked; the protocol may need to top up the contract, causing a loss.

VTVL contest

Medium
Business logic

Loss of vested amounts

The revokeClaim function in the VTVLVesting contract ignores amounts already vested but not yet withdrawn, so if an admin revokes a claim before the user withdraws, the user loses those vested tokens. An attacker (or malicious admin) could exploit this to take tokens that rightfully belong to the user.

VTVL contest

High
Business logic

Tokens with lower number of decimals can result in postponed linear vesting for user

The vesting contract calculates vested amounts using integer division, which rounds down to zero for tokens with few decimals and long vesting periods. This can postpone the start of linear vesting for users by several days, potentially causing financial loss if the token price drops during that delay.

VTVL contest

Medium
Business logic

Supply cap of VariableSupplyERC20Token is not properly enforced

The token contract treats a remaining mintable supply of zero as unlimited, so once the admin mints the entire capped supply, the cap is no longer enforced and any number of additional tokens can be minted. An attacker with admin privileges could therefore inflate the token supply beyond the intended maximum.

VTVL contest

Medium
DoS

Possible DoS on vestingRecipients due to lack of disposal mechanism

The smart contract stores vesting recipient addresses in an array that only grows, with no way to remove entries. As more recipients are added, the function that returns the whole array will eventually require more gas than a block allows, so it will fail and the data becomes unreadable on-chain.

VTVL contest

Medium