The checkList(address,Satatus)
function can be called by everyone. Therefore, it should be marked as onlySanta
modifier.
In order to maintain control authorization in the contract, it is essential to include modifiers to functions. Even though the checkList(address, Status)
function is intended to be invoked only by the Santa user, the call operation is not verified with the onlySanta
modifier. It is all open to any external calls. By implementing the onlySanta
modifier in the checkList(address, Status)
function, unauthorized calls can be prevented.
Anyone can change their first status.
Finally run the test with: forge test
Foundry
checkList(address,Satatus)
should be marked as onlySanta
.
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.