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

function checkList is missing onlySanta modifier

Summary

Everyone can call 'checkList' function

Vulnerability Details

Function is missing :

modifier onlySanta() {
if (msg.sender != i_santa) {
revert SantasList__NotSanta();
}
_;
}

This means anyone can set s_theListCheckedOnce and cause different issues setting the status to however he sees fit.

function checkList(address person, Status status) external {
s_theListCheckedOnce[person] = status;
emit CheckedOnce(person, status);
}

Impact

Anyone can set his 's_theListCheckedOnce'

Tools Used

Manual review

Recommendations

Add the 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.

Give us feedback!