This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Madalad - Missing check if Chainlink sequencer is down #29
Labels
Non-Reward
This issue will not receive a payout
Madalad
medium
Missing check if Chainlink sequencer is down
Summary
Call to Chainlink price feed may return inaccurate value on L2 if the sequencer is unavailable.
Vulnerability Detail
When utilizing Chainlink in L2 chains like Arbitrum or Optimism, 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.
See Chainlink's docs
for more information.
Impact
Valuing assets incorrectly can lead to unexpected behaviour such as undercollateralization or unfair liquidations.
Code Snippet
https://github.com/sherlock-audit/2023-07-perennial/blob/main/root/contracts/attribute/Kept.sol#L62
Tool used
Manual Review
Recommendation
Implement a sequencer uptime check if the contract is deployed to an L2, as shown here.
Duplicate of #146
The text was updated successfully, but these errors were encountered: