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

WATCHPUG - Wrong Oracle feed addresses #817

Open
sherlock-admin opened this issue May 24, 2023 · 0 comments
Open

WATCHPUG - Wrong Oracle feed addresses #817

sherlock-admin opened this issue May 24, 2023 · 0 comments
Labels
Has Duplicates A valid issue with 1+ other issues describing the same vulnerability High A valid High severity issue Reward A payout will be made for this issue

Comments

@sherlock-admin
Copy link
Contributor

sherlock-admin commented May 24, 2023

WATCHPUG

high

Wrong Oracle feed addresses

Summary

Wrong Oracle feed addresses will result in wrong prices.

Vulnerability Detail

StableOracleWBTC.sol#L17 the address is not the BTC/USD feed address.

StableOracleDAI.sol#L28, DAIEthOracle is wrong.

StableOracleDAI.sol#L30, address for ethOracle is address zero (a hanging todo).

StableOracleWBGL.sol#L19, the address for staticOracleUniV3 is wrong, the current one is actually the univ3 pool address.

Impact

Wrong prices for collateral assets.

Code Snippet

https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/oracles/StableOracleWBTC.sol#L8-L28

https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/oracles/StableOracleDAI.sol#L23-L31

https://github.com/USSDofficial/ussd-contracts/blob/f44c726371f3152634bcf0a3e630802e39dec49c/contracts/oracles/StableOracleWBGL.sol#L17-L22

Tool used

Manual Review

Recommendation

Use correct addresses.

@github-actions github-actions bot closed this as completed Jun 5, 2023
@github-actions github-actions bot added High A valid High severity issue Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Jun 5, 2023
@github-actions github-actions bot reopened this Jun 23, 2023
@github-actions github-actions bot added Has Duplicates A valid issue with 1+ other issues describing the same vulnerability and removed Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Jun 23, 2023
This was referenced Jun 23, 2023
This was referenced Jun 23, 2023
@sherlock-admin sherlock-admin added the Reward A payout will be made for this issue label Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Has Duplicates A valid issue with 1+ other issues describing the same vulnerability High A valid High severity issue Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

1 participant