TSender

Cyfrin
DeFiFoundry
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

Potential Out-of-Gas Error Due to Unbounded Array Parameters

Summary

The array parameters are unbounded.

Vulnerability Details

The areListsValid function takes two unbounded array parameters, recipients and amounts, which can potentially lead to an out-of-gas error if the arrays are large enough.

Moreso, the areListsValid function has a nested loop structure that iterates over the recipients array and, for each element, iterates over the remaining elements to check for duplicates.

For large input arrays, the gas consumption of this function can quickly exceed the gas limit, causing the transaction to fail with an out-of-gas error.

Impact

When the function is called with large input arrays, it can lead to failed transactions.

Tools Used

Manual review

Recommendations

Impose a maximum length restriction on the input arrays to prevent excessively large inputs.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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