The executeTransaction
function in MultiSig
contract attempts to send ETH without verifying if the contract has sufficient balance to complete the transaction:
The function only checks for approvals and execution status but fails to validate if address(this).balance >= txn.value
before attempting the transfer.
Transaction might revert after marking it as executed
Could lead to stuck transactions that are marked as executed but failed to transfer funds
Inconsistent contract state where transaction is marked executed but funds weren't transferred
Add balance validation before execution
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.