Hawk High

First Flight #39
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Valid

Upgrading `LevelOne` with `LevelTwo` will cause storage clash, leading to incorrect storage variable values

[H-4] Upgrading LevelOne with LevelTwo will cause storage clash, leading to incorrect storage variable values

Description: After upgrading LevelOne to LevelTwo, the storage variables will clash, leading to incorrect values, Making the whole contract unusable. Will cause TEACHERS_WAGE to be increased to 40% instead of 35%, breaking the invariant.

Impact: Values of storage variables will be incorrect.

Proof of Concepts:

Recommended mitigation: All variables in LevelOne should match in order in LevelTwo, so that upgrade could be done safely.

Updates

Lead Judging Commences

yeahchibyke Lead Judge 10 months ago
Submission Judgement Published
Validated
Assigned finding tags:

storage collision

yeahchibyke Lead Judge 10 months ago
Submission Judgement Published
Validated
Assigned finding tags:

storage collision

Support

FAQs

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

Give us feedback!