The claimThrone()
function is designed to allow any address other than the current king to claim the throne by sending a required ETH fee. Once claimed, the currentKing
is updated, and the game progresses.
However, the condition meant to restrict the current king from reclaiming the throne is incorrectly written to allow only the current king. As a result, once a player becomes the king, all further throne claims by other players are permanently reverted, causing a Denial-of-Service (DoS).
Likelihood:
This issue occurs immediately after the first successful claimThrone()
call
All subsequent calls by new players will revert and be unable to participate
Impact:
Game becomes stuck in a permanent state
No further revenue or gameplay progression can occur
Loss of trust and funds from players expecting game functionality
This fix correctly prevents the current king from reclaiming while allowing all other players to challenge for the throne, restoring core game functionality.
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.