# Panic in MIPS VM could lead to unchallengeable L2 output root claim

If the MIPS VM always panics, an attacker can counter every bisection game at SPLIT_DEPTH+1, making the L2 output root claim unchallengeable.

- Payout: Audit contest
- Severity: medium
- Program: Optimism
- Found by: Zubat
- Disclosed: 2024-08-16
- Write-up quality: 7/10
- Original: https://github.com/code-423n4/2024-07-optimism-findings/issues/54
- Library page: https://bugbountylibrary.com/r/c4%3A2024-07-optimism%3AM-05
- Tags: area:web3 domain:web3 impact:dos impact:integrity kind:contest platform:code4rena sev:medium tech:evm technique:chained technique:source-review vuln:business-logic vuln:dos

**Target:** FaultDisputeGame.sol bisection dispute game / MIPS VM
**Root cause:** The dispute game assumes the verified MIPS program never panics; if vmStatus is always PANIC, every bisection claim at SPLIT_DEPTH+1 can be countered, so claims at SPLIT_DEPTH (and the root) become unchallengeable.
**Steps:**
1. Cause the MIPS geth VM to always panic (e.g. malicious batcher uploads huge zero-blob channels forcing decompression, exhausting limited MIPS memory with no GC).
2. In the FaultDisputeGame, respond to every opponent bisection move at SPLIT_DEPTH+1 with a counter exploiting the PANIC state.
3. Since UNFINISHED cannot be a root claim and PANIC is always attackable, no claim at SPLIT_DEPTH is challenged.
4. Inductively the depth-0 root claim cannot be disputed, letting the attacker's L2 output root stand unchallenged.
**How found:** Reasoned about the dispute game's implicit assumption that the verified program never panics; observed that PANIC is always attackable while UNFINISHED cannot be a root claim, then traced the bisection induction from SPLIT_DEPTH+1 up to depth 0.
**Exploitation:** A malicious/compromised batcher posts oversized compressed zero-blob channels to L1; the MIPS VM decompresses them and panics due to limited memory and no garbage collection. With the VM always panicking, the attacker counters all bisection games at SPLIT_DEPTH+1, denying any dispute of the root claim and hijacking the L2 output root.
**Escalation:** Centralized batcher privilege used to force VM panic; panic state weaponized to deny all disputes up to the root claim.
**Insight:** When auditing optimistic rollup dispute games, check what happens if the fault-proof VM itself misbehaves (panic/OOM): a state that is always counterable at one depth can inductively make the root unchallengeable. Also examine batcher-controlled inputs (channel compression) as a way to trigger VM resource exhaustion.

