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

修复智能合约漏洞:文献与开发者实践的对比分析

Fixing Smart Contract Vulnerabilities: A Comparative Analysis of Literature and Developer's Practices

Francesco Salzano, Simone Scalabrino, Rocco Oliveto, Remo Pareschi

AI总结:

本研究针对智能合约漏洞修复中开发者对文献指南遵循度不明的问题,通过分析Solidity GitHub仓库中DASP TOP 10漏洞修复提交,对比文献方案与开发者实践,挖掘新型修复技术并评估其有效性。

摘要:

智能合约是在区块链网络中通过不可篡改的交易执行操作、运行逻辑的程序。区块链网络会验证此类交易,并将其存储在完整性得到保障的顺序区块中。智能合约涉及价值质押,若一笔破坏性交易被验证,它可能永远无法被撤销,进而导致不可挽回的损失。为防范这一问题,多个领域已对安全层面展开研究,相关研究提供了安全缺陷目录、安全代码建议以及漏洞修复的可行方案。在本研究中,我们将文献中提出的漏洞修复方法作为参考指南。然而,目前尚不清楚开发者对这些指南的遵循程度,也不清楚是否存在其他可行的通用解决方案以及这些方案具体是什么。本研究的目标是填补与开发者对现有指南的遵循情况相关的认知空白,并提出针对安全漏洞的新型可行解决方案。为实现这一目标,我们将从Solidity的GitHub代码仓库中获取修复DASP TOP 10所列漏洞的提交记录,并对开发者采用的修复方法开展人工分析。我们的分析旨在确定开发者对基于文献的修复策略的遵循程度。此外,我们还将识别并讨论目前文献中未记载的新兴修复技术。通过定性分析,我们将评估这些新型修复方案的适用性,并区分有效方法与潜在错误。

英文摘要:

Smart Contracts are programs running logic in the Blockchain network by executing operations through immutable transactions. The Blockchain network validates such transactions, storing them into sequential blocks of which integrity is ensured. Smart Contracts deal with value stakes, if a damaging transaction is validated, it may never be reverted, leading to unrecoverable losses. To prevent this, security aspects have been explored in several fields, with research providing catalogs of security defects, secure code recommendations, and possible solutions to fix vulnerabilities. In our study, we refer to vulnerability fixing in the ways found in the literature as guidelines. However, it is not clear to what extent developers adhere to these guidelines, nor whether there are other viable common solutions and what they are. The goal of our research is to fill knowledge gaps related to developers' observance of existing guidelines and to propose new and viable solutions to security vulnerabilities. To reach our goal, we will obtain from Solidity GitHub repositories the commits that fix vulnerabilities included in the DASP TOP 10 and we will conduct a manual analysis of fixing approaches employed by developers. Our analysis aims to determine the extent to which literature-based fixing strategies are followed. Additionally, we will identify and discuss emerging fixing techniques not currently documented in the literature. Through qualitative analysis, we will evaluate the suitability of these new fixing solutions and discriminate between valid approaches and potential mistakes.

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

↑