The MultiSigWallet
allows owners to submit transactions for any amount/recipient without checking contract balance, leading to stuck approvals and failed executions.
submitTransaction
does not verify if the contract holds sufficient ETH for the proposed value
. Owners can approve transactions that exceed the contract's balance, causing executions to fail indefinitely and cluttering the transaction list.
MultiSig holds 1 ETH.
Owner1 submits a transaction for 2 ETH to address X.
Both owners approve it.
Execution fails repeatedly due to insufficient balance, wasting gas.
Poor user experience and potential for spam transactions. While funds aren't directly lost, contract usability is degraded.
Manual analysis, Slither.
Add a balance check in submitTransaction
: require(_value <= address(this).balance)
.
Implement a cancellation mechanism for invalid transactions.
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.