Liquid Staking

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

Storage Corruption risk in the StakingPool contract

Summary

Storage of the StakingPool contract may be corrupted during an upgrade.

Vulnerability Detail

The StakingPool contract is meant to be upgradeable. However, it inherits the StakingRewardsPool contract, which is not upgrade-safe. No gap storage is implemented on StakingRewardsPool. Without gaps, adding new storage variables to the StakingRewardsPool contract could potentially overwrite the beginning of the storage layout of the child contract, causing storage collision and critical misbehaviors in the system.

Impact

Storage of the StakingPool contract may be corrupted during upgrading.

Tools Used

Manual Review

Recommendations

Add storage gaps to the StakingRewardsPool contract.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

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