Skip to content
Audit finding Intermediate

Missing checks for whether Arbitrum Sequencer is active

The protocol's Chainlink price oracle adapter does not check whether the Arbitrum sequencer is active. If the sequencer goes down, the oracle may return stale prices, which could lead to false liquidations or over-borrowing.

0xepley Follow with Bauchibred, Bauer and 6 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2023-04-blueberry-judging/issues/142

Found by

0xepley, Bauchibred, Bauer, Brenzee, J4de, ctf_sec, deadrxsezzz, tallo, tsvetanovv

Summary

Missing checks for whether Arbitrum Sequencer is active

Vulnerability Detail

the onchain deployment context is changed, in prev contest the protocol only attemps to deploy the code to ethereum while in the current contest

the protocol intends to deploy to arbtrium as well!

Chainlink recommends that users using price oracles, check whether the Arbitrum sequencer is active

https://docs.chain.link/data-feeds#l2-sequencer-uptime-feeds

If the sequencer goes down, the index oracles may have stale prices, since L2-submitted transactions (i.e. by the aggregating oracles) will not be processed.

Impact

Stale prices, e.g. if USDC were to de-peg while the sequencer is offline, stale price is used and can result in false liquidation or over-borrowing.

Code Snippet

https://github.com/sherlock-audit/2023-04-blueberry/blob/main/blueberry-core/contracts/oracle/ChainlinkAdapterOracle.sol#L76-L98

Tool used

Manual Review

Recommendation

Use sequencer oracle to determine whether the sequencer is offline or not, and don't allow orders to be executed while the sequencer is offline.

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

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

Impact

Stale prices could lead to false liquidation or over-borrowing if the sequencer is offline.

What the attacker needed

Protocol deployed on Arbitrum; sequencer goes offline

The fix

The protocol should use a sequencer uptime oracle to check if the sequencer is offline and block orders while it is down.

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 sequencer is a component that orders transactions on a layer-2 network like Arbitrum. If it goes offline, price updates from oracles stop arriving, so the protocol may use old prices. This can cause users to be liquidated or borrow too much based on outdated information.

More from Blueberry Update #3

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.