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

Proxion:发现隐藏的代理智能合约以寻找以太坊中的碰撞漏洞

Proxion: Uncovering Hidden Proxy Smart Contracts for Finding Collision Vulnerabilities in Ethereum

Cheng-Kang Chen, Wen-Yi Chu, Muoi Tran, Laurent Vanbever, Hsu-Chun Hsiao

AI总结:

Proxion是一种自动化跨合约分析器,通过分析缺乏源代码和历史交易的隐藏智能合约,识别以太坊中所有代理合约及其碰撞漏洞,在覆盖范围和检测能力上显著优于现有工具。

摘要:

代理设计模式允许以太坊智能合约同时具备不可变性和可升级性,其中原始合约被拆分为包含数据存储的代理合约和包含实现逻辑的逻辑合约。这种架构已知存在安全问题,即代理合约与逻辑合约之间的函数碰撞和存储碰撞,并且在现实事件中被利用来窃取用户价值数百万美元的数字资产。针对这一担忧,之前的一些工作试图识别以太坊中的代理合约并检测其碰撞。然而,它们都因覆盖范围有限而存在不足,通常将分析限制在仅有可用源代码或历史交易的合约上。为了弥补这一差距,我们提出了Proxion,这是一种自动化的跨合约分析器,用于识别以太坊中所有的代理智能合约及其碰撞。Proxion的独特之处在于它能够分析缺乏源代码和历史交易的隐藏智能合约。配备了多种提高效率和准确性的技术,Proxion优于最先进的工具,特别是多识别出数百万个代理合约和数千个未报告的碰撞。我们应用Proxion分析了2015年至2023年超过3600万个活跃合约,发现其中54.2%是代理合约,约150万个合约表现出至少一个碰撞问题。

英文摘要:

The proxy design pattern allows Ethereum smart contracts to be simultaneously immutable and upgradeable, in which an original contract is split into a proxy contract containing the data storage and a logic contract containing the implementation logic. This architecture is known to have security issues, namely function collisions and storage collisions between the proxy and logic contracts, and has been exploited in real-world incidents to steal users' millions of dollars worth of digital assets. In response to this concern, several previous works have sought to identify proxy contracts in Ethereum and detect their collisions. However, they all fell short due to their limited coverage, often restricting analysis to only contracts with available source code or past transactions. To bridge this gap, we present Proxion, an automated cross-contract analyzer that identifies all proxy smart contracts and their collisions in Ethereum. What sets Proxion apart is its ability to analyze hidden smart contracts that lack both source code and past transactions. Equipped with various techniques to enhance efficiency and accuracy, Proxion outperforms the state-of-the-art tools, notably identifying millions more proxy contracts and thousands of unreported collisions. We apply Proxion to analyze over 36 million alive contracts from 2015 to 2023, revealing that 54.2% of them are proxy contracts, and about 1.5 million contracts exhibit at least one collision issue.

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

↑