Avalanche-based leveraged trading platform Defrost Finance announced on Dec. 24 that its V2 version was hacked due to a flash loan exploit.
Defrost Finance is sad to announce that our V2 has suffered a hack, with an attacker using a flash loan function to withdraw funds.
— Defrost Finance 🔺 (@Defrost_Finance) December 24, 2022
The V1 is not affected. We will soon close the V2 UI and investigate further with our tech team.
Updates will be posted on our official channels.
“As the team digs further, please be aware that the V1 is unaffected – the first version of Defrost has no flash loan function,” tweeted the company.
According to blockchain security firm PechShied, the hack was caused by a lack of reentrancy lock for the flashloan()/deposit() functions and cost the firm around $173k.
The @Defrost_Finance is exploited, leading to the gain of ~$173k for the hacker. The hack is made possible due to the lack of reentrancy lock for the flashloan()/deposit() functions, which was used by the hacker to manipulate the share price of LSWUSDC. pic.twitter.com/SINHUZXC0D
— PeckShieldAlert (@PeckShieldAlert) December 23, 2022
A day later, on Dec. 25, Defrost again tweeted, saying that its V1 version had also suffered a much larger exploit as the attacker managed to steal the owner key.
Even though the protocol couldn’t confirm if it was the same hacker responsible for the V1 hack, Defrost confirmed it would keep investigating.
3/4 The same – or another – hacker also managed to steal the owner key for a second, much larger attack on the V1.
— Defrost Finance 🔺 (@Defrost_Finance) December 25, 2022
We are currently working on finding out how exactly the aggressors managed to obtain the key and used it to exploit the protocol.
“We will keep on investigating and all relevant information will be shared with the community. We are thankful to the Defrost community for their ongoing support at this difficult time,” tweeted the company.
While the team at Defrost Finance continued with the updates, the community suspects an intentional rug pull presented as an exploit.
PeckShield confirmed an intel warning of a $12 million rug pull at Defrost that used a malicious price oracle to liquidate the current users.
We received community intel warning the rugpull of @Defrost_Finance. Our analysis shows a fake collateral token is added and a malicious price oracle is used to liquidate current users. The loss is estimated to be >$12M. https://t.co/70iu38OYh7 pic.twitter.com/rSKklgV71I
— PeckShield Inc. (@peckshield) December 24, 2022
Web3 security firm DeFiYield said it had audited Defrost about a year ago and highlighted the smart contract vulnerability that led to the exploit. The trading protocol used the same exploit to rug pull its users.
⚡️ We have warned DeFi Community about the smart contract vulnerability @Defrost_Finance used to rug pull its users.
— DeFiYield 🛡️ Web 3 Security (@DefiyieldSec) December 25, 2022
1 year ago we performed an audit on Defrost.
Audit link: https://t.co/u2JBm7zAq8
Don't wanna get scammed in Crypto?
Follow DeFiYield Audits! 🚨 https://t.co/4Osx19KE0f pic.twitter.com/eIgx3rFn69
Meanwhile, Defrost Finance tweeted that its willing to negotiate with the hackers and offered a 20% bounty in exchange for the stolen funds.