Wrong Oracle feed addresses
Several oracle contracts used incorrect or zero addresses for price feeds, so the system would read wrong prices for collateral assets. An attacker could potentially exploit these wrong prices to manipulate the protocol.
0xGusMcCrae Follow with 0xHati, 0xPkhatri and 47 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2023-05-USSD-judging/issues/817
Found by
0xGusMcCrae, 0xHati, 0xPkhatri, 0xRobocop, 0xStalin, 0xeix, 0xlmanini, 0xyPhilic, 14si2o_Flint, ADM, Aymen0909, Bahurum, Bauchibred, Bauer, BenRai, Brenzee, BugHunter101, Delvir0, DevABDee, Dug, G-Security, GimelSec, HonorLt, J4de, JohnnyTime, Juntao, Kirkeelee, Kodyvim, Kose, Lilyjjo, Madalad, PNS, PTolev, PokemonAuditSimulator, Proxy, Saeedalipoor01988, SaharDevep, Schpiel, SensoYard, T1MOH, TheNaubit, Vagner, Viktor_Cortess, WATCHPUG, __141345__, ashirleyshe, ast3ros, berlin-101, blockdev, chainNue, chalex.eth, ck, ctf_sec, curiousapple, dacian, evilakela, giovannidisiena, immeas, innertia, juancito, kie, kiki_dev, kutugu, lil.eth, martin, mrpathfindr, neumo, ni8mare, nobody2018, peanuts, pengun, qpzm, ravikiran.web3, saidam017, sakshamguruji, sam_gmk, sashik_eth, shaka, shogoki, simon135, theOwl, the_endless_sea, toshii, twicek, ustas, whiteh4t9527
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
Tool used
Manual Review
Recommendation
Use correct addresses.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the developers hardcoded incorrect or placeholder addresses for the price feed oracles.
Impact
Wrong prices for collateral assets could lead to incorrect valuations and potential exploitation.
What the attacker needed
None
The fix
The addresses should be corrected to point to the proper oracle feeds.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a smart contract audit finding. The contracts that fetch prices for assets like Bitcoin and DAI were pointing at the wrong addresses, so they would get incorrect price data. That could let someone take advantage of the system because it thinks assets are worth more or less than they really are.