Skip to content

Sherlock

Optimism Update

Every publicly disclosed report for Optimism Update and what kind of bugs they were.

disclosed reports
25
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find Optimism Update on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Optimism Update chose to make public.

Business logic

Legacy withdrawals can be relayed twice, causing double spending of bridged assets

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.

Optimism Update

High
DoS

All migrated withdrarwals that require more than 135,175 gas may be bricked

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.

Optimism Update

High
DoS

Causing users lose fund if bridging long message from L2 to L1 due to uncontrolled out-of-gas error

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.

Optimism Update

Medium
Business logic

Incorrect calculation of required gas limit during deposit transaction

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.

Optimism Update

Medium
Business logic

The formula used in ````SafeCall.callWithMinGas()```` is wrong

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.

Optimism Update

High
DoS

CrossDomainMessenger does not successfully guarantee replayability, can lose user funds

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.

Optimism Update

Medium
Business logic

LES (Light Ethereum Subprotocol) doesn't forward the transaction to the sequencer

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.

Optimism Update

Medium
Business logic

Malicious user can finalize other’s withdrawal with less than specified gas limit, leading to loss of funds

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.

Optimism Update

High
Business logic

Gasless ETH bridging from L1 to L2

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.

Optimism Update

Medium
Business logic

Batcher frames are incorrectly decoded leading to consensus split

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.

Optimism Update

Medium
Business logic

Withdrawal transactions can get stuck if output root is reproposed

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.

Optimism Update

Medium
Business logic

contract with only `IOptimismMintableERC20` interface is not compatible with `StandardBridge`

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.

Optimism Update

Medium
DoS

Panic when decoding a malformed deposit transaction JSON string

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.

Optimism Update

Medium
DoS

Withdrawals with high gas limits can be bricked by a malicious user, permanently locking funds

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.

Optimism Update

High
DoS

Migration can be bricked by sending a message directly to the LegacyMessagePasser

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.

Optimism Update

Medium
DoS

[High] Function MigrateWithdrawal() may set gas limit so high for old withdrawals when migrating them by mistake and they can't be relayed in the L1 and users funds would be lost

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.

Optimism Update

Medium
DoS

Crafted p2p spam can render nodes permanently unable to process L2 blocks

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.

Optimism Update

Medium
DoS

Censorship resistance is undermined and bridging of assets can be DOSed at low cost

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.

Optimism Update

Medium
DoS

Optimism Portal can run out of gas due to incorrect overhead estimation

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.

Optimism Update

Medium
Business logic

Challenger can override the 7 day finalization period

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.

Optimism Update

Medium