Unrestricted vestFor #229
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
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
pauliax
Vulnerability details
Impact
Anyone can call function vestFor and block any user with a tiny amount of Vader. This function has no auth checks so a malicious actor can front-run legit vestFor calls with insignificant amounts. This function locks the user for 365 days and does not allow updating the value, thus forbids legit conversions.
Recommended Mitigation Steps
Consider introducing a whitelist of callers that can vest on behalf of others (e.g. Converter).
The text was updated successfully, but these errors were encountered: