The minipools creation could be compromised if is not possible to register more multisigs and all of them are disabled #349
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-521
satisfactory
satisfies C4 submission criteria; eligible for awards
sponsor duplicate
Sponsor deemed duplicate
Lines of code
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MultisigManager.sol#L35
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MultisigManager.sol#L55
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MultisigManager.sol#L68
Vulnerability details
Impact
The
MultisigManager.sol
allows to register the multisigs that are valid for the Minipools administration. There is a limit for the registration.If for some reason all the Multisig are disabled/compromised, it would not possible to add more multisig because the limit. The protocol can not create/enable more multisigs and is not possible to create minipools because there are not any enabled multisig.
All multisigs could be compromised and arises the necessity to register more multisigs in order to assign them for the minipool administration. It is an edge case but it is possible.
Proof of Concept
I did the next test:
Tools used
Foundry/VsCode
Recommended Mitigation Steps
Count only the validated/enabled multisigs in order to control the limit.
The text was updated successfully, but these errors were encountered: