Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

Unprotected Initializer

Summary

Initializers must be protected

Vulnerability Details

Location: Function modifier SantasList.onlySanta() (src/SantasList.sol#99-104) is an unprotected initializer. The modifier restricts certain functions to be callable only by the Santa address.

Impact

Access Control: The checkList and checkTwice functions are intended to be called only by Santa (the owner). The contract uses a custom onlySanta modifier for this purpose. It's crucial that the i_santa address is securely managed to prevent unauthorized access.

Tools Used

Audit Wizard (Slither)

Recommendations

Protect initializers with modifiers/require statements

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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