Hunt prep
Before you test Optimism Update
What 25 disclosed reports say about Optimism Update: 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 | 13 | 0 | – | – | $0 |
| DoS lesson | 11 | 0 | – | – | $0 |
| Race condition 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.
-
Legacy withdrawals can be relayed twice, causing double spending of bridged assets
The report recommends reading withdrawal hashes from the old contract's successfulMessages mapping during the pre-check and skipping already-relayed withdrawals, cleaning up the storage layout, and removing the now-useless check in relayMessage.
Disclosed
-
Gas usage of cross-chain messages is undercounted, causing discrepancy between L1 and L2 and impacting intrinsic gas calculation
The gas calculation should include the entire wrapped message, including the relayMessage calldata, as shown in the recommended code change.
Disclosed
-
All migrated withdrarwals that require more than 135,175 gas may be bricked
The migration process should be adjusted so that migrated withdrawals are directly saved as failedMessages on the L1CrossDomainMessenger and marked as finalizedWithdrawals on the OptimismPortal, rather than being reproven through the normal flow.
Disclosed
-
Causing users lose fund if bridging long message from L2 to L1 due to uncontrolled out-of-gas error
The baseGas calculation should include the memory expansion effect when hashing long messages.
Disclosed
-
Incorrect calculation of required gas limit during deposit transaction
The gas limit check should be updated to require that the gas limit is at least 21000 plus the intrinsic gas cost of the data length.
Disclosed
-
Usage of **revert** in case of low gas in `L1CrossDomainMessenger` can result in loss of fund
The callWithMinGas function should return false instead of reverting when called during relayMessage if the gas condition is not met.
Disclosed
-
The formula used in ````SafeCall.callWithMinGas()```` is wrong
The formula should be updated to add the cold account access cost and, when value is transferred, the value transfer cost to the required gas check.
Disclosed
-
Malicious actor can prevent migration by calling a non-existing function in `OVM_L2ToL1MessagePasser` and making `ReadWitnessData` return an error
The migration parser should skip invalid messages instead of aborting, since later stages validate missing messages from storage.
Disclosed
-
LES (Light Ethereum Subprotocol) doesn't forward the transaction to the sequencer
The LES RPC should be updated to match the standard RPC change and forward transactions to the sequencer.
Disclosed
-
Malicious user can finalize other’s withdrawal with less than specified gas limit, leading to loss of funds
The fix should use two separate gas buffer values to account for the gas consumed between the check and the call, ensuring the call receives at least the user's specified gas limit.
Disclosed
-
Gasless ETH bridging from L1 to L2
The fix should enforce a minimum gas limit on L1 that users must pay for, at least covering the intrinsic gas cost of the transaction on L2.
Disclosed
-
Batcher frames are incorrectly decoded leading to consensus split
The UnmarshalBinary function should return a non-EOF error when the is_last byte is missing.
Disclosed
-
Causing users lose their fund during finalizing withdrawal transaction
The finalizeWithdrawalTransaction function should check if the call to relayMessage failed due to the reentrancy guard and revert instead of marking the withdrawal as finalized.
Disclosed
-
Deposits from L1 to L2 using L1CrossDomainMessenger will fail and will not be replayable when L2CrossDomainMessenger is paused
The recommendation is to pause both L1 and L2 messengers at the same time and to restrict sendMessage when the contract is paused.
Disclosed
-
Withdrawal transactions can get stuck if output root is reproposed
The restriction on reproving should be loosened to allow reproving under a new L2 output index whenever the output root of the proven output index changes.
Disclosed