code-423n4 / 2022-05-bunker-findings

1 stars 0 forks source link

Loss of Assets Via Inaccurate NFTX Pricing #113

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Lines of code

https://github.com/bunkerfinance/bunker-protocol/blob/752126094691e7457d08fc62a6a5006df59bd2fe/contracts/Oracles/UniswapV2PriceOracle.sol#L24

Vulnerability details

Issue: NFT valuation is dependent on the NFTX fractional token price. The peg of that token to the actual NFT underlying price is dependent on arbitrageurs. If the NFTx token depegs for any reason, or the pool has low liquidity, the Bunker protocol will recieve faulty floor price information.

Proof of Concept

Alternate proof of concept:

Mitigations

bunkerfinance-dev commented 2 years ago

We were always aware that this is an issue, so for now we plan to only use NFTs with a high amount of NFTx liquidity.