arXiv:2504.21480cs.CRcs.AI2025-04被引 14

分析以太坊智能合约两大漏洞机制及防御方案

A Comprehensive Study of Exploitable Patterns in Smart Contracts: From Vulnerability to Defense

  • 聚焦重入与整数溢出漏洞的底层原理
  • 复现攻击场景并验证防御措施有效性
  • 适合区块链安全开发者与审计人员参考

随着区块链技术的快速发展,智能合约实现了日益复杂的功能。然而,确保智能合约的安全性在开发、编译和执行阶段仍面临持续挑战。合约漏洞不仅威胁单个应用安全,更对整个区块链生态系统构成重大风险,自2016年以来攻击事件频发,造成巨大经济损失。本文对以太坊智能合约(Solidity编写,EVM执行)中的关键安全风险进行综合分析,重点研究重入与整数溢出两类常见且严重的漏洞类型,通过剖析其底层机制、复现攻击场景,并评估有效防御策略。

原文摘要 · Abstract (English)

With the rapid advancement of blockchain technology, smart contracts have enabled the implementation of increasingly complex functionalities. However, ensuring the security of smart contracts remains a persistent challenge across the stages of development, compilation, and execution. Vulnerabilities within smart contracts not only undermine the security of individual applications but also pose significant risks to the broader blockchain ecosystem, as demonstrated by the growing frequency of attacks since 2016, resulting in substantial financial losses. This paper provides a comprehensive analysis of key security risks in Ethereum smart contracts, specifically those written in Solidity and executed on the Ethereum Virtual Machine (EVM). We focus on two prevalent and critical vulnerability types (reentrancy and integer overflow) by examining their underlying mechanisms, replicating attack scenarios, and assessing effective countermeasures.

智能合约安全漏洞以太坊漏洞分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。