This repository has been archived by the owner on Oct 1, 2023. It is now read-only.
Delvir0 - Insufficient Chainlink feed validation #126
Labels
Duplicate
A valid issue that is a duplicate of an issue with `Has Duplicates` label
Escalation Resolved
This issue's escalations have been approved/rejected
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Delvir0
medium
Insufficient Chainlink feed validation
Summary
ControllerPeggedAssetV2.getLatestPrice has insufficient Chainlink feed validation
Vulnerability Detail
Since there is insufficient check for stale prices, a stablecoin could depeg and return to peg if while not being pickup due to stale prices.
While pegOracle does implement a check on this, it's not sufficient: https://github.com/sherlock-audit/2023-03-Y2K/blob/main/Earthquake/src/oracles/PegOracle.sol#L79 (not sure if this contract is going to be used).
Impact
Users that deposited a premium will not receive assets according to projects mechanism/ concept at depeg or other project economics could result in a loss.
Code Snippet
https://github.com/sherlock-audit/2023-03-Y2K/blob/main/Earthquake/src/v2/Controllers/ControllerPeggedAssetV2.sol#L313-L315
Tool used
Manual Review
Recommendation
Implement the solution that has been provided in previous audit code-423n4/2022-09-y2k-finance-findings#61
Duplicate of #70
The text was updated successfully, but these errors were encountered: