Description:
The setEggFindThreshold() function allows the owner to set any threshold up to 100%:
Impact:
While this is an owner-only function, giving the ability to set a 100% success rate could be abused if the owner's keys are compromised. It also reduces trust in the game's fairness since players must trust the owner won't abuse this power.
Proof of Concept:
Owner account is compromised
Attacker sets threshold to 100%
Attacker's address finds egg on every search
All NFTs are minted to attacker immediately
Recommended Mitigation:
Consider adding an upper limit below 100% (e.g. 50%) to maintain some game balance even if the owner account is compromised.
Impact: Low
Likelihood: Medium
Severity: Low
Owner is trusted and is not expected to interact in ways that would compromise security
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.