Rock Paper Scissors

First Flight #38
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

No Mechanism for Abandoned Games

Lack of Mechanism for Handling Abandoned Games

Summary:


No function allows players to recover funds if both abandon the game without revealing moves.


Vulnerability Details:


No emergency escape or refund exists if both players timeout.

Code Snippet:

// No fallback or force refund mechanism after timeout
function revealMove(uint256 _gameId, uint8 _move, bytes32 _salt) external {
...
}

Tools Used:

Solidity

VS Code

Recommendations:

Add an abandonGame() function after double timeout expiry to allow safe fund recovery.

Updates

Appeal created

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Timeout Mechanism Functionality

The player who fails to reveal their move within the deadline forfeits the game to the opponent who did reveal

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Timeout Mechanism Functionality

The player who fails to reveal their move within the deadline forfeits the game to the opponent who did reveal

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.