DEUS Finance DAO被盗1570万美元攻击事件分析

CertikPublished on 2022-04-28Last updated on 2022-04-28

Abstract

DEUS Finance被恶意利用,造成了约1570万美元(折合人民币约1.03亿)的损失。

​北京时间2022年4月28日10:40:14 ,CertiK审计团队监测到DEUS Finance的合约被恶意攻击,造成了约1570万美元(折合人民币约1.03亿)的损失。
攻击者恶意操纵DEI的价格,从DeiLenderSolidex合约中通过提供少量的抵押品提取了大量的DEI。
漏洞交易
https://ftmscan.com/tx/0x39825ff84b44d9c9983b4cff464d4746d1ae5432977b9a65a92ab47edac9c9b5
攻击步骤
①攻击者部署攻击合约并向借贷池DeiLenderSolidex合约提供抵押。②随后攻击者利用攻击合约获得了超过143,200,000 USDC用以发起攻击。
③攻击合约将这143,200,000 个借得的USDC在USDC/DEI交易对池0x5821573中换为9,547,716个DEI,此举导致DEI的价格被大幅提高。
④由于DeiLenderSolidex合约是用预言机来确定用户抵押品的价值,而预言机合约使用被恶意操纵的交易对池的价格作为价格来源。因此通过提高的价格和之前提供的抵押,攻击者可从借贷池(DeiLenderSolidex)中总计借贷到17,246,885 DEI,这一数额远大于之前攻击者提供抵押的金额。

预言机

预言机

⑤攻击者用9,547,716个 DEI交换到的143,184,725 USDC来偿还闪电贷款,最终获取差价离场。

漏洞分析

预言机

通过闪电贷,攻击者能够操纵交易对的状态,并进一步操纵DEUS的预言机价格,以此利用不对等的价值借贷DEI。
资产去向
截至撰稿时,黑客已将攻击所得转到以太坊上并换成ETH,随后将5,446个ETH(总价值约1570万美元)存入Tornado Cash。https://debank.com/profile/0x701428525cbac59dae7af833f19d9c3aaa2a37cb/history 
写在最后
预言机合约不应该直接使用交易对池中的价格作为价格来源,而安全审计可以有效地避免这一风险。CertiK安全专家建议:如果只有代币合约被审计,这种情况在审计过程中将会指出第三方依赖风险。项目应该避免直接从交易对池中获取价格。建议根据项目的逻辑,使用更值得信任的预言机:1. 使用多个可靠的链上价格预言机来源,例如Chainlink和Band协议。
2. 使用时间加权平均价格(TWAP)。TWAP代表了一个代币在特定时间范围内的平均价格。因此如果攻击者仅操纵一个区块的价格并不会对平均价格产生太大的影响。
3. 如果合约模式允许,将函数调用者限制在一个非合约/EOA地址。  
4. 闪电贷款只允许用户在一次交易中进行借贷。如果合约用例允许,可强制关键交易至少跨越两个区块。 

Related Reads

Turkey blocked 47,493 illegal betting sites amid expanded measures targeting cryptocurrency accounts

Turkey has blocked access to 47,493 illegal betting websites since January 1st as part of a nationwide crackdown on online gambling operators and their payment networks. Police and gendarmerie conducted 680 operations, detaining 5,629 suspects, with 3,231 placed in pre-trial detention and 1,515 placed under judicial supervision. Cybercrime units are conducting 24/7 monitoring of illegal betting sites, social media ads, and digital payment channels. Investigators are tracking bank accounts, e-money services, and crypto asset wallets suspected of facilitating betting operations or laundering criminal proceeds. The actions follow earlier raids in May targeting over 670 suspects, with one investigation in Adana uncovering cryptocurrency platforms used for laundering betting revenues. Authorities highlighted a specific case involving a network allegedly coordinated by a suspect with initials İ.Ö.Ö., which reportedly generated revenue from illegal betting and match-fixing. Prosecutors identified seven overseas crypto wallets that received transfers from this network, estimating total transaction volume at $4 billion. All related bank and crypto accounts were frozen. The network allegedly recruited individuals to act as "common accounts" for processing bets in exchange for a 1% commission. In separate operations, authorities blocked 4,742 bank accounts and six crypto accounts in Adana, and identified transactional activity worth approximately $104 million across 47 suspects. Assets including companies, vehicles, and properties were seized. The crackdown includes real-time disruption. During the 2022 World Cup final, prosecutors identified and ordered the freezing of 6,314 bank accounts used for illegal betting, aided by an AI analysis system called AVCI. They project illegal betting volume for the 2026 World Cup could reach $50 billion. Justice Minister Yılmaz Tunç stated that 19 offshore "financial companies" managing panel systems for illegal betting sites were identified, with legal proceedings initiated against 23 suspects. He emphasized a strategic shift towards "draining the swamp" through coordinated asset seizures and digital evidence collection, rather than relying on individual prosecutions.

cryptonews.ru4m ago

Turkey blocked 47,493 illegal betting sites amid expanded measures targeting cryptocurrency accounts

cryptonews.ru4m ago

Trading

Spot
活动图片