The checkList function in the SantasList contract lacks proper access control, allowing any user to arbitrarily set the naughty or nice status of any address.
The checkList function in the SantasList contract does not use the onlySanta modifier or any other form of access control. This omission allows any external caller to modify the status of any address in the s_theListCheckedOnce mapping. The function is intended to be called exclusively by the Santa (contract owner or designated authority), but this flaw undermines this design principle.
This vulnerability exposes the contract to potential malicious activities where an unauthorized user can manipulate the status of other addresses in the naughty or nice list. Such an exploit can disrupt the intended functionality of the contract, leading to unfair distributions of rewards or penalties.
Manual
modify the checkList function to include the onlySanta modifier
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.