Refund function is vulnerable to reentrency attack.
If the user is a smart contract, it can call refund function and have a fallback function which will be run when receive the ether, and call again refund until all the funds are drained.
All the funds can be drained.
Solidity.
Either move the line "players[playerIndex] = address(0);" BEFORE "payable(msg.sender).sendValue(entranceFee);"
Or use a lock like "nonReentrant" from OpenZeppelin ReentrancyGuard.
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.