The createTradingAccountAndMulticall
function allows users to create a new trading account and execute multiple calls in a single transaction. However, it does not validate the length of the calldata array data
, which can potentially lead to excessive gas consumption or denial-of-service (DoS) attacks.
Lack of validation for the length of the data
array. An attacker can provide a very large data
array, causing the transaction to consume excessive gas or fail due to block gas limit, potentially leading to DoS.
Gas Consumption: An attacker can craft a transaction with a very large data array, causing the contract to consume a significant amount of gas.
Denial-of-Service (DoS): The function may fail due to block gas limit constraints if the data array is excessively large, potentially preventing legitimate users from interacting with the contract.
Manual
Validate the length of the data array to ensure it is within a reasonable limit before processing the multicall. This will prevent excessive gas consumption and mitigate the risk of DoS attacks.
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.