QUADRIGA INITIATIVE
CRYPTO WATCHDOG & FRAUD RECOVERY PLATFORM
A COMMUNITY-BASED, NOT-FOR-PROFIT
$570 000 USD
MARCH 2022
GLOBAL
LIFI PROTOCOL
DESCRIPTION OF EVENTS
"Swap & Bridge Liquidity Across 20+ Chains" "Best price execution for any swap/bridge. One API to swap, bridge, and zap across all major blockchains and protocols. Enable trading across all DEX aggregators, bridges, and intent-systems and save hundreds of developer hours."
"Go to market faster. No integration and maintenance overhead. Benefit from risk mitigation, fail safety and neatless interoperability by a vast amount of underlying protocols (e.g. DEX aggregators & bridges), which LI.FI aggregates."
"Frequent audits, pentests and enterprise-grade security controls. We work intensively with the most trusted organizations in the space to create risk-assessment frameworks and risk-mitigation measures."
"It takes constant research, integration, monitoring and maintenance overhead. A unified data handling allows consistent analytics, debugging and customer support capabilities. You get all of that out of the box."
"Flexible fee structures allow the collection and distribution of fees amongst partners. Automatic fee conversions (depending on which currency the fees were taken in) are included."
"The two founders, Philipp and Max, have already been building companies together for 10 years. With a growing team of 40+ people, we’re obsessed with DeFi infrastructure and aggregating and optimizing the most important parts of it to accelerate the widespread adoption of crypto."
"The hack took advantage of our pre-bridge swap feature. Our smart contract allows a caller to pass an array of multiple swaps using any address with arbitrary calldata.
This design gave us maximum flexibility in what DEXs we could call and what methods we could call. This also allowed anyone to call other contracts, not just DEXs. Our contract checks to make sure that the result of the swap or swaps is enough tokens to continue the bridging operation.
The attacker started by passing a legitimate swap of a small amount followed by multiple calls directly to various token contracts. Specifically, they called the `transferFrom` method which allowed the attacker to transfer funds from users’ wallets that had previously given infinite approval to our contract for that specific token."
"The exploit was done in one transaction, done at 02:51 AM +UTC, through which the attacker managed to steal around $600k (current value $587,500 or 205 ETH) from 29 wallets. The attacker took various tokens from users’ wallets, based on which token contracts users had given infinite approvals. The tokens in question were USDC, MATIC, RPL, GNO, USDT, MVI, AUDIO, AAVE, JRT, and DAI."
"As a result of the exploit, anyone who gave infinite approval to our contract was vulnerable. As soon as the team had been notified of the exploit, we disabled all of the swap methods in our smart contract and started working on a fix to ensure they are safe to use and that something like this does not happen again.
Aside from that, we have promptly alerted the community of the exploit via Twitter and informed our partners and investors. We thank everyone for their support."
"This exploit has provided another example of why security must be of utmost importance. As builders in the space, it is our responsibility to ensure that users’ funds are safe above else. Our users can rest assured that the audit is happening and LI.FI is safe to use. Going through this experience, we have also been given an opportunity to drive more attention to the security risks still faced in the space. Our research team will focus even more on the security aspects to make LI.FI the most secure and reliable tool for cross-chain interoperability."
"After the exploit, the attacker swapped all of the tokens into ETH, and since then, they are still in the hacker’s wallet."
"LI.FI exploiter, We appreciate you pointing out the vulnerability in our contracts. We would like to discuss returning user funds and a potential bounty: tech@li.finance"
LiFi Protocol is a decentralized swap/bridge aggregation service which assists with swapping assets from one asset to another. The contract was deployed without a restriction on the bridges which could be used, which allowed smart contracts that transfered assets to be specified in the swapping function. Users who had granted infinite approvals for any assets were at risk for those assets being drained. $570k was drained from 29 different accounts in a single transaction. The amounts were ultimately reimbursed by the protocol. It doesn't appear that the individual responsible for the attack returned any funds or was ever apprehended.
Rekt - LiFi/Jumper - Rekt (Jul 17)
LI.FI Smart Contract Vulnerability Post Mortem | by Zord4n | LI.FI Blog (Jul 17)
LI.FI - Bridge & DEX Aggregation Protocol (Jul 17)
Ethereum Transaction Hash (Txhash) Details | Etherscan
(Jul 17)
Ethereum Transaction Hash (Txhash) Details | Etherscan
(Jul 17)
@lifiprotocol Twitter (Jul 17)
@lifiprotocol Twitter (Jul 17)
