Skip to content
DoS Write-up Advanced

Optimism

The Optimism sequencer's rate limiter did not validate the chain ID of signed transactions, so an attacker could replay transactions from other chains to trigger the rate limit for any account. This allowed an attacker to censor specific accounts on Optimism Mainnet for an arbitrary period.

iosiro.com

Published on iosiro.com

On 16 July 2023, Bernard Wagner, a security researcher at iosiro reported a bug to Optimism Labs in their sequencer stack that could be exploited to censor a subset of accounts on Optimism Mainnet. Optimism Labs patched the issue and thereafter paid a bounty.

The author, on iosiro.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the rate limiter incremented its counter for any signed transaction without first checking that the transaction's chain ID matched Optimism Mainnet.

Impact

An attacker could censor a subset of accounts on Optimism Mainnet, potentially disrupting bridges, oracles, multisig operations and other critical services, though the attack required targeting specific signers and was rated medium risk by Optimism.

What the attacker needed

Ability to send transactions to Optimism sequencer; signed transactions from another chain for target account; target account nonce lower than replayed transaction nonce

The fix

The fix added an allowed_chain_ids configuration to proxyd so that only transactions with the correct chain ID are counted by the rate limiter.

How it was found

  1. Obtain a signed transaction from another chain for the target account with a nonce higher than the account's current nonce on Optimism Mainnet.
  2. Submit the replayed transaction to the Optimism sequencer through proxyd.
  3. The sequencer rejects the transaction due to EIP-155 but the rate limiter is still activated for the sender.
  4. Repeat with many replayed transactions to keep the account rate limited indefinitely.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A blockchain sequencer is a computer that orders transactions before they are finalised. Optimism's sequencer had a rate limiter that blocked accounts sending too many transactions, but it did not check which blockchain a transaction came from. An attacker could send old transactions from a different chain to make the sequencer think a victim was spamming, so the victim's real transactions were blocked.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.