The createGameWithToken
function performs the external ERC‑20 transferFrom
Call before updating critical game state, enabling a malicious token contract to reenter and corrupt the freshly initialized game data.
If the game state was not updated before the call, then that user reenters that function with the old state and does malicious actions.
Reorder to Follow Checks → Effects → Interactions
Like that :
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.