Rock Paper Scissors

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

Front-Running in Move Revealing inside the `RockPaperScissors::revealMove` function

Description: Players can see each other's revealed moves and potentially change their own move before the transaction is confirmed.

Impact: Players can cheat by waiting to see the opponent's move before revealing their own.

Proof of Concept:

// Attacker watches for opponent's reveal transaction
// Sees opponent revealed Rock
// Quickly submits their own transaction revealing Paper

Recommended Mitigation: Implement commit-reveal scheme with a time delay between commits and reveals.Implement commit-reveal scheme with a time delay between commits and reveals.

Updates

Appeal created

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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