Skip to content
Business logic Audit finding Intermediate

No check for sequencer uptime can lead to dutch auctions failing or executing at bad prices

The AuctionHouse contract lacks a check for sequencer uptime, so a network outage during a Dutch auction can cause the auction to fail or execute at unfavourable prices, leading to protocol losses and slashing of users with weight on the term.

EV_om Follow with Ward

Originally disclosed on Code4rena

Submitted by EV_om, also found by Ward

The AuctionHouse contract implements a Dutch auction mechanism to recover debt from collateral. However, there is no check for sequencer uptime, which could lead to auctions failing or executing at unfavorable prices.

The current deployment parameters allow auctions to succeed without a loss to the protocol for a duration of 10m 50s. If there’s no bid on the auction after this period, the protocol has no other option but to take a loss or forgive the loan. This could have serious consequences in the event of a network outage, as any loss results in the slashing of all users with weight on the term.

Network outages and large reorgs happen with relative frequency. For instance, Arbitrum suffered an hour-long outage just two weeks ago (source).

Proof of Concept

Consider the following scenario:

  1. A loan is called and an auction is initiated.
  2. The network experiences an outage, causing the sequencer to go offline.
  3. The auction fails to receive any bids within the 10m 50s window due to the outage.
  4. The protocol is forced to take a loss (if there’s still a bid after the midPoint and before the auction ends) or forgive the loan, both leading to the complete slashing of all users with weight on the term.

Recommended Mitigation Steps

To mitigate this issue, consider integrating an external uptime feed such as Chainlink’s L2 Sequencer Feeds. This would allow the contract to invalidate an auction if the sequencer was ever offline during its duration. Alternatively, implement a mechanism to restart an auction if it has received no bids.

eswak (Ethereum Credit Guild) acknowledged, but disagreed with severity and commented:

Acknowledging this, we definitely don’t want to add a dependency on an oracle to run the liquidations, so maybe another fix would be to define auction durations in number of blocks. I think basing auctions on time is semantically correct because it depends on market conditions (that are based on time) and when the sequencer resumes the conditions that triggered the auction might not hold anymore. The forgive() path at the end of the auction could be used to unstick the situation at the smart contract level, and the governance can organize an orderly fix of the situation when the sequencer resumes.

Given the likelihood, I think it should be low severity, especially since we know auctions have to be longer on L2s than on mainnet (liquidity potentially needs to bridge, etc), so the chance that a downtime large enough relative to the auction duration will happen is pretty low.

TrungOre (judge) commented:

In my opinion, if an auction is still active when the sequencer is down, it may cause a loss of assets (collateral) for the borrower. Although governance’s measures can help mitigate the situation when the sequencer resumes, loss and slashing in this lending term will be inevitable in such cases. So I think medium severity is appropriate for this issue, but I’m open to other feedback.


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

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

How it worked

Root cause

Likely the contract uses time-based auction durations without verifying that the sequencer was online for the entire period, so an outage can consume the auction window.

Impact

If the sequencer is offline during an auction, the auction may fail or execute at bad prices, causing a loss to the protocol and slashing all users with weight on the term; the report notes this is more likely on L2s with longer auctions.

What the attacker needed

A loan is called and auction starts; sequencer goes offline during auction; no bids received in auction window

The fix

The contract should be fixed by integrating an external uptime feed such as Chainlink’s L2 Sequencer Feeds to invalidate an auction if the sequencer was offline, or by implementing a mechanism to restart an auction that received no bids.

How it was found

  1. A loan is called and an auction is initiated.
  2. The network experiences an outage, causing the sequencer to go offline.
  3. The auction fails to receive any bids within the 10m 50s window due to the outage.
  4. The protocol is forced to take a loss or forgive the loan, leading to slashing of users with weight on the term.

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 report has not been written yet. The Original tab links to the source.

A Dutch auction is a sale where the price starts high and goes down over time. If the computer that processes transactions (the sequencer) goes offline, the auction can pass its useful window without any bids, and the protocol may lose money. This report says the contract should check whether the sequencer was offline and handle that case.

What is Business logic?

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

More by EV_om

View all

23 more disclosed reports, best first.

More from Ethereum Credit Guild

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.