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

checkList() is public

Summary

In the comments of checkList() it says that this method should only be callable by Santa but there is no such check and is callable by anyone

Vulnerability Details

Method's comments and implementation mismatch. the method CheckList() should only be callable by Santa. the onlySanta() modifier is missing. anyone can call it and update his status in the s_theListCheckedOnce mapping.

Impact

Impact is quite low as to be able to receive a present via the collectPresent() method you need to be NICE or EXTRANICE in both the s_theListCheckedOnce and s_theListCheckedTwice mappings. and the function that modifies s_theListCheckedTwice (checkTwice() ) is secure.

Tools Used

Recommendations

add onlySanta() modifier

Updates

Lead Judging Commences

inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

Access Control on checkList()

Anyone is able to call checkList() changing the status of a provided address. This is not intended functionality and is meant to be callable by only Santa.

Support

FAQs

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