Not your Type! Detecting Storage Collision Vulnerabilities in Ethereum Smart Contracts
Nicola Ruaro, Fabio Gritti, Robert McLaughlin, Ilya Grishchenko, Christopher Kruegel, Giovanni Vigna
摘要
—In recent years, the Ethereum blockchain has seen significant growth and adoption. One of the key factors of its success is the possibility to run immutable programs known as smart contracts . Smart contracts allow for the automatic manipulation of digital assets and play a central role in the new decentralized finance (DeFi) ecosystem. With the growth of DeFi, the interactions between smart contracts have become increasingly complex, enabling advanced financial protocols and applications. However, bugs in smart contract interactions are also a common cause of critical vulnerabilities that result in considerable financial losses. In this paper, we study and detect a type of cross-contract vulnerability known as a storage collision . A smart contract uses storage to persistently store its data on the blockchain. Typically, each contract has its own separate storage. However, it is also possible that two smart contracts share their storage (using a delegate call). Unfortunately, when these two contracts have different understandings of the types/semantics of their shared storage, a storage collision vulnerability can occur. This may lead to unexpected behavior such as denial of service (frozen funds), privilege escalation, and theft of financial assets. To detect and investigate the impact of storage collision vulnerabilities at scale, we propose C RUSH , a novel analysis system that discovers these flaws and synthesizes proof-of-concept exploits. We leverage C RUSH to perform a large-scale analysis of 14,237,696 smart contracts deployed on the Ethereum blockchain since its genesis. C RUSH identifies 14,891 potentially vulnerable contracts and automatically synthesizes an end-to-end exploit for 956 of them. Our system uncovers more than $6 million of novel, previously unreported potential financial damage caused by storage collision vulnerabilities.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- The Incredible Shrinking Context... in a Decompiler Near You 引用了 An Empirical Study of Proxy Contracts at the Ethereum Ecosystem Scale
- The Incredible Shrinking Context... in a Decompiler Near You 引用了 Precise Static Identification of Ethereum Storage Variables
- Precise Static Identification of Ethereum Storage Variables 引用了 The Incredible Shrinking Context... in a Decompiler Near You
- The Incredible Shrinking Context... in a Decompiler Near You 引用了 Ethainter: a smart contract security analyzer for composite vulnerabilities
- An Empirical Study of Proxy Contracts at the Ethereum Ecosystem Scale 引用了 teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- An Empirical Study of Proxy Contracts at the Ethereum Ecosystem Scale 引用了 SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds
- Precise Static Identification of Ethereum Storage Variables 引用了 An Empirical Study of Proxy Contracts at the Ethereum Ecosystem Scale
- Precise Static Identification of Ethereum Storage Variables 引用了 Ethainter: a smart contract security analyzer for composite vulnerabilities
- Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source Contracts 引用了 teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source Contracts 引用了 The Incredible Shrinking Context... in a Decompiler Near You
- Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source Contracts 引用了 Ethainter: a smart contract security analyzer for composite vulnerabilities
- Ethainter: a smart contract security analyzer for composite vulnerabilities 引用了 teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols 引用了 teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols 引用了 Ethainter: a smart contract security analyzer for composite vulnerabilities
- HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols 引用了 VerX: Safety Verification of Smart Contracts
- HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols 引用了 SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in Seconds 引用了 teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts 引用了 teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts 引用了 Ethainter: a smart contract security analyzer for composite vulnerabilities
引用它的顶会 Paper9
- An Empirical Study of Proxy Contracts at the Ethereum Ecosystem ScaleMengya Zhang, Preksha Shukla, Wuqi Zhang, Zhuo Zhang 等ICSE 2025 · 5 次引用
- Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source ContractsSen Yang, Kaihua Qin, Aviv Yaish, Fan ZhangCCS 2026 · 3 次引用
- Precise Static Identification of Ethereum Storage VariablesSifis Lagouvardos, Yannis Bollanos, Michael Debono, Neville Grech 等ICSE 2026 · 2 次引用
- HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi ProtocolsDongyu Meng, Fabio Gritti, Robert McLaughlin, Nicola Ruaro 等NDSS 2026 · 2 次引用
- The Incredible Shrinking Context... in a Decompiler Near YouSifis Lagouvardos, Yannis Bollanos, Neville Grech, Yannis SmaragdakisISSTA 2025 · 1 次引用
它引用的 Paper14
- teEther: Gnawing at Ethereum to Automatically Exploit Smart ContractsJohannes Krupp, Christian RossowUSENIX Security 2018 · 345 次引用
- VerX: Safety Verification of Smart ContractsAnton Permenev, Dimitar Dimitrov, Petar Tsankov, Dana Drachsler-Cohen 等S&P 2020 · 251 次引用
- Ethainter: a smart contract security analyzer for composite vulnerabilitiesLexi Brent, Neville Grech, Sifis Lagouvardos, Bernhard Scholz 等PLDI 2020 · 163 次引用
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in SecondsPriyanka Bose, Dipanjan Das, Yanju Chen, Yu Feng 等S&P 2022 · 142 次引用
- EVMPatch: Timely and Automated Patching of Ethereum Smart ContractsMichael Rodler, Wenting Li, Ghassan O. Karame, Lucas DaviUSENIX Security 2021 · 103 次引用
相关 Paper
- Confusum Contractum: Confused Deputy Vulnerabilities in Ethereum Smart ContractsFabio Gritti, Nicola Ruaro, Robert McLaughlin, Priyanka Bose 等USENIX Security 2023
- CollisionRepair: First-Aid and Automated Patching for Storage Collision Vulnerabilities in Smart ContractsYu Pan, Wanjing Han, Yue Duan, Mu ZhangUSENIX Security 2025
- Detecting Smart Contract State-Inconsistency Bugs via Flow Divergence and Multiplex Symbolic ExecutionYinxi Liu, Wei Meng, Yinqian ZhangFSE 2025 · 1 次引用
- On Identifying Sound Conditions for Frontrunning ResistanceSebastian Holler, Anna Piscitelli, Jannik Albrecht, Stephan Dübler 等CCS 2026
- Uncover the Premeditated Attacks: Detecting Exploitable Reentrancy Vulnerabilities by Identifying Attacker ContractsShuo Yang, Jiachi Chen, Mingyuan Huang, Zibin Zheng 等ICSE 2024 · 24 次引用
