the refund function is vulnerable to reentrancy attack
reentrancy attack can happen because the interaction is before the effect of zeroing
out the player's array entry.
Reentrancy attack can occur if someone calls the function multiple times before the first call is done sending the refund. Someone could use this to get multiple refunds and drain the contract.
VSCode
should zero out the player's array entry before sending the value to the player.
reentrancy in refund() function
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.