arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.05981cs.SE
收藏

理解 Solidity 编译器中的缺陷

Towards Understanding the Bugs in Solidity Compiler

Haoyang Ma, Wuqi Zhang, Qingchao Shen, Yongqiang Tian, Junjie Chen, Shing-Chi Cheung

AI总结:

本文首次系统性研究了533个Solidity编译器缺陷,分析其特征与触发用例,得出七条结论,并通过基准评估三个模糊测试工具,揭示其因忽视缺陷诱导特征、编译选项和测试预言而检测效率低下的问题。

摘要:

Solidity 编译器在以太坊上智能合约应用的开发中扮演着关键角色,它管理着名为 Solidity 的领域特定语言的语法,并执行 Solidity 代码的编译与优化。Solidity 编译器的正确性对于促进依赖智能合约的行业中的透明度、效率和信任至关重要。然而,与其他软件系统一样,Solidity 编译器也容易产生缺陷,这些缺陷可能在区块链平台上生成错误的字节码,从而引发严重的安全问题。作为面向智能合约的领域特定编译器,Solidity 编译器在许多方面与其他编译器不同,这给检测其缺陷带来了独特的挑战。为了理解 Solidity 编译器中的缺陷并为未来研究提供帮助,本文首次对 533 个 Solidity 编译器缺陷进行了系统性研究。我们仔细考察了这些缺陷的特征(包括症状、根本原因和分布)及其触发测试用例。我们的研究得出了七条揭示 Solidity 编译器缺陷的结论。此外,为了研究 Solidity 编译器模糊测试工具的局限性并将我们的发现应用于实际场景,我们在构建的基准上评估了三个 Solidity 编译器模糊测试工具。结果表明,这些模糊测试工具在检测 Solidity 编译器缺陷方面效率低下。效率低下的原因在于它们未能考虑有趣的缺陷诱导特征、与缺陷相关的编译选项以及测试预言。

英文摘要:

Solidity compiler plays a key role in enabling the development of smart contract applications on Ethereum by governing the syntax of a domain-specific language called Solidity and performing compilation and optimization of Solidity code. The correctness of Solidity compiler is critical in fostering transparency, efficiency, and trust in industries reliant on smart contracts. However, like other software systems, Solidity compiler is prone to bugs, which may produce incorrect bytecodes on blockchain platforms, resulting in severe security concerns. As a domain-specific compiler for smart contracts, Solidity compiler differs from other compilers in many perspectives, posing unique challenges to detect its bugs. To understand the bugs in Solidity compiler and benefit future research, in this paper, we present the first systematic study on 533 Solidity compiler bugs. We carefully examined their characteristics (including symptoms, root causes, and distribution), and their triggering test cases. Our study leads to seven bug-revealing takeaways for Solidity compiler. Moreover, to study the limitations of Solidity compiler fuzzers and bring our findings into practical scenarios, we evaluate three Solidity compiler fuzzers on our constructed benchmark. The results show that these fuzzers are inefficient in detecting Solidity compiler bugs. The inefficiency arises from their failure to consider the interesting bug-inducing features, bug-related compilation flags, and test oracles

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

↑