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

Incorrect revert message

Vulnerability Details

The error selector is placed in free memory pointer 0x40 to respect solidity memory layout. However, revert message is copied from 0x1c and let 0x00000000(bytes4) as the revert message. It should be 0x5c.

[0x00]: 0x0000...00000000 <- 0x1c
[0x40]: 0x0000...bac65e5b <- 0x5c

Tools Used

Manual

Recommendations

+ revert(0x5c, 0x04)
- revert(0x1c, 0x04)
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.