While there is an onlySanta
modifier, and it's applied to checkTwice
, it's not applied to checkList
.
This allows anyone to add themselves, or update their status if they're already there.
Depending on Santa's workflow, the impact may be minimal, or it may be major. Since a user can pre-emptively add themselves to the list as NICE or EXTRA_NICE, if Santa were to look for those that weren't checked twice and perhaps auto-checking twice late on the 24th, it could allow tricking Santa. However, if Santa always just set someone's status and soon after, checked twice, the impact is minimal as Santa would overwrite the status previously set.
forge test
. Wrote a test proving anyone can call checkList
.
Apply onlySanta
modifier to checkList
. Write missing negative tests (expecting reverts with custom error) for both checkList
and checkTwice
.
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.