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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
VC
VTVL contest
Medium
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.