All owners can be removed by an owner, which bricks the CoinbaseSmartWallet
#51
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-181
grade-a
insufficient quality report
This report is not of sufficient quality
Q-22
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
🤖_08_group
AI based duplicate group recommendation
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
https://github.com/code-423n4/2024-03-coinbase/blob/main/src/SmartWallet/MultiOwnable.sol#L102-L110
Vulnerability details
Impact
Any
owner
can delete all owners by repeatedly callingremoveOwnerAtIndex()
.Once all
owners
are removed theCoinbaseSmartWallet
can't be used anymore and is bricked.Proof of Concept
Repeatedly call
removeOwnerAtIndex()
Tools Used
Manual review
Recommended Mitigation Steps
Consider checking at least one owner is left
(e.g. don't allow the last owner to be removed)
Alternatively don't allow any owner to remove himself.
Assessed type
Governance
The text was updated successfully, but these errors were encountered: