This repository has been archived by the owner on Jul 14, 2024. It is now read-only.
rvierdiiev - TWAPOracleDollar3poolFacet.setPool can be griefed #69
Labels
Non-Reward
This issue will not receive a payout
rvierdiiev
medium
TWAPOracleDollar3poolFacet.setPool can be griefed
Summary
Attacker can not allow ubiqiuty protocol to call
TWAPOracleDollar3poolFacet.setPool
, because of pool balance checkVulnerability Detail
TWAPOracleDollar3poolFacet.setPool
function allows protocol to set their curve pool that will be used to fetch prices.The function has balance check that wants reserves to be equal.
Such check allows anyone to change reserves in the pool, before
setPool
call in order to make tx fail. Then protocol will need to redeploy library and remove check or create a script that will control balance in the pool to be equal to be able to set the pool.Impact
Attacker can not allow to
setPool
.Code Snippet
Provided above
Tool used
Manual Review
Recommendation
Remove that check.
Duplicate of #14
The text was updated successfully, but these errors were encountered: