arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2208.00205cs.CR
收藏

BlockScope:检测和调查分叉区块链项目中的漏洞

BlockScope: Detecting and Investigating Propagated Vulnerabilities in Forked Blockchain Projects

Xiao Yi, Yuzhou Fang, Daoyuan Wu, Lingxiao Jiang

摘要:

由于区块链生态系统的开源性质,新的区块链通常会分叉或部分重用经典区块链的代码。例如,流行的Dogecoin,Litecoin,Binance BSC和Polygon都是比特币/以太坊的变体。因此,这些“分叉”区块链可能会遇到类似的漏洞,这些漏洞在分叉或随后的提交获取过程中从比特币/以太坊传播。在本文中,我们对分叉区块链项目中传播的漏洞进行了系统的研究。为了促进这项研究,我们提出了BlockScope,这是一种新的工具,可以有效地检测多种类型的克隆漏洞,并输入现有的比特币/以太坊安全补丁。具体来说,BlockScope采用了基于相似度的代码匹配,并设计了一种新的计算代码相似度的方法,以覆盖所有语法范围的变体(即,1型、2型和3型)克隆。此外,BlockScope自动提取并利用补丁代码的上下文来缩小搜索范围,并仅定位潜在相关的代码进行比较。我们的评估表明,BlockScope实现了良好的准确率和高召回率,均为91.8%(比ReDeBug高1.8倍)。BlockScope允许我们在比特币和以太坊的16个分叉项目中的13个项目中发现101个以前未知的漏洞,其中16个来自Dogecoin,6个来自Litecoin,1个来自Binance,4个来自Optimism。我们已经向他们的开发人员报告了所有漏洞;其中40个已经修补或接受,66个已经确认或正在等待,只有4个被拒绝。我们进一步研究了发现的漏洞的传播和修补过程,并揭示了从源到分叉项目的三种类型的漏洞传播,以及比特币分叉中发布补丁的长延迟(超过200天)。

英文摘要:

Due to the open-source nature of the blockchain ecosystem, it is common for new blockchains to fork or partially reuse the code of classic blockchains. For example, the popular Dogecoin, Litecoin, Binance BSC, and Polygon are all variants of Bitcoin/Ethereum. These "forked" blockchains thus could encounter similar vulnerabilities that are propagated from Bitcoin/Ethereum during forking or subsequently commit fetching. In this paper, we conduct a systematic study of detecting and investigating the propagated vulnerabilities in forked blockchain projects. To facilitate this study, we propose BlockScope, a novel tool that can effectively and efficiently detect multiple types of cloned vulnerabilities given an input of existing Bitcoin/Ethereum security patches. Specifically, BlockScope adopts similarity-based code match and designs a new way of calculating code similarity to cover all the syntax-wide variant (i.e., Type-1, Type-2, and Type-3) clones. Moreover, BlockScope automatically extracts and leverages the contexts of patch code to narrow down the search scope and locate only potentially relevant code for comparison. Our evaluation shows that BlockScope achieves good precision and high recall both at 91.8% (1.8 times higher recall than that in ReDeBug). BlockScope allows us to discover 101 previously unknown vulnerabilities in 13 out of the 16 forked projects of Bitcoin and Ethereum, including 16 from Dogecoin, 6 from Litecoin, 1 from Binance, and 4 from Optimism. We have reported all the vulnerabilities to their developers; 40 of them have been patched or accepted, 66 were acknowledged or under pending, and only 4 were rejected. We further investigate the propagation and patching processes of discovered vulnerabilities, and reveal three types of vulnerability propagation from source to forked projects, as well as the long delay (over 200 days) for releasing patches in Bitcoin forks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑