This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
Bauer - getMarkPrice() doesn't check If Arbitrum sequencer is down in Chainlink feeds #171
Labels
Non-Reward
This issue will not receive a payout
Bauer
medium
getMarkPrice() doesn't check If Arbitrum sequencer is down in Chainlink feeds
Summary
Not checking if the sequencer is down may result in bd actors obtaining inconsistent and unfair prices.
Vulnerability Detail
When utilizing Chainlink in L2 chains like Arbitrum, it's important to ensure that the prices provided are not falsely perceived as fresh, even when the sequencer is down. This vulnerability could potentially be exploited by malicious actors to gain an unfair advantage.
Example:https://docs.chain.link/data-feeds/l2-sequencer-feeds#example-code
There is no check in the ChainlinkAdapterOracle.sol
Impact
Could potentially be exploited by malicious actors to gain an unfair advantage.
Code Snippet
https://github.com/sherlock-audit/2023-04-jojo/blob/main/smart-contract-EVM/contracts/adaptor/chainlinkAdaptor.sol#L43-L55
Tool used
Manual Review
Recommendation
Check if sequencer is down
Duplicate of #101
The text was updated successfully, but these errors were encountered: