Missing hasStarted modifier, can lead to user vesting before the owner begin the vesting #89
Labels
bug
Something isn't working
invalid
This doesn't seem right
LinearVesting
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
rfa
Vulnerability details
Impact
In the vestFor() function, the user can vest their vader token for a certain amount of time, but hasStarted modifier is missing,
this can lead to vestFor() function is callable by anyone, eventhough the owner havent begin the vesting yet.
Proof of Concept
https://github.com/code-423n4/2021-11-vader/blob/main/contracts/tokens/vesting/LinearVesting.sol#L214
Tools Used
Recommended Mitigation Steps
add hasStarted modifier
The text was updated successfully, but these errors were encountered: