During the Bedrock migration, the storage of predeployed contracts is wiped, so the L2CrossDomainMessenger's record of already-relayed legacy messages becomes empty. An attacker could therefore relay the same withdrawal message twice, once as a legacy message before migration and again as a Bedrock message during migration, withdrawing bridged ETH or ERC20 tokens twice.
The CrossDomainMessenger contract undercounts the gas required for cross-chain messages because it calculates gas based only on the inner message, not the full relayMessage wrapper. This causes users to pay less gas than actually consumed on L1, and the L2 gas metering mechanism to underestimate demand.
Migrated withdrawals are encoded with an inner gas limit of zero and an outer gas limit of calldata cost plus 200,000, assuming the CrossDomainMessenger can always be replayed. For withdrawals that consume more than 135,175 gas, insufficient gas can cause the CrossDomainMessenger call to revert while the Portal still finalises the withdrawal, permanently bricking the funds.
The gas estimation for finalizing withdrawals on L1 does not account for the quadratic memory expansion cost of hashing long messages, so a relayer can provide just enough gas to pass the first check but cause the message relay to run out of gas and revert. This leaves the withdrawal marked as finalized but not failed, preventing replay and causing loss of funds.
The deposit transaction gas limit check only enforces a minimum of 21000, not that the gas limit covers the intrinsic gas cost of the data. An attacker could choose a gas limit between 21000 and the calculated burn threshold to avoid burning gas on L1 for L2 execution, causing the sequencer to process long data without compensation.
The L1CrossDomainMessenger uses a revert opcode when the gas check fails during relayMessage, which prevents the failed message flag from being set. If the gas check fails after the withdrawal is finalized in OptimismPortal, the user's funds are lost because the withdrawal cannot be replayed.
The gas calculation in SafeCall.callWithMinGas() did not account for all dynamic gas costs of the CALL opcode, so the sub-contract could receive less than the specified minimum gas. This could cause withdrawal transactions to fail unexpectedly due to out-of-gas, potentially leading to loss of funds.
The migration tool collects all calls to the OVM_L2ToL1MessagePasser contract without validating the calldata, and later parsing assumes each call is a valid passMessageToL1 invocation. An attacker can call a non-existent function on that contract, causing the parser to error and halt the migration.
The CrossDomainMessenger's replayability guarantee can be broken because the gas forwarded to the target contract may leave insufficient gas for the messenger to mark the transaction as failed, while the portal has already marked it as finalised. This can permanently brick a user's withdrawal, causing loss of funds.
The Light Ethereum Subprotocol (LES) backend in op-geth does not forward transactions to the sequencer when they are received over RPC, unlike the standard Ethereum API backend. An attacker could submit a transaction via LES and it would be added to the local pool but never sent to the sequencer, so it would never be processed or submitted to L1, misleading the user into thinking it succeeded.
The OptimismPortal contract checks that enough gas is available before finalizing a withdrawal, but then spends gas before making the external call, so the call receives less gas than the user specified. A malicious user can call finalizeWithdrawalTransaction with a precise gas amount that passes the check but causes the withdrawal to fail, permanently locking the user's funds.
The depositTransaction function on L1 did not enforce a minimum gas limit, allowing users to submit deposits with zero gas limit. This let them bridge ETH to L2 without paying for L2 resources in advance, and could be abused to create large deposit blocks that are costly for the sequencer to process.
The frame decoding logic in op-node accepts a frame even when the mandatory is_last byte is missing, because a read error is ignored. A malicious sequencer could exploit this to cause a consensus split between op-node and spec-compliant implementations.
A reentrancy guard on the relayMessage function allows a malicious user to cause an honest user's withdrawal to be marked as finalized even though the final cross-domain message call fails, resulting in loss of funds.
When the L2CrossDomainMessenger contract is paused, deposits sent from L1 to L2 through L1CrossDomainMessenger fail on the L2 side because relayMessage reverts. The deposited value is minted to an aliased address and the depositor cannot replay the transaction, losing their funds.
Withdrawal transactions can become permanently stuck if the L2 output root for the block containing the withdrawal is challenged and replaced with a different root that does not include the withdrawal. The reproving mechanism only allows reproving at the same output index, so the withdrawal can never be finalized, locking funds.
A token contract that implements only the IOptimismMintableERC20 interface, but not the legacy ILegacyMintableERC20 interface, is incorrectly identified as compatible by the StandardBridge's check. When the bridge then calls the legacy l1Token function, the call fails, making the token incompatible with the bridge.
The JSON decoder for deposit transactions dereferenced the optional gas field without checking for nil, so a transaction object lacking that field caused a runtime panic. A malicious RPC endpoint could return such a block to an ethclient, crashing the client when it tried to decode the response.
The OptimismPortal contract's gas check for finalizing withdrawals did not account for the EVM's 63/64 gas forwarding rule, allowing a malicious user to call finalizeWithdrawalTransaction with a precise gas amount that passes the check but forwards insufficient gas to the target, causing the withdrawal to fail. Since failed withdrawals cannot be replayed, the funds become permanently locked in the contract.
The migration process assumes all calls to the LegacyMessagePasser come from the L2CrossDomainMessenger and follow a specific calldata format. An attacker could send a direct transaction to the LegacyMessagePasser with arbitrary calldata, causing the migration to fail and become bricked.
The MigrateWithdrawal function overestimates the gas limit for migrated withdrawals by charging 16 gas per data byte instead of 4 for zero bytes, which can push the gas limit above the L1 block gas limit. As a result, some legitimate withdrawals with large data cannot be relayed on L1 after migration, potentially causing loss of funds.
The p2p block validator uses a small LRU cache of 100 block numbers to reject previously seen blocks, but more than 100 valid L2 blocks can be produced per minute. An attacker could replay old blocks to evict the cache and cause a node to reject or discard new blocks, halting its ability to process L2 blocks.
The ResourceMetering contract's per-block gas limit check allows an attacker to front-run a victim's deposit transaction by submitting a transaction that consumes the entire gas limit, causing the victim's transaction to revert. This undermines censorship resistance and enables cheap denial of service against asset bridging.
The Optimism Portal contract forwards less gas than intended to relayed calls because it does not account for the gas cost of an SSTORE operation when checking available gas. This can cause integrations that estimate gas accurately to have their transactions revert.
The L2OutputOracle contract allows the challenger to delete any L2 output, even those older than the 7-day finalization period, which can invalidate already confirmed withdrawals. An attacker with the challenger role could delete an output, causing users' withdrawals to fail.
OU
Optimism Update
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.