There is no check for address(0) for winners when distributing the rewards.
For the winner's address, in the function _distribute(), there is no check for address(0).
If you send the rewards to the winners with address(0), it causes a loss of funds.
Manual review
Put a check in the function _distribute() for the winner's address to not be addressed (0).
like this :
for (uint256 i; i < winners.length; ) {
if (winners[i] == address(0)) revert ;
unchecked {
++i;
}
}
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.