Closed code423n4 closed 1 year ago
kirk-baird marked the issue as duplicate of #11
This is by design. In Emergency Mode, a user can still remove their deposits.
gte620v marked the issue as sponsor disputed
kirk-baird marked the issue as nullified
Lines of code
https://github.com/code-423n4/2022-12-Stealth-Project/blob/fc8589d7d8c1d8488fd97ccc46e1ff11c8426ac2/maverick-v1/contracts/models/Pool.sol#L339
Vulnerability details
Impact
There is no option to cancel an
EMERGENCY
mode in the pool.Once the pool is in an
EMERGENCY
mode, the pool can't work as normal forever.Proof of Concept
The pool can be changed to an
EMERGENCY
mode byadminAction()
.But once the pool is in an
EMERGENCY
mode, the pool can't be back to normal state forever.Tools Used
Manual Review
Recommended Mitigation Steps
There should be an option to cancel an
EMERGENCY
in the contract.