DeFiHardhat
35,000 USDC
View results
Submission Details
Severity: low
Invalid

Array lengths not checked

Summary

functions does not check whether the lengths of the arrays submitted are equal. This can lead to unexpected results.

Vulnerability Details

If the length of the arrays are not required to be of the same length, user operations may not be fully executed.

Impact

If the ids array is a shorter length than the other arrays, the additional values in the other arrays will be ignored. This could lead to transfers with unexpected results, which would be better served by reverting.

Tools Used

Manual Review

Recommendations

Add a check to the function that confirms that to, ids, and accounts are all equal length.

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Informational/Invalid

Support

FAQs

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