setLockPeriods accepts multipliers less than 100 (1x mult) #137
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
duplicate
This issue or pull request already exists
invalid
This doesn't seem right
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
StErMi
Vulnerability details
Impact
In the
setLockPeriods
you are not making any checks on themultipliers
value for a given index. It means that the multiplier could be less than100
(1x).Proof of Concept
Tools Used
Manual
Recommended Mitigation Steps
If you don't want to enable multiplier less than 100 add a check on
setLockPeriods
likerequire(multipliers[i] >= 100, "INVALID_MULTIPLIER");
The text was updated successfully, but these errors were encountered: