Description: The createGameWithToken
function only checks if the _totalTurns
passed to it is more than 0 and if it's an odd number. A player can create a game a very high turn count and be able to play for a long time with only a small bet. They can also start a game with a single turn. Both of these scenarios are against the docs which state that a game should only last 3-5 turns.
Impact: Players can create games with more or less turns than is specified in teh docs.
Recommended Mitigation: Change the require constraint in the createGameWithToken
function to only allow turns between 3 and 5.
Code suggestions or observations that do not pose a direct security risk.
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.