Earning.Farm suffered a lightning loan attack, with a total loss of 748 ETH
Earning.Farm's EFLeverVault contract was hit by two lightning loan attacks, blockchain security team Supremacy said in a post on social media on Oct. 14. The first attack was intercepted by the MEV bot with a loss of 480 ETH, while the second hacker completed the attack with a profit of 268 ETH.
After analysis, the vulnerability is caused by the failure of the lightning loan callback function of the contract to verify the originator of the lightning loan. The attacker can trigger the lightning loan callback logic of the contract by himself: repay the Aave stETH debt in the contract and withdraw cash, and then convert stETH to ETH. The attacker can then call the withdraw function to withdraw the ETH balance in all contracts.