Rock Paper Scissors

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

Front-Running Attack in Move Commitment

Summary: Players can front-run their opponent's reveal transaction to gain advantage.

Details: A player could watch the mempool for their opponent's reveal transaction and front-run it with their own reveal that beats the opponent's move.

Impact: Allows malicious players to always win games by waiting for opponent's reveal and submitting a winning counter-move.

Recommendation: Implement a two-phase reveal process where:

  1. Both players must reveal a commitment hash first

  2. Only after both commitments are on-chain can players reveal their actual moves

Updates

Appeal created

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

Support

FAQs

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