Solidity enums default to uint8
, and unchecked input values can cast to invalid enum states.
This allows casting of invalid values like 3, 4, 255 to undefined states, which can break logic or force undefined behavior in comparisons.
Denial of service
Inconsistent game outcomes
Manual review
Fuzz testing
Validate input before casting:
Code suggestions or observations that do not pose a direct security risk.
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.