Tokens could be lost if sent to address(0) when calling deployProxyAndDistribute
.
If the organizer intentionally (griefing) or unintentionally inputs address(0) as the data in the deployProxyAndDistribute
function of contract ProxyFactory.sol
, the tokens will be lost.
Organizer comes up with a contest idea and submits it
Contest is created and funded by sponsors with e.g. 1000USDT
Contest concludes and organizer calls deployProxyAndDistribute
with address(0) as input in the data for the winner address[]
There is no check if value 0
exists for winner address[]
inside _distribute
function in Distributor.sol
:
Loss of sponsor funds as the tokens are all lost.
VSCode, Manual Review
Incorporate checks inside the _distribute
function to make sure there is no address zero inside of the winners address[]
. The solution to this issue is very simple, and not gas-heavy either, thus I don't see a reason not to include it as a security measure in any case.
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.