If a person is not in s_theListCheckedOnce his status will default to 0.
Any person that called in s_theListCheckedOnce has a default value of 0 (NICE) for status,
If a person has not went through the first check , the s_theListCheckedTwice mapping will have his Status set to 0 as default.
This means that any person can be set to "NICE" in without going through the first check.
Manual review
Enums starting from 0 is not a viable state, use other ways to store the Status.
Change the enum STATUS so that in default value 0 to have a UNCHECKED value and implement it's needed checks.
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.