Any malicious player can create multiple addresses to play the RockPaperScissors
game with themselves. For ETH games, RockPaperScissors::_finishGame
rewards winning player with ETH bet of both players (minus protocol fees) as well as a WinningToken
. Hence, malicious player can create multiple addresses to play ETH games with themselves, thus farming WinningToken
s, leading to an inflated circulating supply of WinningToken
and decreasing its value.
RockPaperScissors::_finishGame#L501
The minimum cost to execute this attack is:
minCostPerWinningToken = minBet * 2 sybil players * (100 - PROTOCOL_FEE_PERCENT) / 100
minCostPerWinningToken = 0.01 ETH * 2 * (100 - 10) / 100
minCostPerWinningToken = 0.18 ETH
Impact: High, inflated circulating supply of WinningToken
decreases its value
Likelihood: Low, the relatively costly farming of WinningToken
through this method (0.18 ETH per WinningToken
) deters this attack
Severity: Medium
Manual review
Do not give out WinningToken
s as extra rewards in ETH games. If there is a need to distribute WinningToken
s into the market consider, using liquidity pools
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.