Access control modifier can be bypassed #147
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
valid
Lines of code
https://github.com/Badger-Finance/vested-aura/blob/v0.0.2/contracts/MyStrategy.sol#L370-L375
https://github.com/Badger-Finance/vested-aura/blob/v0.0.2/contracts/MyStrategy.sol#L390-L394
Vulnerability details
Impact
The
whenNotPaused
modifier inmanualProcessExpiredLocks()
can be bypassed simply by callingperformUpkeep(...)
with any argument. Those two functions do the same.Tools Used
Manual analysis
Recommended Mitigation Steps
If the design is not to allow such such call when paused, a
whenNotPaused
modifier should be used also inperformUpkeep(...)
.The text was updated successfully, but these errors were encountered: