sherlock-audit / 2024-06-leveraged-vaults-judging

9 stars 8 forks source link

Zealous Cornflower Nightingale - Update initializer modifier to prevent storage collision #34

Closed sherlock-admin4 closed 2 months ago

sherlock-admin4 commented 2 months ago

Zealous Cornflower Nightingale

Low/Info

Update initializer modifier to prevent storage collision

Summary

The dependencies used are not the latest. and the versions below 5.0.0 had this issue

Vulnerability Detail

https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4460

Impact

this version can led to a risk of storage collisio

Code Snippet

https://github.com/sherlock-audit/2024-06-leveraged-vaults/blob/main/leveraged-vaults-private/contracts/vaults/staking/BaseStakingVault.sol#L60

Tool used

Manual Review

Recommendation

update to latest versions

sherlock-admin3 commented 2 months ago

1 comment(s) were left on this issue during the judging contest.

0xmystery commented:

Low/QA at most