The withdrawDepositTo function in the Account contract lacks validation for its input arguments, specifically the to address and amount. This can lead to unintended behavior such as transferring funds to an invalid address or attempting to withdraw an invalid amount.
Invalid to Address: If the to the address is set to address(0), the ETH sent will be irrecoverably lost as it goes to the zero address, effectively burning the funds.
Invalid amount: If the amount is set to zero or more than the contract's balance, it could result in failed transactions or unintended loss of funds due to insufficient balance.
Manual Review
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.