According to the documenation Only Santa should be allowed to call the checkList
function
The checkList
function is an external function that is missing the onlySanta
modifier
The checkList
function is opened to anyone calling it, which means any random person can impersonate Santa and could be influencing santa to call the checktwice
function in their favor.
Below you will find a test case showing that anyone can call the checkList
function
Here is the function
Here is the test showing that anyone can call the checkList
function. You can add this test directly to SantasListTest.t.sol
Foundry, manual
Add an onlySanta modifer to the above function
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.