Davide pfp
Davide

@0xdavide

🥷Yesterday, Ostium's vault (OLP) was drained: the attacker took control of a key used by the oracle (and also of the keeper who executed the orders), so the protocol accepted completely fabricated prices as valid. In DeFi perps, when a trader opens a position, there is no other trader on the other side: the counterparty is the vault (OLP). - If the trader loses: the vault gains. - If the trader gains: the vault pays. The attacker deposited USDC as margin and opened a long position on BTC. He then falsified the opening price. When the order was executed, instead of using the real BTC price (~$64,000), he sent a signed oracle report that says, for example: BTC = $6,000 The contract verified that the key was authorized, so the price was accepted. The attacker then closed the position with another fake price. He immediately closed the position by sending another signed report: BTC = $60,000.
1 reply
0 recast
0 reaction