the function below
should be called only by santa but its missing an access control which makes it vulnerable to calls that are not from santa
since any one can call the function it means some users will call the function and some malicious users in this case naughty can sneak in
medium - The lack of access control in checkList potentially allows an attacker to manipulate the s_theListCheckedOnce mapping arbitrarily, leading to an incorrect or compromised status comparison in the checkTwice function. This undermines the integrity of the entire naughty or nice assessment process.
manual analysis
add the access control modifier so you only allow santa to check the list
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.