sherlock-audit / 2023-12-ubiquity-judging

2 stars 2 forks source link

XDZIBEC - Oracle Price Manipulation in MintDollar and redeemDollar Functions #167

Closed sherlock-admin closed 10 months ago

sherlock-admin commented 10 months ago

XDZIBEC

high

Oracle Price Manipulation in MintDollar and redeemDollar Functions

Summary

See vulnerability details

Vulnerability Detail

Here is an example: In normal Condition: 1 Ubiquity Dollar = $1 True Market Rate, Oracle Reports = $1. Manipulated Condition: Oracle Reports 1 Ubiquity Dollar = $0.90 (10% Deflated). Attacker’s Action: Redeems Ubiquity Dollars for ETH collateral. the result : Without Manipulation: Redeems $1,000 worth of Ubiquity Dollars for an equivalent amount of ETH. With Manipulation: Redeems $1,000 worth of Ubiquity Dollars for more ETH than it's worth.

Impact

sherlock-admin2 commented 10 months ago

1 comment(s) were left on this issue during the judging contest.

auditsea commented:

  1. Stablecoins like LUSD or DAI are used as collateral 2. TWAP is used as oracle to hedge price deviation
sherlock-admin2 commented 10 months ago

1 comment(s) were left on this issue during the judging contest.

auditsea commented:

  1. Stablecoins like LUSD or DAI are used as collateral 2. TWAP is used as oracle to hedge price deviation
nevillehuang commented 10 months ago

Invalid, this issue is stating how a TWAP can be maniplated but doesn't prove how it can. So this is just speculation and just stating a design improvemnt suggestion