headphones
Solv Protocol被盗270万美元事件及资金流向分析
Beosin
Beosin
03-10 18:59
Follow
Focus
Solv Protocol部署的BitcoinReserveOffering合约遭受攻击,该攻击主要是利用了BRO合约中的一个逻辑漏洞
Helpful
Unhelpful
Play

作者:Beosin

3月5日,Solv Protocol部署的BitcoinReserveOffering (BRO-SOLV-20MAY2026)合约遭受攻击,损失38 SolvBTC (价值约270万美元)。Beosin安全团队对本次事件进行了攻击手法与资金流向分析,并将结果分享如下:

攻击手法分析

本次事件的攻击交易交易哈希为: 0x44e637c7d85190d376a52d89ca75f2d208089bb02b7c4708ad2aaae3a97a958d

该攻击主要是利用了BRO合约中的一个逻辑漏洞:mint()会把 ERC-3525 代币通过 safeTransferFrom() 转移到wrapper中,并触发onERC721Received();回调函数会铸造一次BRO,而外部的mint()会再次铸造相同的代币。

如上图所示,mint()通过nonReentrant安全修饰符防止重入,但onERC721Received()并没有。在mint()中,当 amount_ == sftBalance 时,mint() 会执行 doSafeTransferIn(),该函数会执行 safeTransferFrom(from, address(this), tokenId)。在 mint() 执行到自身的 _mint(msg.sender, value) 之前,该操作会调用BRO合约上的onERC721Received(),在onERC721Received()里调用_mint(from_, value)从而实现重入。

攻击流程:

1. 攻击者调用burn(amount, 0),将一个 ERC-3525 代币转移到攻击合约。

2. 随后调用tokenOfOwnerByIndex(looper, 0),解析出可重用的代币ID 4932

3. 然后通过mint(4932, fullAmout),触发amount_ == sftBalance执行分支,实现攻击

攻击者通过22次上述的操作,成功从合约中提取38 SolvBTC并兑换成 1,211.05 ETH。

被盗资金追踪

根据链上交易数据,Beosin通过旗下区块链链上调查与追踪平台Beosin Trace进行了详尽的资金追踪,并将结果分享如下:

目前,被盗的1,211.05 ETH经过转移被存入Railgun,随后地址0xad64a432153906f805ad13fafd3f05d7e29a3f06提取 181 ETH,并将这部分资金存入Tornado Cash。整体资金流向如下图所示:

被盗资金流向分析图 by Beosin Trace

以上地址均已被Beosin KYT标记为高风险地址,以攻击者地址为例:

结语

本次被盗资金涉及业务合约,对于此类合约,项目方应对合约的实现进行完整审计,引入紧急暂停、参数限制、防重入等安全特性。安全审计依然是合约必不可少的环节。通过安全审计,Web3企业可以尽可能全面地检测智能合约代码,发现并修复潜在漏洞,提高合约安全性。

Open App for Full Article
DisclaimerThis website, hyperlinks, related apps, forums, blogs, media accounts, and other platforms' content are all sourced from third-party platforms and users. CoinWorldNet makes no guarantees about the website or its content. All blockchain data and other materials are for educational and research purposes only and do not constitute investment, legal, or other advice. Users of the CoinWorldNet and third-party platforms are solely responsible for the content they post, which is unrelated to CoinWorldNet. CoinWorldNet is not liable for any loss arising from the use of this website's information. You should use the data and content cautiously and bear all associated risks. It is strongly recommended that you independently research, review, analyze, and verify the content.
Comments(0)
Popular
Latest

No Comments

edit
comment
collection
like
share