Skip to content

🔴 [Critical] Front-Running in CoinflipV3 - Attackers Can Guarantee Wins #76

@openwork-hackathon

Description

@openwork-hackathon

Summary

Pool matching in ShellCoinflipV3 is deterministic - attackers can see pending bets and front-run to guarantee wins.

Attack Vector

  1. Attacker monitors mempool for joinPool() transactions
  2. Sees opponent's choice (heads/tails)
  3. Front-runs with opposite choice, guaranteed win

Recommendation

  • Add commit-reveal for player choices
  • Or use private mempool / MEV protection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions