Hunt prep
Before you test Optimism Superchain
What 16 disclosed reports say about Optimism Superchain: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 8 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Memory corruption lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Multiplication overflow leading to memory corruption and incorrect register write-back
The reporter suggested using SafeMath or checking for overflow before conversion, but the judge and another commenter noted that the proposed fix was functionally equivalent and that the correct behaviour is to wrap around without throwing.
Disclosed
-
Invalid DISPUTED_L2_BLOCK_NUMBER is passed to VM
The disputed L2 block number should be capped at the claimed L2 block number.
Disclosed
-
An attacker can bypass the challenge period during LPP finalization
The squeezeLPP function should also revert when the proposal timestamp is zero, so the challenge period cannot be skipped.
Disclosed
-
L2 precompile calls can be impossible to reproduce on L1
The accelerated precompiles system should avoid precompiles with dynamic gas costs, even though this increases the execution trace size.
Disclosed
-
The LPP challenge period can cause malicious and freeloader claims to be uncounterable and can also cause freeloader claims to be abused to entrap honest challengers
The clock extension at MAX_GAME_DEPTH - 1 should be increased to CHALLENGE_PERIOD + CLOCK_EXTENSION, as recommended.
Disclosed
-
In some cases, proper CLOCK_EXTENTSION time cannot be ensured to generate the initial instruction trace
The condition should be split so that the doubled extension is applied when the next position is at the split depth and the remaining time exceeds the maximum minus twice the extension.
Disclosed
-
LPP metadata can be altered after the challenge period is over, allowing incorrect states to be proven
The initLPP function should reject calls on proposals that already have metadata, remove the unnecessary storage read, and squeezeLPP should verify that bytesProcessed equals claimedSize.
Disclosed
-
Missing address check for instructions LH and LHU
The team intends to fix this by checking the address and reverting when the least-significant bit is non-zero, aligning with the MIPS specification.
Disclosed
-
Honest party’s move could become invalid when re-org takes place
The report recommends using cloneDeterministic (create2) and checking a claim hash that includes the position and parent claim hash; the text does not state that this was implemented.
Disclosed
-
MIPS - Incorrect implementation of SRAV instruction
The shift count should be masked with 0x1F before shifting, as is done for the other shift instructions.
Disclosed
-
Panic in MIPS VM could lead to unchallengeable L2 output root claim
The report suggests setting the split depth to an odd number, but the maintainer notes this introduces other problems and a real fix needs a multi-proof architecture.
Disclosed
-
The LPP proposer may not be reimbursed their gas costs by the bonds at MAX_GAME_DEPTH because step() does not check if the LPP proposer is the one that called it
The step() function should assign the bond to the party that loaded the data into the preimage oracle, for example by tracking the preimage proposer and using that address instead of msg.sender.
Disclosed
-
Addresses can be pre-populated with bad data
The contract should restrict loading preimage data to only known precompile addresses or otherwise prevent pre-population for future precompiles.
Disclosed
-
The MIPS doesn’t implement ADD , ADDI , and SUB instructions correctly
The instructions should raise an Integer Overflow exception when overflow occurs; the text does not say a fix was applied.
Disclosed