NFTBridge
60,000 USDC
View results
Submission Details
Severity: low
Invalid

Missing Storage Gap in Upgradeable Contract

Vulnerability Details

In upgradeable contracts, it's crucial to include a storage gap to allow for future storage variable additions without causing `storage collision` issues in upgraded versions. The absence of a storage gap in this contract is indeed a potential issue.

Starklane contract is an upgradeable contract which inherits from multiple other contracts (UUPSOwnableProxied, StarklaneState, StarklaneEscrow, StarklaneMessaging, CollectionManager), each of which may introduce their own storage variables.

contract Starklane is IStarklaneEvent, UUPSOwnableProxied, StarklaneState, StarklaneEscrow, StarklaneMessaging, CollectionManager

This complex inheritance structure emphasizes the need for a storage gap to ensure safe future upgrades.

Impact

Future upgrades that add new storage variables could potentially overwrite existing storage, leading to data corruption.

Tools Used

Recommendations

Consider appending a __gap variable as the last storage variable to the Starklane contract:

Updates

Lead Judging Commences

n0kto Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

invalid-upgradeable-storage-gap-known-issue

Known issue: Lightchaser

Support

FAQs

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