arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.01290cs.CRcs.CE
收藏

刻画以太坊可升级智能合约及其安全影响

Characterizing Ethereum Upgradable Smart Contracts and Their Security Implications

Xiaofan Li, Jin Yang, Jiaqi Chen, Yuzhe Tang, Xing Gao

AI总结:

本文总结六种可升级智能合约模式,提出无需源码的USCDetector,通过字节码与交易信息构建升级链并检测风险,在以太坊6000余万合约中发现多个真实安全问题。

摘要:

可升级智能合约(USC)已被广泛采用,以支持修改已部署的智能合约。尽管USC为开发者带来了极大的灵活性,但使用不当可能引入新的安全问题,潜在地使攻击者能够劫持USC及其用户。本文开展了一项大规模测量研究,以刻画真实环境中的USC及其安全影响。我们总结了六种常用的USC模式,并开发了名为USCDetector的工具,用于在无需源代码的情况下识别USC。具体而言,USCDetector收集字节码和交易信息等各类信息,以构建USC的升级链,并披露可能存在漏洞的合约。我们使用经过验证的智能合约(即带有源代码的合约)作为基准真值评估USCDetector,结果表明USCDetector能够达到较高准确率,精确率为96.26%。随后,我们使用USCDetector在以太坊上开展大规模研究,共覆盖60,251,064个智能合约。USCDetecor构建了10,218条升级链,并披露了多个存在潜在安全问题的真实USC。

英文摘要:

Upgradeable smart contracts (USCs) have been widely adopted to enable modifying deployed smart contracts. While USCs bring great flexibility to developers, improper usage might introduce new security issues, potentially allowing attackers to hijack USCs and their users. In this paper, we conduct a large-scale measurement study to characterize USCs and their security implications in the wild. We summarize six commonly used USC patterns and develop a tool, USCDetector, to identify USCs without needing source code. Particularly, USCDetector collects various information such as bytecode and transaction information to construct upgrade chains for USCs and disclose potentially vulnerable ones. We evaluate USCDetector using verified smart contracts (i.e., with source code) as ground truth and show that USCDetector can achieve high accuracy with a precision of 96.26%. We then use USCDetector to conduct a large-scale study on Ethereum, covering a total of 60,251,064 smart contracts. USCDetecor constructs 10,218 upgrade chains and discloses multiple real-world USCs with potential security issues.

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

↑