The function checkList
should be only callable by Santa as mentioned in the documentation.
But anyone can call the function.
The function checkList
is not protected and anyone can call this function as it is an external
function. There is no verification on which address calls it.
The documentation clearly indicates that this function should only be callable by Santa
As anyone can call the checkList
function, it can be possible to change the status of any address at any time.
Someone could for example decide to change the status of all nice or extra nice adresses which would prevent them to collect presents
Manual
Add onlySanta
as a modifier of the function :
function checkList(address person, Status status) external onlySanta {
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.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.