Sitemap

SlowMist:Brief Analysis of Value DeFi Protocol Lightning Loan Attack

Nov 15, 2020
Press enter or click to view image in full size

On November 15, 2020, Value DeFi’s Value DeFi MultiStables vault suffered a lightning loan attack. The SlowMist security team followed up and conducted relevant analysis as soon as possible, and presented it to everyone in a brief form for your reference.

Attack brief analysis

  1. The attacker fist flash loan 80,000 ETH from Aave.
  2. The attacker use 80,000 ETH to swap USDT from Uniswap WETH/USDT pool and flash loan a large amount of DAI from Uniswap WETH/DAI pool.
  3. The attacker use DAI loaned from step two to deposit in ValueMultiVaultBank, ValueMultiVaultBank will convert its asset from bCRV/cCRV to 3CRV. the convert path is bCRV/cCRV -> USDC -> 3CRV. And then mint tokens to attacker according to the amount of the deposited DAI and the total value of 3CRV.
  4. The attacker swap DAI and USDT to USDC in Curve DAI/USDC/USD pool, increase the price of USDC/3CRV.
  5. The attacker withdraw 3CRV from ValueMultiVaultBank, because in step 3, because the attacker has increased the price of USDC/3CRV, the bCRV and cCRV can be converted to more 3CRV, which means that the attacker can withdraw the same amount of tokens that minted in step 3 for more 3CRV token.
  6. Retrun falsh loan to Aave and Uniswap, and burn 3CRV for DAI from Curve DAI/USDC/USD pool.

Conclusion

The ValueMultiVaultBank convert its asset to 3CRV when mint CRV, which depends on the price of USDC/3CRV in DAI/USDC/USDT pool, attacker can stolen assets in ValueMultiVaultBank by controlling the USDC/3CRV price in Curve DAI/USDC/USD pool.

SlowMist
SlowMist

Written by SlowMist

SlowMist is a Blockchain security firm established in 2018, providing services such as security audits, security consultants, red teaming, and more.