Skip to content
Business logic Audit finding Intermediate

L1::xRenzoBridge and L2::xRenzoBridge uses the block.timestamp as dependency, which can cause issues

The L2 bridge contract rejects price updates whose L1 timestamp is greater than the current L2 block timestamp, but L1 and L2 timestamps are not synchronised, so a valid price update can be rejected. An attacker cannot exploit this directly; it is a reliability issue that can block legitimate price updates.

ladboy233 Follow with oakcobalt

Originally disclosed on Code4rena

Submitted by ladboy233, also found by oakcobalt

In L1::xRenzoBridge the block.timestamp from L1 is encoded and sent to L2. When the message is delivered from L1 to L2 with xRenzoBridge::_updatePrice(), the function checks the block.timestamp like this:

    if (_timestamp > block.timestamp) {
            revert InvalidTimestamp(_timestamp);
        }

This check is done to not allow future timestamps for updating the price But the timestamps between two chains L1 and L2 are different for chain like Arbitrum as there’s a possibility that the sequencer fails to post batches on the parent chain (for example, Ethereum) for a period of time.

According to the Arbitrum docs:

Timestamp boundaries of the sequencer

As mentioned, block timestamps are usually set based on the sequencer’s clock. Because there’s a possibility that the sequencer fails to post batches on the parent chain (for example, Ethereum) for a period of time, it should have the ability to slightly adjust the timestamp of the block to account for those delays and prevent any potential reorganisations of the chain. To limit the degree to which the sequencer can adjust timestamps, some boundaries are set, currently to 24 hours earlier than the current time, and 1 hour in the future.

So the issue is that timestamp validation for _updatePrice() won’t be effective and can reject validation both l2 tiimestamp is not related to l1 timestamp

Block timestamps on Arbitrum are not linked to the timestamp of the L1 block. They are updated every L2 block based on the sequencer’s clock. These timestamps must follow these two rules:

  1. Must be always equal or greater than the previous L2 block timestamp.
  2. Must fall within the established boundaries (24 hours earlier than the current time or 1 hour in the future). More on this below.

Furthermore, for transactions that are force-included from L1 (bypassing the sequencer), the block timestamp will be equal to either the L1 timestamp when the transaction was put in the delayed inbox on L1 (not when it was force-included), or the L2 timestamp of the previous L2 block, whichever of the two timestamps is greater.

Proof of Concept

xRenzoBridge::sendPrice is used to send the price feed from L1 to L2. The bytes memory _callData = abi.encode(exchangeRate, block.timestamp); encodes the block.timestamp of L1.

    function sendPrice(
        CCIPDestinationParam[] calldata _destinationParam,
        ConnextDestinationParam[] calldata _connextDestinationParam
    ) external payable onlyPriceFeedSender nonReentrant {
        // call getRate() to get the current price of ezETH
        uint256 exchangeRate = rateProvider.getRate();

@>      bytes memory _callData = abi.encode(exchangeRate, block.timestamp);

        ...
        ...
    }

Now if we see this function xRenzoBridge::_updatePrice(), the timestamp here is compared to the timestamp of L2 is not effective to check the older price timestamps is greater than block.timestamp as both of these timestamps of L1 and L2 are different.

    function _updatePrice(uint256 _price, uint256 _timestamp) internal {
        // Check for 0
        if (_price == 0) {
            revert InvalidZeroInput();
        }

        // Check for price divergence - more than 10%
        if (
            (_price > lastPrice && (_price - lastPrice) > (lastPrice / 10)) ||
            (_price < lastPrice && (lastPrice - _price) > (lastPrice / 10))
        ) {
            revert InvalidOraclePrice();
        }

        // Do not allow older price timestamps
        if (_timestamp <= lastPriceTimestamp) {
            revert InvalidTimestamp(_timestamp);
        }

        // Do not allow future timestamps
@>      if (_timestamp > block.timestamp) {
            revert InvalidTimestamp(_timestamp);
        }

        // Update values and emit event
        lastPrice = _price;
        lastPriceTimestamp = _timestamp;

        emit PriceUpdated(_price, _timestamp);
    }

Recommended Mitigation Steps

Remove the timestamp check in in L2 update rate.

Assessed type

Timing

jatinj615 (Renzo) acknowledged

EV_om (warden) commented:

@alcueca - I believe this finding must be invalid.

While it is true that the sequencer can adjust the timestamp of a delayed block to up to 24 hours in the past, I believe this block will only ever include transactions that were received by the sequencer prior to that timestamp.

I have not been able to find a source to back up this claim, but this seems evident as the opposite would allow exploiting a sequencer downtime to include transactions in blocks with a timestamp in the past, which would have grave consequences for any protocol relying on block timestamps for their operations and allow manipulation of liquidations, governance votes, orders with expiration timestamps, and so on.

If this was indeed the case, the warden would have found a much more severe vulnerability than the trivial revert here.

On Optimism, for instance, this check is implemented here.

ladboy233 (warden) commented:

On Optimism, for instance, this check is implemented here.

The original report does not really mention optimism. The original report’s concern is that the L1 / L2 timestamp is not related and use L1 timestamp to validate against L2 timestamp can revert valid price update.

if (_timestamp > block.timestamp) {
          revert InvalidTimestamp(_timestamp);
      }

The L2 timestamp does not always bigger than L1 timestamp. For example, please free feel to run this POC:

from web3 import Web3
import time

# Dictionary mapping blockchain names to RPC URLs
rpc_urls = {
    'Ethereum Mainnet': 'https://eth.llamarpc.com',
    "blast": "https://rpc.blastblockchain.com",
}

def get_block_timestamp(name, url):
    try:
        web3 = Web3(Web3.HTTPProvider(url))
        latest_block = web3.eth.get_block('latest')
        return f"{name} block timestamp: {latest_block.timestamp}, block number {latest_block.number}"
    except Exception as e:
        return f"{name} Error: {e}"

# Query each blockchain and print the latest block's timestamp
for name, url in rpc_urls.items():
    print(get_block_timestamp(name, url))

The L1 block.timestamp is greater than blast (optimism fork) block.timestamp at the same time.

Example output:

Ethereum Mainnet block timestamp: 1716757859, block number 19956651
blast block timestamp:            1707500043, block number 2699354

From Arbitrum docs:

Block timestamps on Arbitrum are not linked to the timestamp of the L1 block.

alcueca (judge) commented:

Timestamps in L1 and L2 are not related and it can’t be demanded that one or the other is always greater.


The original report as published on Code4rena, by ladboy233. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

Context

Renzo is a liquid restaking protocol, and the code under review includes a cross-chain price feed that carries the ezETH exchange rate from a mainnet contract to a second-chain contract. On L1, xRenzoBridge::sendPrice reads the current rate from the rate provider and encodes it together with the L1 block.timestamp into a message that is delivered to L2. On L2, xRenzoBridge::_updatePrice (in xRenzoDeposit.sol) receives the price and the timestamp, validates them, stores them as lastPrice and lastPriceTimestamp, and emits PriceUpdated.

The feature therefore depends on a timestamp produced on one chain being meaningful when checked against the clock of another chain. The finding is about that dependency.

Setup

The report does not describe a deployment, accounts, tooling versions or specific preconditions beyond the two contracts and the cross-chain delivery mechanism. The relevant code paths are:

  • L1::xRenzoBridge::sendPrice, which builds the message.
  • L2::xRenzoBridge::_updatePrice, which validates and stores it.

The report quotes Arbitrum documentation and, in the discussion, compares Ethereum with Blast, an Optimism fork.

Finding it

In L1::xRenzoBridge the block.timestamp from L1 is encoded and sent to L2. When the message is delivered from L1 to L2 with xRenzoBridge::_updatePrice(), the function checks the timestamp like this:

Solidity
    if (_timestamp > block.timestamp) {
            revert InvalidTimestamp(_timestamp);
        }

This check exists to disallow future timestamps when updating the price. The researcher's observation is that timestamps between L1 and L2 are not the same thing, particularly on chains such as Arbitrum, where the sequencer may fail to post batches on the parent chain (for example, Ethereum) for a period of time.

The Arbitrum documentation is quoted on the boundaries the sequencer is allowed to apply:

Timestamp boundaries of the sequencer

As mentioned, block timestamps are usually set based on the sequencer's clock. Because there's a possibility that the sequencer fails to post batches on the parent chain (for example, Ethereum) for a period of time, it should have the ability to slightly adjust the timestamp of the block to account for those delays and prevent any potential reorganisations of the chain. To limit the degree to which the sequencer can adjust timestamps, some boundaries are set, currently to 24 hours earlier than the current time, and 1 hour in the future.

The consequence, as the report puts it, is that timestamp validation for _updatePrice() will not be effective and can reject validation, because the L2 timestamp is not related to the L1 timestamp. The documentation is quoted again on how L2 timestamps are produced:

Block timestamps on Arbitrum are not linked to the timestamp of the L1 block. They are updated every L2 block based on the sequencer's clock. These timestamps must follow these two rules:

  1. Must be always equal or greater than the previous L2 block timestamp.
  2. Must fall within the established boundaries (24 hours earlier than the current time or 1 hour in the future). More on this below.

Furthermore, for transactions that are force-included from L1 (bypassing the sequencer), the block timestamp will be equal to either the L1 timestamp when the transaction was put in the delayed inbox on L1 (not when it was force-included), or the L2 timestamp of the previous L2 block, whichever of the two timestamps is greater.

Exploitation

Step 1: L1 encodes its own clock into the message

xRenzoBridge::sendPrice is used to send the price feed from L1 to L2. The line bytes memory _callData = abi.encode(exchangeRate, block.timestamp); encodes the block.timestamp of L1.

Solidity
    function sendPrice(
        CCIPDestinationParam[] calldata _destinationParam,
        ConnextDestinationParam[] calldata _connextDestinationParam
    ) external payable onlyPriceFeedSender nonReentrant {
        // call getRate() to get the current price of ezETH
        uint256 exchangeRate = rateProvider.getRate();

@>      bytes memory _callData = abi.encode(exchangeRate, block.timestamp);

        ...
        ...
    }

The encoded pair is the exchange rate and the L1 timestamp at the moment the price was sent.

Step 2: L2 compares that L1 timestamp against its own clock

In xRenzoBridge::_updatePrice(), the timestamp carried in the message is compared against the L2 block.timestamp. The report argues this comparison is not effective for checking whether an older price timestamp is greater than block.timestamp, because the L1 and L2 timestamps are different quantities.

Solidity
    function _updatePrice(uint256 _price, uint256 _timestamp) internal {
        // Check for 0
        if (_price == 0) {
            revert InvalidZeroInput();
        }

        // Check for price divergence - more than 10%
        if (
            (_price > lastPrice && (_price - lastPrice) > (lastPrice / 10)) ||
            (_price < lastPrice && (lastPrice - _price) > (lastPrice / 10))
        ) {
            revert InvalidOraclePrice();
        }

        // Do not allow older price timestamps
        if (_timestamp <= lastPriceTimestamp) {
            revert InvalidTimestamp(_timestamp);
        }

        // Do not allow future timestamps
@>      if (_timestamp > block.timestamp) {
            revert InvalidTimestamp(_timestamp);
        }

        // Update values and emit event
        lastPrice = _price;
        lastPriceTimestamp = _timestamp;

        emit PriceUpdated(_price, _timestamp);
    }

The two guards serve different purposes: the first rejects a timestamp that is not newer than the last stored one, and the second is meant to reject a timestamp from the future. The second guard is the one that mixes chains.

Step 3: Demonstrate that L2 can lag L1

In the discussion, the researcher provides a script to compare the latest block timestamps of two chains at the same moment.

Python
from web3 import Web3
import time

# Dictionary mapping blockchain names to RPC URLs
rpc_urls = {
    'Ethereum Mainnet': 'https://eth.llamarpc.com',
    "blast": "https://rpc.blastblockchain.com",
}

def get_block_timestamp(name, url):
    try:
        web3 = Web3(Web3.HTTPProvider(url))
        latest_block = web3.eth.get_block('latest')
        return f"{name} block timestamp: {latest_block.timestamp}, block number {latest_block.number}"
    except Exception as e:
        return f"{name} Error: {e}"

# Query each blockchain and print the latest block's timestamp
for name, url in rpc_urls.items():
    print(get_block_timestamp(name, url))

The script queries each RPC endpoint for the latest block and prints its timestamp and number. The researcher reports that the L1 block.timestamp is greater than the blast (an Optimism fork) block.timestamp at the same time, with this example output:

Text
Ethereum Mainnet block timestamp: 1716757859, block number 19956651
blast block timestamp:            1707500043, block number 2699354

In that output the L2 timestamp is well behind the L1 timestamp. In that output the L2 timestamp is well behind the L1 timestamp, so an L1 timestamp checked against that L2 clock would look like a future timestamp. The report closes the demonstration by quoting the Arbitrum documentation again: block timestamps on Arbitrum are not linked to the timestamp of the L1 block.

Root cause

The L2 contract treats a timestamp produced by the L1 chain as if it were comparable to the L2 chain's own clock. The two clocks are independent: L2 timestamps follow the sequencer's clock, must be non-decreasing, and may sit within a window of up to 24 hours behind current time and 1 hour ahead. A valid, fresh L1 timestamp can therefore be greater than the L2 block.timestamp, and the future-timestamp guard can reject it. The existing guard against older timestamps (_timestamp <= lastPriceTimestamp) does not help, because the problem is the second check, not the ordering of stored prices.

Impact

When the L2 clock is behind the L1 timestamp in the message, _updatePrice reverts with InvalidTimestamp, so the price update is rejected. The report frames this as a denial of legitimate price updates rather than as a way to inject a bad price: the check that is meant to stop future timestamps does not work as intended across chains and can reject valid ones. The report does not describe any attacker action, any gain to an attacker, or any loss of funds; the effect is on the availability of the price feed under the timestamp conditions described.

Fix

The recommended mitigation in the report is to remove the timestamp check in the L2 update rate:

Remove the timestamp check in in L2 update rate.

The Renzo team acknowledged the finding. In the subsequent discussion a warden argued the finding should be invalid, reasoning that a delayed block would only include transactions received by the sequencer before that timestamp, and pointing to an equivalent check in Optimism's CrossL2Inbox. The researcher replied that the report is not about Optimism and that its concern is that L1 and L2 timestamps are unrelated, so validating an L1 timestamp against an L2 timestamp can revert a valid price update. The judge concluded: "Timestamps in L1 and L2 are not related and it can't be demanded that one or the other is always greater."

Variants to test

  • Any cross-chain message that carries a timestamp. Look for abi.encode(..., block.timestamp) on the source chain and a comparison of the decoded value against block.timestamp on the destination chain. A positive result is a destination-chain revert path that a legitimate message can hit when the destination clock lags.
  • Deadline and expiry fields copied across chains. If a message includes a deadline set from the source chain's clock and the destination enforces it against its own clock, test delivery when the destination is behind. A positive result is a valid message rejected as expired or not yet valid.
  • Sequencer-downtime scenarios. Compare the latest block timestamps of the source and destination chains at the same moment, as in the script above, and check whether the ordering the destination assumes actually holds. A positive result is an L2 timestamp lower than the L1 timestamp that would be embedded in a message.
  • Force-included transactions. The Arbitrum documentation quoted in the report states that for force-included transactions the block timestamp equals either the L1 timestamp when the transaction entered the delayed inbox or the previous L2 block timestamp, whichever is greater. Test messages delivered through that path against the same guard.

Hunting notes

This kind of bug hides wherever a value produced on one chain is validated against a property of another: price feeds, oracle updates, rate limits, deadlines and nonces carried over bridges. During recon, the signal is a message payload that includes block.timestamp from the sender and a receiver that compares it to its own block.timestamp, especially when the destination is an L2 with sequencer-controlled timestamps. The report's evidence is documentary (the Arbitrum timestamp rules) plus a direct comparison of live block timestamps across chains; there is no exploit transaction, and the impact argued is a rejected valid update rather than theft. The Renzo team acknowledged the finding, while the debate in the thread shows that reviewers will push back on whether the lagging-clock case can actually occur for the specific delivery path. while the debate in the thread shows that reviewers will push back on whether the lagging-clock case can actually occur for the specific delivery path.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 14 min read.

What happened, in plain words

Renzo's code includes a cross-chain price feed that carries the ezETH exchange rate from one blockchain to another. To keep that value steady, the system needs to know the current exchange rate between the two tokens. That rate is calculated on one blockchain (the main one, called L1) and then sent across a bridge to a second blockchain (called L2), where it is used.

A blockchain is a shared record book that many computers keep copies of. Each entry (a "block") is stamped with the time it was created, and programs running on the chain can read that stamp. The stamp is called block.timestamp.

When the rate is sent from L1 to L2, the message also carries the L1 clock reading. The L2 program then checks that reading against its own clock. The finding is that these two clocks are not the same clock. On some L2 chains, such as Arbitrum, the L2 clock can sit behind the L1 clock. When that happens, a fresh price update can be rejected as if it came from the future.

This is a correctness and availability problem, not a theft. Nobody gains money from it; the price feed simply refuses a valid update.

Background you need first

A few ideas come up repeatedly, so here they are from zero.

  • Blockchain: a list of records (blocks) that many independent computers agree on. Each block has a number and a timestamp.
  • L1 and L2: L1 is the original, slower, more secure chain (here, Ethereum). L2 is a faster chain built on top of it; the report quotes Arbitrum documentation and, in the discussion, compares Ethereum with Blast, an Optimism fork. L2 periodically posts summaries of its activity back to L1.
  • Smart contract: a program that lives on a blockchain and runs automatically when someone sends it a transaction. The two contracts in this report are xRenzoBridge on L1 and xRenzoBridge on L2 (the L2 one lives in a file called xRenzoDeposit.sol).
  • block.timestamp: the time stamp attached to the current block, readable by any contract running in that block. It is the chain's own clock reading.
  • Sequencer: the computer (or group of computers) on an L2 that receives transactions, orders them and produces L2 blocks. It also decides the timestamp on each L2 block, within limits.
  • Bridge / cross-chain message: a mechanism that carries data from one chain to another. Here the data is the exchange rate plus a timestamp.
  • Revert: when a smart contract refuses to continue and undoes the transaction. A revert is how a contract says "no".
  • RPC endpoint: a web address that lets a program ask a blockchain questions, such as "what is the latest block?". It is the blockchain equivalent of a website's API, an interface one program uses to talk to another.
  • abi.encode: a way to pack several values into one blob of bytes so they can be sent in a message. Think of it as putting several items into one sealed parcel.
  • Denial of service (availability) issue: a bug that stops a legitimate operation from working, without anyone stealing anything.

The feature under review

Renzo's code includes a cross-chain price feed. On L1, the function xRenzoBridge::sendPrice reads the current exchange rate from a rate provider and packs it together with the L1 block.timestamp into a message that is delivered to L2. On L2, the function xRenzoBridge::_updatePrice (in xRenzoDeposit.sol) receives the price and the timestamp, checks them, stores them as lastPrice and lastPriceTimestamp, and emits an event called PriceUpdated.

The whole feature therefore depends on a timestamp produced on one chain still making sense when it is checked against the clock of another chain. The finding is about exactly that dependency.

Setup

The report does not describe a deployment, accounts, tooling versions or specific preconditions beyond the two contracts and the cross-chain delivery mechanism. The relevant code paths are:

  • L1::xRenzoBridge::sendPrice, which builds the message.
  • L2::xRenzoBridge::_updatePrice, which validates and stores it.

The report quotes Arbitrum documentation and, in the discussion, compares Ethereum with Blast, an Optimism fork.

Finding it

In L1::xRenzoBridge the block.timestamp from L1 is encoded and sent to L2. When the message is delivered from L1 to L2 with xRenzoBridge::_updatePrice(), the function checks the timestamp like this:

Solidity
    if (_timestamp > block.timestamp) {
            revert InvalidTimestamp(_timestamp);
        }

Line by line: _timestamp is the time reading that arrived inside the message, produced on L1. block.timestamp is the L2 chain's own clock reading for the block currently being processed. The if asks: is the incoming timestamp later than my own clock? If yes, revert InvalidTimestamp(_timestamp) stops the transaction and reports the offending value.

The purpose of this check is to disallow future timestamps when updating the price: a price stamped in the future should not be accepted. The researcher's observation is that timestamps between L1 and L2 are not the same thing, particularly on chains such as Arbitrum, where the sequencer may fail to post batches on the parent chain (for example, Ethereum) for a period of time.

The Arbitrum documentation is quoted on the boundaries the sequencer is allowed to apply:

Timestamp boundaries of the sequencer

As mentioned, block timestamps are usually set based on the sequencer's clock. Because there's a possibility that the sequencer fails to post batches on the parent chain (for example, Ethereum) for a period of time, it should have the ability to slightly adjust the timestamp of the block to account for those delays and prevent any potential reorganisations of the chain. To limit the degree to which the sequencer can adjust timestamps, some boundaries are set, currently to 24 hours earlier than the current time, and 1 hour in the future.

In plain words: the L2 sequencer sets its own clock, and it is allowed to move that clock around a little (up to 24 hours back, up to 1 hour forward) to cope with delays in reporting back to L1. So an L2 block's timestamp is not a copy of any L1 timestamp.

The consequence, as the report puts it, is that timestamp validation for _updatePrice() will not be effective and can reject validation, because the L2 timestamp is not related to the L1 timestamp. The documentation is quoted again on how L2 timestamps are produced:

Block timestamps on Arbitrum are not linked to the timestamp of the L1 block. They are updated every L2 block based on the sequencer's clock. These timestamps must follow these two rules:

  1. Must be always equal or greater than the previous L2 block timestamp.
  2. Must fall within the established boundaries (24 hours earlier than the current time or 1 hour in the future). More on this below.

Furthermore, for transactions that are force-included from L1 (bypassing the sequencer), the block timestamp will be equal to either the L1 timestamp when the transaction was put in the delayed inbox on L1 (not when it was force-included), or the L2 timestamp of the previous L2 block, whichever of the two timestamps is greater.

Two rules matter here. First, L2 timestamps only ever move forward (each block is at least as late as the one before). Second, they stay inside a window around real time. Neither rule ties them to L1's clock. The last paragraph covers a special path: a transaction can be forced in from L1 without going through the sequencer, and even then the timestamp is chosen from two candidates, not simply copied from L1.

Exploitation

Step 1: L1 encodes its own clock into the message

xRenzoBridge::sendPrice is used to send the price feed from L1 to L2. The line bytes memory _callData = abi.encode(exchangeRate, block.timestamp); encodes the block.timestamp of L1.

Solidity
    function sendPrice(
        CCIPDestinationParam[] calldata _destinationParam,
        ConnextDestinationParam[] calldata _connextDestinationParam
    ) external payable onlyPriceFeedSender nonReentrant {
        // call getRate() to get the current price of ezETH
        uint256 exchangeRate = rateProvider.getRate();

@>      bytes memory _callData = abi.encode(exchangeRate, block.timestamp);

        ...
        ...
    }

What each part does: sendPrice is the function that kicks off a price send. It can be called only by the authorised price feed sender (onlyPriceFeedSender) and cannot be re-entered while it is running (nonReentrant). It first asks the rate provider for the current rate (rateProvider.getRate()), storing it in exchangeRate. The marked line then packs two values into one byte blob: the rate and the L1 block's own timestamp. The @> marker is just a pointer to the line that matters. The encoded pair is the exchange rate and the L1 timestamp at the moment the price was sent. This step matters because it is where a clock reading from one chain is placed into a message that will be judged on another chain.

Step 2: L2 compares that L1 timestamp against its own clock

In xRenzoBridge::_updatePrice(), the timestamp carried in the message is compared against the L2 block.timestamp. The report argues this comparison is not effective for checking whether an older price timestamp is greater than block.timestamp, because the L1 and L2 timestamps are different quantities.

Solidity
    function _updatePrice(uint256 _price, uint256 _timestamp) internal {
        // Check for 0
        if (_price == 0) {
            revert InvalidZeroInput();
        }

        // Check for price divergence - more than 10%
        if (
            (_price > lastPrice && (_price - lastPrice) > (lastPrice / 10)) ||
            (_price < lastPrice && (lastPrice - _price) > (lastPrice / 10))
        ) {
            revert InvalidOraclePrice();
        }

        // Do not allow older price timestamps
        if (_timestamp <= lastPriceTimestamp) {
            revert InvalidTimestamp(_timestamp);
        }

        // Do not allow future timestamps
@>      if (_timestamp > block.timestamp) {
            revert InvalidTimestamp(_timestamp);
        }

        // Update values and emit event
        lastPrice = _price;
        lastPriceTimestamp = _timestamp;

        emit PriceUpdated(_price, _timestamp);
    }

Walking through it: the function takes a price and a timestamp, both decoded from the incoming message. The first check rejects a price of zero. The second rejects a price that jumps more than 10% away from the last stored price, in either direction, as a sanity guard against wild values. The third check rejects a timestamp that is not newer than the last stored one, so old messages cannot be replayed. The marked fourth check is the one under discussion: it rejects a timestamp later than the L2 chain's own clock. Finally the function stores the new price and timestamp and announces the change with PriceUpdated.

The two guards serve different purposes: the first rejects a timestamp that is not newer than the last stored one, and the second is meant to reject a timestamp from the future. The second guard is the one that mixes chains: it judges an L1 clock reading by an L2 clock reading.

Step 3: Demonstrate that L2 can lag L1

In the discussion, the researcher provides a script to compare the latest block timestamps of two chains at the same moment.

Python
from web3 import Web3
import time

# Dictionary mapping blockchain names to RPC URLs
rpc_urls = {
    'Ethereum Mainnet': 'https://eth.llamarpc.com',
    "blast": "https://rpc.blastblockchain.com",
}

def get_block_timestamp(name, url):
    try:
        web3 = Web3(Web3.HTTPProvider(url))
        latest_block = web3.eth.get_block('latest')
        return f"{name} block timestamp: {latest_block.timestamp}, block number {latest_block.number}"
    except Exception as e:
        return f"{name} Error: {e}"

# Query each blockchain and print the latest block's timestamp
for name, url in rpc_urls.items():
    print(get_block_timestamp(name, url))

What the script does, piece by piece: from web3 import Web3 loads a Python library that can talk to blockchains. rpc_urls is a small table mapping a chain name to the web address of an RPC endpoint, one for Ethereum and one for Blast. The function get_block_timestamp opens a connection to the given address, asks for the latest block, and returns a line of text containing the chain name, that block's timestamp and its block number. If anything fails, it returns the error instead. The final loop runs the function once per chain and prints the result. The point of running it is to see, at one instant, what each chain's clock says, and whether one is behind the other.

The researcher reports that the L1 block.timestamp is greater than the blast (an Optimism fork) block.timestamp at the same time, with this example output:

Text
Ethereum Mainnet block timestamp: 1716757859, block number 19956651
blast block timestamp:            1707500043, block number 2699354

In that output the L2 timestamp is well behind the L1 timestamp. In that output the L2 timestamp is well behind the L1 timestamp, so an L1 timestamp checked against that L2 clock would look like a future timestamp. The report closes the demonstration by quoting the Arbitrum documentation again: block timestamps on Arbitrum are not linked to the timestamp of the L1 block.

Root cause

The L2 contract treats a timestamp produced by the L1 chain as if it were comparable to the L2 chain's own clock. The two clocks are independent: L2 timestamps follow the sequencer's clock, must be non-decreasing, and may sit within a window of up to 24 hours behind current time and 1 hour ahead. A valid, fresh L1 timestamp can therefore be greater than the L2 block.timestamp, and the future-timestamp guard can reject it. The existing guard against older timestamps (_timestamp <= lastPriceTimestamp) does not help, because the problem is the second check, not the ordering of stored prices.

Impact

When the L2 clock is behind the L1 timestamp in the message, _updatePrice reverts with InvalidTimestamp, so the price update is rejected. The report frames this as a denial of legitimate price updates rather than as a way to inject a bad price: the check that is meant to stop future timestamps does not work as intended across chains and can reject valid ones. The report does not describe any attacker action, any gain to an attacker, or any loss of funds; the effect is on the availability of the price feed under the timestamp conditions described.

Fix

The recommended mitigation in the report is to remove the timestamp check in the L2 update rate:

Remove the timestamp check in in L2 update rate.

The Renzo team acknowledged the finding. In the subsequent discussion a warden argued the finding should be invalid, reasoning that a delayed block would only include transactions received by the sequencer before that timestamp, and pointing to an equivalent check in Optimism's CrossL2Inbox. The researcher replied that the report is not about Optimism and that its concern is that L1 and L2 timestamps are unrelated, so validating an L1 timestamp against an L2 timestamp can revert a valid price update. The judge concluded: "Timestamps in L1 and L2 are not related and it can't be demanded that one or the other is always greater."

Variants to test

  • Any cross-chain message that carries a timestamp. Look for abi.encode(..., block.timestamp) on the source chain and a comparison of the decoded value against block.timestamp on the destination chain. A positive result is a destination-chain revert path that a legitimate message can hit when the destination clock lags.
  • Deadline and expiry fields copied across chains. If a message includes a deadline set from the source chain's clock and the destination enforces it against its own clock, test delivery when the destination is behind. A positive result is a valid message rejected as expired or not yet valid.
  • Sequencer-downtime scenarios. Compare the latest block timestamps of the source and destination chains at the same moment, as in the script above, and check whether the ordering the destination assumes actually holds. A positive result is an L2 timestamp lower than the L1 timestamp that would be embedded in a message.
  • Force-included transactions. The Arbitrum documentation quoted in the report states that for force-included transactions the block timestamp equals either the L1 timestamp when the transaction entered the delayed inbox or the previous L2 block timestamp, whichever is greater. Test messages delivered through that path against the same guard.

Hunting notes

This kind of bug hides wherever a value produced on one chain is validated against a property of another: price feeds, oracle updates, rate limits, deadlines and nonces carried over bridges. During recon, the signal is a message payload that includes block.timestamp from the sender and a receiver that compares it to its own block.timestamp, especially when the destination is an L2 with sequencer-controlled timestamps. The report's evidence is documentary (the Arbitrum timestamp rules) plus a direct comparison of live block timestamps across chains; there is no exploit transaction, and the impact argued is a rejected valid update rather than theft. The Renzo team acknowledged the finding, while the debate in the thread shows that reviewers will push back on whether the lagging-clock case can actually occur for the specific delivery path. while the debate in the thread shows that reviewers will push back on whether the lagging-clock case can actually occur for the specific delivery path.

Glossary

  • Blockchain: a shared, append-only record of blocks that many computers keep in agreement.
  • Block: one entry in that record, carrying transactions, a number and a timestamp.
  • L1: the base chain, here Ethereum.
  • L2: a faster chain built on top of L1, here Arbitrum (and Blast, an Optimism fork, in the discussion).
  • Smart contract: a program stored on a blockchain that runs when a transaction calls it.
  • block.timestamp: the time stamp attached to the current block, readable by contracts in that block.
  • Sequencer: the component of an L2 that orders transactions and produces L2 blocks, including their timestamps.
  • Revert: a contract refusing to continue and undoing the transaction.
  • RPC endpoint: a web address through which a program queries a blockchain.
  • abi.encode: packing several values into one byte blob for transmission.
  • Exchange rate: the ratio at which one token is worth another, here the ezETH rate.
  • Rate provider: the contract that supplies the current exchange rate.
  • lastPrice / lastPriceTimestamp: the most recently stored price and its timestamp on L2.
  • Event: a log entry a contract writes to the blockchain to announce something happened, here PriceUpdated.
  • Denial of service / availability issue: a bug that stops a legitimate operation from working, without theft.
  • Force-included transaction: a transaction pushed onto an L2 directly from L1, bypassing the sequencer.
  • Delayed inbox: the L1 queue where force-included transactions wait before being processed on L2.
  • Warden: the term this platform uses for a security researcher submitting findings.
  • Judge: the person who decides whether a submitted finding is valid.

More by ladboy233

View all

47 more disclosed reports, best first.

More from Renzo

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.