Description: If player A creates a game requiring a winning token bet, and player B joins using joinGameWithEth
while sending 0 ETH, player B can still join the game successfully.
This enables player B to participate without placing any actual winning token
as a bet. If player A subsequently calls cancelGame
, player B will receive 1 winning token for free.
Impact: This compromises the fairness of the game, as players can effortlessly fabricate any desired amount of winning tokens.
Proof of Concept: add the following test and run it
Recommended Mitigation:
add a game.bet >= minBet
check in joinGameWithEth
function
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.