Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Valid

Wrong storage lot accessed when reverting

Summary

Incorrect storage lot being accessed when reverting.

Vulnerability Details

revert(0x1c, 0x04) used in line 41 and 54 wont read the correct error signature because it's looking in memory slot 0x1c which is 36 bytes before slot 0x40.

Impact

Medium

Tools Used

Brain

Recommendations

Change revert(0x1c, 0x04) to revert(0x5c, 0x04) OR 0x40 in mstore to 0x00

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Wrong error storage

Support

FAQs

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