Solidity智能合约项目真实漏洞修复的实证研究
An Empirical Study on Real Bug Fixes from Solidity Smart Contract Projects
AI总结:
本文针对现有研究对Solidity智能合约真实漏洞修复情况了解不足的问题,对46个真实项目的历史修复案例开展实证研究,探究四类核心问题并提炼发现,从三方面提出改进智能合约漏洞修复方法的可行建议。
摘要:
智能合约是存储在区块链中的代码片段,当特定预设条件满足时可被触发执行任意交易。由于智能合约常被用于区块链中的商业交易,其安全性显得尤为重要。过去几年,学术界和工业界对检测与修复Solidity编写的智能合约中的漏洞展现了大量研究兴趣,但人们对Solidity智能合约项目中的真实漏洞修复情况知之甚少。为理解真实项目中的漏洞修复模式、丰富相关领域知识,本文对46个真实世界Solidity智能合约项目的历史漏洞修复案例开展了实证研究。我们从多维度展开讨论,主要探究四个问题:文件类型与数量、修复复杂度、漏洞分布、修复补丁。在探究这四个问题的过程中,我们提炼出四项研究发现。最后,基于这些发现,我们从自动修复技术、分析工具、Solidity开发者三个方面,提出了可落地的改进建议,以完善当前Solidity智能合约的漏洞修复方法。
英文摘要:
Smart contracts are pieces of code that reside inside the blockchains and can be triggered to execute any transaction when specifically predefined conditions are satisfied. Being commonly used for commercial transactions in blockchain makes the security of smart contracts particularly important. Over the last few years, we have seen a great deal of academic and practical interest in detecting and fixing the bugs in smart contracts written by Solidity. But little is known about the real bug fixes in Solidity smart contract projects. To understand the bug fixes and enrich the knowledge of bug fixes in real-world projects, we conduct an empirical study on historical bug fixes from 46 real-world Solidity smart contract projects in this paper. We provide a multi-faceted discussion and mainly explore the following four questions: File Type and Amount, Fix Complexity, Bug distribution, and Fix Patches. We distill four findings during the process to explore these four questions. Finally, based on these findings, we provide actionable implications to improve the current approaches to fixing bugs in Solidity smart contracts from three aspects: Automatic repair techniques, Analysis tools, and Solidity developers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。