The owner can update the gracePeriod
at any time using updateGracePeriod
.
The owner is allowed to change the grace period even while the game is still running, which can unfairly alter the game's flow or outcome.
Likelihood:
This will occur any time the owner wants to favor themselves or another player while the game is still active.
It can be triggered manually, making it a targeted attack vector.
Impact:
Owner can shorten grace period and quickly declare a winner.
Undermines fairness and trust in the game's integrity.
The test shows how the contract owner can cheat:
A player claims the throne.
Time passes, and the game should end.
But the owner changes the grace period to a longer time.
The owner claims the throne after the original grace period ended.
Then declares themselves the winner.
This proves the owner can manipulate the game timing in their favor.
To prevent abuse, only allow the owner to change the grace period after the game ends.
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.