Missing hasStarted modifier, can lead to user vesting before the owner begin the vesting #90
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
LinearVesting
Handle
rfa
Vulnerability details
Impact
In the claimConverted() function, the user can vest their vader token for a certain amount of time, but hasStarted modifier is missing,
this can lead to claimConverted() function is callable by anyone, and the user can claim eventhough the vesting havent been started by the owner.
Proof of Concept
https://github.com/code-423n4/2021-11-vader/blob/main/contracts/tokens/vesting/LinearVesting.sol#L158
Tools Used
Recommended Mitigation Steps
add hasStarted modifier
The text was updated successfully, but these errors were encountered: