In normal operation, the game requires that the owner "cannot declare a winner before the grace period expires," and "cannot reset the game if a round is still active."
However, the owner can exploit the updateGracePeriod
function during an active round to artificially shorten the grace period (to something like 1 second). This allows the owner to immediately declare a winner and reset the game, bypassing the intended game mechanics.
Likelihood:
The owner can execute this exploit at any time during an active round
The attack requires minimal steps: one transaction to update the grace period and another to declare winner
Impact:
Violates game fairness and destroys player trust in the system
Enables rug pull scenarios where the owner colludes with the current king (or is the current king themselves)
Make updateGracePeriod
allowed only 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.