You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.
sherlock-admin opened this issue
Jul 4, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
This can and has caused issues in the past (for reference). Even though the price is not hardcoded here, a change is only possible through governance, which might not be flexible and fast enough to adjust to changing environments
Impact
Price mismatch between oracle and market can cause bad behavior (e.g. reporting enough margin although there is not)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
minhtrng
medium
Stable prices pose risk in times of volatility
Summary
The project enables usage of stable prices for oracles. This poses a risk if the price turns out to be not so stable after all.
Vulnerability Detail
The function
Oracle.getUnderlyingPrice
enables returning a stable price as oracle price:This can and has caused issues in the past (for reference). Even though the price is not hardcoded here, a change is only possible through governance, which might not be flexible and fast enough to adjust to changing environments
Impact
Price mismatch between oracle and market can cause bad behavior (e.g. reporting enough margin although there is not)
Code Snippet
https://github.com/sherlock-audit/2023-04-hubble-exchange/blob/1f9a5ed0ca8f6004bbb7b099ecbb8ae796557849/hubble-protocol/contracts/Oracle.sol#L30-L32
Tool used
Manual Review
Recommendation
Remove the feature of stable prices
Duplicate of #69
The text was updated successfully, but these errors were encountered: