The protocol allows players to join token-based games using ETH functions without staking tokens, violating game rules and enabling unfair token rewards.
RockPaperScissors::joinGameWithEth
The joinGameWithEth
function lacks a check to ensure the game was created with ETH (game.bet > 0
). This allows players to join token-based games (created via createGameWithToken
) by sending msg.value = 0
, bypassing token staking requirements.
π Code Reference
Unfair Token Minting: Players can win tokens without staking, inflating the token supply.
Protocol Integrity: Trust in the gameβs fairness is compromised.
Direct Financial Loss: Legitimate players lose rewards to exploiters.
Manual Code Review
Add a simple check in the joinGameWithEth
function to ensure the game was created with ETH:
joinGameWithEth function lacks a check to verify the game was created with ETH
joinGameWithEth function lacks a check to verify the game was created with ETH
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.