Vests can be denied #169
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
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
cmichel
Vulnerability details
The
LinearVesting.vestFor
function (which is called byConverter
) reverts if there already exists a vest for the user:There's an attack where a griefer frontruns the
vestFor
call and instead vests the smallest unit of VADER for theuser
.The original transaction will then revert and the vest will be denied
Recommended Mitigation Steps
There are several ways to mitigate this.
The most involved one would be to allow several separate vestings per user.
The text was updated successfully, but these errors were encountered: