checkList()
can be called by anyone when this function should have restricted acces.
In Santalist.sol
, the checkList()
is designed to set the initial status of a user. However onlySanta()
modifier is absent, and how is mentioned in the comments the function only can be called by santa. This omission allows access to the function for anyone.
This error introduces two potential vulnerabilities:
An attacker may exploit the event CheckedOnce(address person, Status status)
by spamming it.
An attacker could frontrun a user invoking collectPresent()
, attempting to claim their present by modifying, for instance, s_theListCheckedOnce
to the NAUGHTY status. This manipulation may result in the user's transaction failing, as it checks for:
Manual review.
Add onlySanta()
modifier to checkList()
.
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.