Hunt prep
Before you test VTVL contest
What 12 disclosed reports say about VTVL contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 9 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Permanent freeze of vested tokens due to overflow in _baseVestedAmount
The intermediate calculation should be performed using uint256 to avoid overflow.
Disclosed
-
_baseVestedAmount() and vestedAmount() Return Incorrect Historical Values
The function should only consider the time-based vested amount for active claims, and for inactive claims return the minimum of the time-based amount and the withdrawn amount.
Disclosed
-
Two address tokens can be withdrawn by the admin even if they are vested
The address check should be replaced with a balance check that records the vesting token balance before and after the transfer and asserts they are equal.
Disclosed
-
Reentrancy may allow an admin to steal funds
Add a reentrancy guard (nonReentrant modifier) to the withdrawAdmin function.
Disclosed
-
_releaseIntervalSecs is not validated
The `_releaseIntervalSecs` should be validated against the linear vest amount and start/end timestamps.
Disclosed
-
not able to create claim
The fix should reset startTimestamp to zero when a claim is revoked.
Disclosed
-
Vesting Schedule Start and End Time can be Set in the Past
Add a require statement that forces the start timestamp to be greater than the current block timestamp.
Disclosed
-
Variable balance token causing fund lock and loss
The contract should either disallow variable-balance tokens or track shares of the contract's balance instead of absolute amounts.
Disclosed
-
Loss of vested amounts
The contract should be fixed by adding a deactivation timestamp to the claim and updating the vesting calculations to preserve the amount vested up to the revocation time, as shown in the proposed patch.
Disclosed
-
Tokens with lower number of decimals can result in postponed linear vesting for user
The contract should be restricted to 18-decimal tokens, or the frontend should warn users about rounding delays, though the judge noted that contract interactions can bypass frontend warnings.
Disclosed
-
Supply cap of VariableSupplyERC20Token is not properly enforced
The contract should treat a very large number (such as 2**256 - 1) as the unlimited sentinel instead of zero.
Disclosed
-
Possible DoS on vestingRecipients due to lack of disposal mechanism
The withdraw function should remove the recipient from the array once their vesting is finished, or the read function should accept an index range to return only part of the array.
Disclosed