The SantasList::checkList function in the SantasList.sol contract does not have proper access control. This function is intended to be called only by the santa address, but currently, any address can call it.
This issue could allow an unauthorized address to manipulate the status of any person in the list, potentially leading to incorrect statuses being assigned.
Manual review
To resolve this issue, a modifier that restricts function access to only the santa address should be added to the checkList function. This can be achieved by using the onlySanta modifier which is already defined in the contract.
Here's how the updated checkList function would look:
This change ensures that only the santa address can call the checkList function, providing the necessary access control.
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.