The collectPresent
function allows any user to collect a present due to the default Status.NICE
(0) in the Status
enum.
Default Status Exploit: Users can bypass checks as uninitialized status defaults to NICE
.
Uncontrolled Present Distribution: Illegitimate users may collect presents, disrupting intended functionality.
Status Initialization: Implement a mechanism to set an explicit default status, like NOT_CHECKED_TWICE
.
In Solidity the first element of an enum is the default value. In Santa's List, the means each person is mapped by default to 'NICE'.
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.