[L-02] eggFindTreshold
should not be adjusted during an active game
The function EggHuntGame.sol::setEggFindThreshold()
allows the game owner to adjust the egg-fining chance setting up the state varialbe eggFindTreshold
. There is no check if the treshold is updated during an active game. This will compromise the game fairness and will lead to different possibility of egg-finding for different players.
Missing a check for state variable gameActive
allows the game owner to update the treshold during an active game, which leads to:
compromising the game fairness
Manual review
Add the following check to EggHuntGame.sol::setEggFindThreshold()
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.