Data given in different functions of ProxyContracts for distribution of prices is not validated properly.
_distribute.ProxyContract did not get validation when passed in _distribute function,Prize distribution without any data will not be possible and the prizes can get lost due to unchecked data length.
_distribute(proxy, data);
https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/ProxyFactory.sol#L136
https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/ProxyFactory.sol#L165
https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/ProxyFactory.sol#L191
https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/ProxyFactory.sol#L217
Manual Review
add a check for data.length > 0
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.