Defender may not be able to call disableAllMultisigs #404
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
downgraded by judge
Judge downgraded the risk level of this issue
fix security (sponsor)
Security related fix, should be fixed prior to launch
grade-c
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/Ocyticus.sol#L55-L66
Vulnerability details
Impact
Ocyticus only have a
disableAllMultisigs
function, which may revert if the count is too large (due to out of gas). Although the multisig set is currently limited to 10, it might change in the future and there are no clear documentation that the Ocyticus would also need to be redesigned.https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MultisigManager.sol#L79
/// @dev There will never be more than 10 total multisigs. If we grow beyond that we will redesign this contract.
Proof of Concept
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/Ocyticus.sol#L55-L66
Recommended Mitigation Steps
Allow Ocyticus to disable individual multisig
The text was updated successfully, but these errors were encountered: