The withdrawFees function strictly requires the contract's overall ETH balance to exactly equal totalFees.
Anyone can forcefully send ETH to a contract bypassing receive() or enterRaffle() functions by utilizing selfdestruct.
Likelihood:
High. An attacker only needs to sacrifice 1 wei to permanently trigger this lock.
Impact:
The withdrawFees function will always fail, permanently locking any legitimately collected protocol fees inside the contract.
Check if the balance is strictly greater-than/equal-to, or track active players safely.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.