This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
HexHackers - getMarkPrice() doesn't check If Arbitrum sequencer is down in chainlinkAdaptor.sol #105
Labels
Non-Reward
This issue will not receive a payout
HexHackers
medium
getMarkPrice() doesn't check If Arbitrum sequencer is down in chainlinkAdaptor.sol
Summary
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.
The sequencer being down has happened in the past - Arbitrum sequencer suffers 10 hours outage
This will lead to wrong prices and malicious actors potentially exploiting the protocol and the users.
Vulnerability Detail
The required check to make sure the sequencer is active is not present in the code
Impact
This may result in an unexpected price if the sequencer is down, opening the possibility for malicious actors to exploit the protocol.
Code Snippet
https://github.com/sherlock-audit/2023-04-jojo/blob/main/smart-contract-EVM/contracts/adaptor/chainlinkAdaptor.sol#L43
Tool used
Manual Review
Recommendation
Implement a method to check if the sequencer is down. Follow the Chainlink docs for dealing with EVM chains: https://docs.chain.link/data-feeds/l2-sequencer-feeds#example-code
Duplicate of #101
The text was updated successfully, but these errors were encountered: