Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

The input calldata value `data` in the function `deployProxyAndDistribute` should be checked if its length is 0

Summary

The input bytes value of data of function deployProxyAndDistribute must be checked if its size is 0.

Vulnerability Details

The sanity check for input data data in the function deployProxyAndDistribute in the contract ProxyFactory should be checked if the length of data is zero. The user might provide data.length = 0

Impact

This could lead to unexpected behavior of the protocol

Tools Used

Manual Review

Recommendations

Add this line to the above function

+ if(data.length == 0) revert Proxy__DataLengthZero();

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.