commitMove() function can be called multiple times to increase game.revealDeadline
PlayerA or PlayerB can call commitMove() function multiple times and increase game.revealDeadline as there is no check before increasing game.revealDeadline to see if player has already committed move.
malicious player can call commitMove() function multiple times so other player can not call timeoutReveal() function as the check in timeoutReveal() function:
" block.timestamp > game.revealDeadline "
won't be true.
Manual Review
Make these changes
Code suggestions or observations that do not pose a direct security risk.
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.