Description:
In EggHuntGame::endGame
, the contract does not validate whether the game's duration has fully elapsed before allowing the owner to end it. This enables the owner to terminate the game prematurely.
Impact:
Players may lose the opportunity to participate and obtain an EggstravaganzaNFT
, which affects the fairness of the game.
Proof of Concept:
Result:
Manual review, Foundry
Recommended Mitigation:
It is recommended to add a check to ensure that the game time has elapsed before allowing the owner to end the game. This ensures the game runs for its intended duration and prevents premature termination.
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.