Description: The function EggHuntGame::searchForEgg()
can be called unlimited times by any user without cooldown, rate limit, or cap per participant.
This design allows users or bots to spam the function in tight loops, increasing their chance of finding eggs through brute force rather than fair random discovery. While the NFTs currently have no stated economic value, this flaw undermines the fairness and competitive integrity of the game.
Impact:
Encourages botting and automation to gain an advantage.
Rewards those who can interact faster or more often.
Disincentivizes casual users who rely on “luck”.
May overload the contract if many users attempt spam at once.
Manual review, Foundry
Recommended Mitigation:
It is recommended to introduce a per-user cooldown mechanism
using a mapping
to track each user's last search attempt. This will prevent a player (or bot) from interacting repeatedly without restrictions.
Contract lacks any cooldown mechanism, search limits, or costs in the searchForEgg() function
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.