This repository has been archived by the owner on May 26, 2023. It is now read-only.
0xdeadbeef - No check if Arbitrum L2 sequencer is down in Chainlink feeds #16
Labels
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
0xdeadbeef
medium
No check if Arbitrum L2 sequencer is down in Chainlink feeds
Summary
Using Chainlink in L2 chains such as Arbitrum requires to check if the sequencer is down to avoid prices from looking like they are fresh although they are not.
The bug could be leveraged by malicious actors to take advantage of the sequencer downtime.
Vulnerability Detail
The new
GLPOracle
is used the get the the price of GLP. There is no check that the sequencer is down:https://github.com/sherlock-audit/2023-01-sentiment/blob/main/oracle/src/gmx/GLPOracle.sol#L47
Impact
The impact depends on the usage of the GLP.
If it is used as part of the collateral for lenders:
Code Snippet
Tool used
VS Code
Manual Review
Recommendation
It is recommended to follow the code example of Chainlink:
https://docs.chain.link/data-feeds/l2-sequencer-feeds#example-code
The text was updated successfully, but these errors were encountered: