Sparkn

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

Array lengths not checked

Summary

Array lengths not checked

Vulnerability Details

If the length of the arrays are not required to be of the same length, user operations may not be fully executed due to a mismatch in the number of items iterated over, versus the number of items provided in the second array

Impact

File: src/Distributor.sol
92: function distribute(address token, address[] memory winners, uint256[] memory percentages, bytes memory data)
93: external
94: {

92-94

Tools Used

Personal bot

Recommendations

Check array length(limit) and then use it

Support

FAQs

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