Description: The owner of the EggHuntGame
contract is allowed to end game at any point during the active duration of the game. This makes it impossible for players to search for eggs, even if the game duration has not yet expired, effectively restricting participation within the stipulated gaming time frame.
Impact: Players can be restricted from participating in the game, even if the stipulated duration has not expired.
Proof of Code:
Code
Recommended Mitigation: Add a check to the EggHuntGame::endGame
function to ensure that the duration of the game has fully elapsed before allowing the owner to end the game. This will help preserve the integrity of the game's intended timeline and ensure fair participation for all players.
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.