Sparkn

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

no validation on calldata when distributing funds

Summary

No validation on calldata when distributing funds

Vulnerability Details

When the organizer or owner distributes funds there is no check on the calldata that the distribute function selector in Distributor.sol is called

Impact

There is a small risk of the transfer of whitelisted tokens being delayed if the calldata with the distribute function selector isn't passed

Tools Used

Manual Review

Recommendations

add a a check in _distribute method in the proxy factory https://github.com/Cyfrin/2023-08-sparkn/blob/main/src/ProxyFactory.sol#L249
bytes4(data) == function_selector_of_distribute

Support

FAQs

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

Give us feedback!