MultiSig::submitTransaction
does not check whether the amount of the submitted transaction is lower or equal to the balance of the MultiSig.
Owners of the MultiSig can submit transactions with any amount, regardless of the actual funds available in the smart contract. The transaction will ultimately fail when calling MultiSig::executeTransaction
, as there will not be enough funds. However, this behavior should be avoided to limit unnecessary updates to the MultiSig::transactions
array, which is usually a gas-intensive operation.
Manual review
Add a check at the top of the MultiSig::submitTransaction
function which will make sure that the _value
parameter does not exceed the currently available funds in the contract.
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.