Missing zero check for winners addresses could potentially lead to DOS _ditribute
function. Certain tokens, such as OpenZeppelin's implementation, revert when attempting to transfer tokens to the zero address. This could disrupt the _distribute
function, resulting in locked tokens within the contract.
The vulnerability occurs when the organizator
mistakenly passes a zero address
as a winner's address
. If this happens, the _distribute
function will attempt to transfer tokens to the zero address
, causing the token transfer to revert and potentially locking the tokens within the contract indefinitely.
DOS _distribute function and possibly locked tokens in contract forever
Manual Review
To mitigate this vulnerability adding zero check for winners addresses.
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.