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

智能合约的漏洞与缓解方案:一项综合调查

Vulnerabilities of smart contracts and mitigation schemes: A Comprehensive Survey

Wejdene Haouari, Abdelhakim Senhaji Hafid, Marios Fokaefs

AI总结:

本文通过文献综述与实验测试相结合的方式,系统梳理智能合约常见漏洞及缓解方案,特别关注NFT碎片化带来的新风险,并对社区主流工具进行实测评估,最终给出安全智能合约开发综合指南。

摘要:

以太坊智能合约功能强大、不可篡改,并且能够持有大量代币。然而,智能合约持续吸引攻击者利用智能合约缺陷和以太坊的意外行为获利。因此,已有方法和工具被提出,以帮助实现安全的智能合约并评估已部署智能合约的安全性。大多数相关调查聚焦于工具本身,而不讨论其背后的逻辑。此外,它们基于论文来评估工具,而不是实际测试工具并收集社区反馈。其他调查则缺乏针对智能合约特定功能如何使用工具的指南。本文呈现了一项文献综述与实验报告相结合的研究,旨在帮助开发者开发安全的智能合约,并特别关注NFT碎片化所带来的挑战和漏洞,即解决将NFT所有权分割为可交易单元(称为碎片)所带来的独特风险。本文提供了一份常见漏洞列表及相应的缓解方案。此外,本文通过在示例智能合约上执行和测试社区最广泛使用的工具来对其进行评估。最后,本文提出了一份关于实现安全智能合约的综合指南。

英文摘要:

Ethereum smart contracts are highly powerful, immutable, and able to retain massive amounts of tokens. However, smart contracts keep attracting attackers to benefit from smart contract flaws and Ethereum unexpected behavior. Thus, methodologies and tools have been proposed to help implement secure smart contracts and to evaluate the security of smart contracts already deployed. Most related surveys focus on tools without discussing the logic behind them. in addition, they assess the tools based on papers rather than testing the tools and collecting community feedback. Other surveys lack guidelines on how to use tools specific to smart contract functionalities. This paper presents a literature review combined with an experimental report that aims to assist developers in developing secure smarts, with a novel emphasis on the challenges and vulnerabilities introduced by NFT fractionalization by addressing the unique risks of dividing NFT ownership into tradeable units called fractions. It provides a list of frequent vulnerabilities and corresponding mitigation solutions. In addition, it evaluates the community most widely used tools by executing and testing them on sample smart contracts. Finally, a comprehensive guide on implementing secure smart contracts is presented.

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

↑