It's possible to reenter selectWinner() function when funds are sent, thus draining any of the fees stored.
If the caller of selectWinner() is a contract, it can be used to reenter the function. If there are any stored funds in the contract because the owner has not withdrawn their fees, these can be drained each time the user re-enters the contract.
Medium
Manual review
Add a non-reentrant modifier to the function to ensure this behavior is not possible.
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.