Back to Blog

Akutar NFT 损失 3400 万美元

Code Auditing
April 23, 2022

我们发现 @AkuDreams 合约存在两个严重的逻辑漏洞(https://etherscan.io/address/0xf42c318dbfbaab0eee040279c6a2588fa01a961d)。第一个漏洞可能导致拒绝服务攻击,第二个漏洞将导致项目资金(超过 3400 万美元)被永远锁定。

漏洞一

第一个漏洞存在于 processRefunds 函数中。该函数有一个循环,用于退还每个出价用户的资金。然而,出价者可能是一个恶意合约,它会导致交易回滚。这可能导致 processRefunds 函数的调用回滚,并且用户的所有退款都无法成功。幸运的是,该漏洞尚未被利用。

我们建议合约可以采取以下措施来退还用户资金:

  • 确保只有 EOA(外部所有者账户)才能出价
  • 使用 ERC20 代币(例如 WETH)而不是 ETH
  • 提供一个允许用户自行退款的函数

漏洞二

第二个漏洞是一个软件 bug。在 claimProjectFunds 函数中,项目所有者可以领取合约中的 Ether。然而,require(refundProgress >= totalBids, "Refunds not yet processed"); 这个 require 语句有一个 bug,它应该比较 refundProgress_bidIndex,而不是 totalBids。由于这个漏洞,该条件将永远无法满足,合约中的 Ether(11,539.5 Ether)将被永远锁定。

总结

令我们惊讶的是(继昨天的 NBA NFT 事件之后),一个备受瞩目的项目竟然会忽略基本的软件安全实践。至少,项目应该编写足够的测试用例。不幸的是,我们怀疑项目方过于忙碌而无法编写测试用例,导致永远损失 3400 美元。

关于 BlockSec

BlockSec 是一家开创性的区块链安全公司,由一群全球知名的安全专家于 2021 年创立。公司致力于提升新兴 Web3 世界的安全性和可用性,以促进其大规模采用。为此,BlockSec 提供智能合约和 EVM 链安全审计服务,用于主动开发和阻止威胁的 Phalcon 平台,用于资金追踪和调查的 MetaSleuth 平台,以及用于 Web3 构建者在加密世界高效冲浪的 MetaDock 扩展。

迄今为止,公司已为 MetaMask、Uniswap Foundation、Compound、Forta 和 PancakeSwap 等 300 多家知名客户提供服务,并从 Matrix Partners、Vitalbridge Capital 和 Fenbushi Capital 等杰出投资者那里获得了两轮数千万美元的融资。

官方网站:https://blocksec.com/

官方 Twitter 账号:https://twitter.com/BlockSecTeam

Sign up for the latest updates
Tether Freezes $6.76M USDT Linked to Iran's IRGC & Houthi Forces: Why On-Chain Compliance is Now a Geopolitical Battlefield
Security Insights

Tether Freezes $6.76M USDT Linked to Iran's IRGC & Houthi Forces: Why On-Chain Compliance is Now a Geopolitical Battlefield

Looking ahead, targeted freezing events like this $6.76M USDT action will only become more common. On-chain data analysis is improving. Stablecoin issuers are also working closely with regulators. As a result, hidden illicit financial networks will be exposed.

Weekly Web3 Security Incident Roundup | Mar 2 – Mar 8, 2026
Security Insights

Weekly Web3 Security Incident Roundup | Mar 2 – Mar 8, 2026

During the week of March 2 to March 8, 2026, seven blockchain security incidents were reported with total losses of ~$3.25M. The incidents occurred across Base, BNB Chain, and Ethereum, exposing critical vulnerabilities in smart contract business logic, token deflationary mechanics, and asset price manipulation. The primary causes included a double-minting logic flaw during full token deposits that allowed an attacker to exponentially inflate their balances through repeated burn-and-mint cycles, a price manipulation vulnerability in an AMM-based lending market where artificially inflated vault shares created divergent price anchors to incorrectly force healthy positions into liquidation, and a flawed access control implementation relying on trivially spoofed contract interfaces that enabled attackers to bypass authorization to batch-mint and dump arbitrary tokens.

Weekly Web3 Security Incident Roundup | Feb 23 – Mar 1, 2026
Security Insights

Weekly Web3 Security Incident Roundup | Feb 23 – Mar 1, 2026

During the week of February 23 to March 1, 2026, seven blockchain security incidents were reported with total losses of ~$13M. The incidents affected multiple protocols, exposing critical weaknesses in oracle design/configuration, cryptographic verification, and core business logic. The primary drivers included oracle manipulation/misconfiguration that led to the largest loss at YieldBloxDAO (~$10M), a crypto-proof verification flaw that enabled the FOOMCASH (~$2.26M) exploit, and additional token design and logic errors impacting Ploutos, LAXO, STO, HedgePay, and an unknown contract, underscoring the need for rigorous audits and continuous monitoring across all protocol layers.