onlySanta
modifier isn't applied in function which should be callable only by santa.
onlySanta
modifier isn't applied in checkList
function.
Users which are checked only once cannot do anything in contract however opening this function to all users opens attack vector for frontrunning attack leading santa being unavaiable to check user second time using checkTwice
.
Santa call checkTwice
to check user second time (e.g. EXTRA_NICE).
Attacker can frontrun santa's call by calling checkList
function and setting user's status
value to different one than santa entered in his call (e.g. NICE).
santa's checkTwice
function call will revert because user's status
values doesn't match.
foundry
Add onlySanta
modifier to checkList
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.