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

1 stars 0 forks source link

Loss of NFTs Via Malicious Oracle Injection #109

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Lines of code

https://github.com/bunkerfinance/bunker-protocol/blob/752126094691e7457d08fc62a6a5006df59bd2fe/contracts/Comptroller.sol#L764

Vulnerability details

Issue: The admin account can arbitrarily update the oracle at any time. If the oracle is changed to a malicious or vulnerable oracle, the price may be manipulated to allow illegitimate siezure of the assets.

Consequences: Any user-deposited NFT with outstanding borrows can be liquidated and siezed at any time for trivially small costs.

Proof of Concept

bunkerfinance-dev commented 2 years ago

Duplicate of #102