The transferDeposits function lacks checks to limit the lengths of the stem and amounts arrays provided as calldata. This could allow an attacker to call the function with excessively large arrays, leading to excessive gas consumption and potential transaction failure.
Users may experience transaction failures due to out-of-gas errors, resulting in gas wasted without state changes.
Users attempting to execute the function could incur unnecessary gas costs.
Manual review
Introduce a maximum limit on the size of the stem and amounts arrays to prevent excessive iteration and gas consumption.
Implement gas checks to ensure transactions remain within the block gas limit.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.