In a shocking turn of events, Coinbase-backed decentralized finance (DeFi) project, Truflation, recently suffered a massive hack resulting in a loss of approximately $4.6 million. According to reports, this attack occurred on June 13, 2021, and it targeted the project’s
Multicall contract
. This contract is a crucial component of Truflation’s platform, enabling users to execute multiple calls to different contracts within a single transaction.
The
exploit
, discovered by the security firm PeckShield, involved a reentrancy attack. In simpler terms, an attacker was able to repeatedly call Truflation’s contract while maintaining control of their initial transaction, thereby siphoning off funds. The vulnerability lay in a specific design choice made during the creation of Truflation’s
SmartPool contract
. This contract is responsible for distributing rewards to pool participants. Unfortunately, it did not include a check on the balance of the contract after each call, leaving an opening for attackers to manipulate the system and steal funds.
Upon detecting the breach, Truflation’s team took swift action to mitigate further damage. They immediately paused all transactions on their platform and reached out to Coinbase for assistance. According to Truflation’s founder,
Alex Svanevik
, Coinbase provided crucial support in the form of on-chain analysis and other resources. In addition, Truflation’s team worked closely with PeckShield to understand the extent of the exploit and implement necessary fixes.
As of now, Truflation’s team has identified the attacker and is in the process of recovering the stolen funds. They have also shared their findings with relevant parties, including Coinbase, to ensure that similar incidents do not occur in the future. Furthermore, Truflation has announced plans to conduct a thorough security audit of their entire platform to ensure the safety and security of its users.