The MIPS contract's multiplication of two signed 32-bit integers is performed in an unchecked block, which the reporter claims can overflow and cause incorrect values to be written to memory and registers. An attacker could potentially corrupt contract state or break MIPS functionality.
The smart contract passes a disputed L2 block number to the VM that is always starting block + trace index + 1, ignoring the actual claimed block number. This allows an attacker to challenge a valid claim for a block earlier than the safe head by extending the trace to a later safe block, causing the honest party's defence to fail.
The readMem and writeMem functions in the MIPS contract only check 4-byte alignment, not whether the address is within the intended memory range. An attacker could potentially read or write to arbitrary memory addresses, manipulating sensitive state variables like preimageKey, pc, or heap.
The timestamp used to enforce the challenge period in large preimage proposals is only set when the submitter passes a finalize flag, so a malicious submitter can skip that flag and finalize an invalid proposal immediately. This lets an attacker bypass the challenge period and forge invalid claims that are then used in the fault dispute game.
The OP fault proof system replaces certain L2 precompile calls with preimage oracle queries that must be reproducible on L1. Because the bn256Pairing precompile can consume nearly the entire L2 block gas limit, the corresponding L1 preimage load can require more gas than a block allows, making the step impossible to execute and preventing invalid state transitions from being countered.
The LPP challenge period can cause malicious and freeloader claims to be uncounterable, and freeloader claims can be abused to entrap honest challengers, leading to stolen bonds. An attacker could force an honest challenger to inherit a clock smaller than the challenge period, making it impossible to counter a freeloader claim at MAX_GAME_DEPTH and steal the honest party's bond.
The clock extension logic in the FaultDisputeGame contract fails to grant the full doubled extension period when a team needs to generate an execution trace bisection root claim and counter a claim. This can leave a team with only half the intended time, potentially causing their clock to run out prematurely.
The initLPP function allows re-initializing an existing large preimage proposal, overwriting its partOffset and claimedSize metadata even after the challenge period has ended. An attacker can then squeeze the proposal with an incorrect claimedSize, causing the MIPS VM to produce an incorrect state and potentially win a fault dispute game dishonestly.
The MIPS virtual machine implementation in Optimism's contracts does not check that the address for the LH and LHU instructions is naturally aligned (2-byte aligned), as required by the MIPS specification. An attacker could potentially exploit this divergence from the spec, though no adverse effects have been observed to date.
When a blockchain reorganisation occurs, the addresses of dispute games can swap, causing an honest party's move to be applied to the wrong game and their bond to be lost. The report describes two scenarios where this can happen despite a previous fix.
The dispute game contract requires each game's UUID to be unique, but the UUID does not include the parent block hash. An attacker can pre-create games for unsafe L2 blocks, so when those blocks become safe the honest party cannot create a game for the correct root, blocking anchor state updates and freezing L2 withdrawals.
The MIPS emulator used in the dispute game implemented the SRAV shift instruction without masking the shift count to the low five bits of the register, so large shift amounts produced zero instead of the correct arithmetic shift. This could cause a valid root claim to be resolved as false.
The fault dispute game assumes the MIPS VM never panics, but if it does, a challenger can counter every bisection at one depth so that claims at the split depth are never challenged. This could let a malicious batcher force a panic and make a false L2 output root unchallengeable.
The step() function in the FaultDisputeGame contract does not check who proposed the Large Preimage Proposal (LPP) when awarding the bond, so an attacker can call squeezeLPP() and then step() to receive the bond that was intended to reimburse the LPP proposer for their high gas costs.
The PreimageOracle contract allows anyone to load preimage data for any address, including future precompile addresses, and mark it as valid. An attacker could pre-populate data for a precompile that does not yet exist, so that when that precompile is later added and accelerated, the stored data would be accepted as valid, potentially allowing invalid proofs to be validated.
The MIPS contract's ADD, ADDI and SUB instructions wrap on overflow instead of raising the Integer Overflow exception the MIPS specification requires. The author claims this lets a malicious actor forge invalid claims and challenge valid claims, though the judge found no current way to trigger it.
OS
Optimism Superchain
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.