Liquid Staking

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

Storage Corruption risk in the VaultControllerStrategy contract

Summary

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

Vulnerability Detail

The VaultControllerStrategy contract is meant to be upgradeable. However, it inherits the Strategy contract, which is not upgrade-safe. No gap storage is implemented on Strategy. Without gaps, adding new storage variables to the Strategy 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 VaultControllerStrategy contract may be corrupted during upgrading.

Tools Used

Manual Review

Recommendations

Add storage gaps to the Strategy 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.