The claimThrone()
allows any new player to become the new king by sending the required claim fee, increamenting the pot, and updating the game state accordingly.
However, the function currently includes a faulty validation check that requires msg.sender
to already be the current king. This logic prevents anyone, including new participants, from claiming the throne - effectively rendering the game unplayable.
Likelihood: High
This issue will occur when any user attempts to claim the throne.
Impact: High
No one can claim the throne, halting the core functionality of the game. The game remains stuck in the initial state, with no progress possible.
The following PoC demonstrates that the validation logic is inverted — it blocks all valid claim attempts from non-kings, including the first player.
By flipping the condition, the current king is prevented from re-claiming the throne while allowing new participants to join and advance the game.
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.