Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

shogoki - Missing Check for Arbitrum Sequencer #232

Closed
sherlock-admin opened this issue Jul 1, 2023 · 0 comments
Closed

shogoki - Missing Check for Arbitrum Sequencer #232

sherlock-admin opened this issue Jul 1, 2023 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A valid Medium severity issue Reward A payout will be made for this issue

Comments

@sherlock-admin
Copy link
Contributor

sherlock-admin commented Jul 1, 2023

shogoki

medium

Missing Check for Arbitrum Sequencer

Summary

There is no check if the Arbitrum Sequencer is online, when fetching the Chainlink Oracle

Vulnerability Detail

When Chainlin is used in L2 networks, like Arbitrum, it is required to check if the Sequencer is online. If the sequencer is down, prices may look fresh, altough they arent.

Therefore the getPrice function from the Oracle may return stale prices.

Impact

A malicious user could leverage stale prices when the Sequencer is down.

Code Snippet

https://github.com/sherlock-audit/2023-06-dodo/blob/main/new-dodo-v3/contracts/DODOV3MM/periphery/D3Oracle.sol#L48-L56

Tool used

Manual Review

Recommendation

Implement check for the Sequencer.
An example can be found here:
https://blog.chain.link/how-to-use-chainlink-price-feeds-on-arbitrum/#almost_done!_meet_the_l2_sequencer_health_flag

Duplicate of #62

@github-actions github-actions bot closed this as completed Jul 5, 2023
@github-actions github-actions bot added Medium A valid Medium severity issue Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Jul 5, 2023
@sherlock-admin sherlock-admin added the Reward A payout will be made for this issue label Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A valid Medium severity issue Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

1 participant