Closed sherlock-admin4 closed 5 months ago
Escalate
Please take a look. This is a dupe of #90.
Escalate
Please take a look. This is a dupe of #90.
You've created a valid escalation!
To remove the escalation from consideration: Delete your comment.
You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.
Agree with the escalation, this is a dupe of #90, although the validity/severity of the issue is pending.
Will accept escalation but severity is dependent on outcome of 90
Result: Medium Duplicate of #90
haxatron
medium
Anchor state registry can be corrupted which will prevent game creation of the same type.
Summary
Anchor state registry can be corrupted which will prevent game creation of the same type.
Vulnerability Detail
When the dispute game is initialized, the anchor root and the root block number will be pulled out of the anchor state registry and a few checks will be done.
FaultDisputeGame.sol#L513-L575
Therefore, if these values become corrupted, it is possible to prevent the creation of new, valid dispute games as the checks will revert. For instance, if attacker is able to corrupt the anchor root to
bytes32(0)
, revert occurs. Similarly, if they can corrupt anchor root block number to a high number then revert occurs and it will be impossible to create new dispute games of the same type.Because we know that an invalid dispute game might get wrongly accepted as valid, and there is no air-gap between the resolution of a game and the updating of the anchor state registry. The anchor state registry can become corrupted with these values, which will prevent the creation of any new dispute game types.
FaultDisputeGame.sol#L386-L402
AnchorStateRegistry.sol#L59-L87
Clarification from sponsor for this issue was:
However, I am still submitting this anyway in case somehow a duplicate of this gets accepted.
Impact
Anchor state registry can be corrupted which will prevent game creation of the same type.
Code Snippet
https://github.com/sherlock-audit/2024-02-optimism-2024/blob/main/optimism/packages/contracts-bedrock/src/dispute/FaultDisputeGame.sol#L386-L402
Tool used
Manual Review
Recommendation
The protocol's way of remediating is updating the game type in both the optimism portal 2 and the anchor state registry
Duplicate of #90