Closed c4-bot-5 closed 8 months ago
alex-ppg marked the issue as duplicate of #97
saxenism (sponsor) confirmed
saxenism marked the issue as disagree with severity
Thank you for the finding.
We, however think this is a medium severity issue since in the current codebase admin could also unfreeze.
alex-ppg changed the severity to 2 (Med Risk)
alex-ppg marked the issue as partial-75
alex-ppg marked the issue as satisfactory
Lines of code
https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/contracts/ethereum/contracts/state-transition/StateTransitionManager.sol#L166
Vulnerability details
Impact
There is a typo when unfreezing an hyperchain, which makes it impossible to unfreeze a previously freezed one.
Proof of Concept
Pretty visual
StateTransitionManager, function unfreezeChain
Calling
unfreezeChain
on a freezed one will always revert due to the followingrequire
inAdmin, function freezeDiamond
Runnable POC (for completeness)
Recommended Mitigation Steps
Trivial
StateTransitionManager, function unfreezeChain
Assessed type
Other