CertiK: Can anyone escape hacker attacks in DeFi——A brief analysis of the xToken attack incident
This article is about 2008 words, reading the full article takes about 3 minutes
On May 13, Beijing time, the CertiK security technology team discovered that the DeFi pledge and liquidity strategy platform xToken was attacked
AI Summary
On May 13, Beijing time, the CertiK security technology team discovered that the DeFi pledge and liquidity strategy platform xToken was attacked
On May 13, Beijing time, the CertiK security technology team discovered that the DeFi pledge and liquidity strategy platform xToken was attacked, and the xBNTaBancor pool and xSNXaBalancer pool were immediately exhausted, causing a loss of nearly 25 million US dollars.
The key bugs discovered by the CertiK security team in 2020 fall into three categories: logic errors, flash loans, and project party fraud.If the funds are not returned in time, the transaction will be reversed, keeping the reserve pool safe.Flash loans can be used for loans without providing any collateral. Of course, all operations must be completed within a transaction block.Developers can borrow and borrow from protocols like Aave or dYdX on the condition that liquidity is returned to the pool before the transaction closes.If the funds are not returned in time, the transaction will be reversed, keeping the reserve pool safe.Flash loans have multiple functions and use cases, but most of the flash loans we have seen so far are used for arbitrage transactions.The malicious use method is to attack some other DeFi protocols or manipulate the price of the price oracle machine-this is exactly what happened to xToken this time.
detailed analysis
Attacks against xSNXa
- 1. Hackers used flash loans to lend about 61,800 ETH on dYdX.2. Deposit 10,000 ETH on Aave to lend 564,000 SNX, and then exchange 5,500 ETH for about 700,000 SNX through SushiSwap.Afterwards, 1.2 million SNX was sold on Uniswap v2, and 818ETH was obtained, which greatly reduced the price of SNX.3. After the price was reduced, the attacker minted 1.2 billion xSNXa with only 0.12 ETH.This is because the protocol buys SNX and mints xSNXa through the Kyber price oracle, which references Uniswap v2 prices.4. However, in the Balancer protocol, the price of xSNXa is still the original price, which allows the attacker to exchange 105 million xSNX for 414 ETH.secondary title
Attacks against xBNTa
write at the end
It is actually not common for xToken, as an excellent DeFi project that has been audited by a large security company, to suffer such an attack.
Welcome to click the dialog box at the bottom of the CertiK public account, leave a message to get free consultation and quotation!
DeFi
Welcome to Join Odaily Official Community


