Liquid Staking

Stakelink
DeFiHardhatOracle
50,000 USDC
View results
Submission Details
Severity: high
Invalid

Incorrect implementation of upgradeable `OperatorStakingPool` can lead to future storage collisions

Summary

Incorrect implementation of upgradeable OperatorStakingPool can lead to future storage collisions upon contract upgrade.

Vulnerability Details

The OperatorStakingPool is designed to be UUPSUpgradeable. However, it lacks one core best practice regarding UUPSUpgradeable contracts.

It lacks the provision of reserved storage slots: uint256[] __gap.

For more details on how to implement UUPS Upgradeable contracts, watch Guardian Audit Owen's YouTube video here: https://youtu.be/6aPyykZhglM?si=CfSLd3ENICZD8pLg

Impact

Storage collision in future upgrades is possible.

Tools Used

Manual Review.

Recommendations

Include uint256[] __gap .

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.