Demystifying Exploitable Bugs in Smart Contracts
Zhuo Zhang, Brian Zhang, Wen Xu, Zhiqiang Lin
Abstract
Exploitable bugs in smart contracts have caused significant monetary loss. Despite the substantial advances in smart contract bug finding, exploitable bugs and real-world attacks are still trending. In this paper we systematically investigate 516 unique real-world smart contract vulnerabilities in years 2021–2022, and study how many can be exploited by malicious users and cannot be detected by existing analysis tools. We further categorize the bugs that cannot be detected by existing tools into seven types and study their root causes, distributions, difficulties to audit, consequences, and repair strategies. For each type, we abstract them to a bug model (if possible), facilitating finding similar bugs in other contracts and future automation. We leverage the findings in auditing real world smart contracts, and so far we have been rewarded with 22.52 millions monetary loss if exploited.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
29 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts cites Making Smart Contracts Smarter
- Combining Fine-Tuning and LLM-Based Agents for Intuitive Smart Contract Auditing with Justifications cites SmartInv: Multimodal Learning for Smart Contract Invariant Inference
- Combining Fine-Tuning and LLM-Based Agents for Intuitive Smart Contract Auditing with Justifications cites ZEUS: Analyzing Safety of Smart Contracts
- Combining Fine-Tuning and LLM-Based Agents for Intuitive Smart Contract Auditing with Justifications cites GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysis
- Combining Fine-Tuning and LLM-Based Agents for Intuitive Smart Contract Auditing with Justifications cites Securify: Practical Security Analysis of Smart Contracts
- SmartInv: Multimodal Learning for Smart Contract Invariant Inference cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- SmartInv: Multimodal Learning for Smart Contract Invariant Inference cites ZEUS: Analyzing Safety of Smart Contracts
- SmartInv: Multimodal Learning for Smart Contract Invariant Inference cites Making Smart Contracts Smarter
- ZEUS: Analyzing Safety of Smart Contracts cites Making Smart Contracts Smarter
- Nyx: Detecting Exploitable Front-Running Vulnerabilities in Smart Contracts cites Making Smart Contracts Smarter
- Nyx: Detecting Exploitable Front-Running Vulnerabilities in Smart Contracts cites Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts
- Nyx: Detecting Exploitable Front-Running Vulnerabilities in Smart Contracts cites Securify: Practical Security Analysis of Smart Contracts
- Static Application Security Testing (SAST) Tools for Smart Contracts: How Far Are We? cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- Static Application Security Testing (SAST) Tools for Smart Contracts: How Far Are We? cites ZEUS: Analyzing Safety of Smart Contracts
- Static Application Security Testing (SAST) Tools for Smart Contracts: How Far Are We? cites Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts
- Static Application Security Testing (SAST) Tools for Smart Contracts: How Far Are We? cites Securify: Practical Security Analysis of Smart Contracts
- GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysis cites ZEUS: Analyzing Safety of Smart Contracts
- GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysis cites Securify: Practical Security Analysis of Smart Contracts
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts cites ZEUS: Analyzing Safety of Smart Contracts
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts cites Making Smart Contracts Smarter
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts cites Securify: Practical Security Analysis of Smart Contracts
- Securify: Practical Security Analysis of Smart Contracts cites ZEUS: Analyzing Safety of Smart Contracts
- Securify: Practical Security Analysis of Smart Contracts cites Making Smart Contracts Smarter
Cited by top-tier papers29
- GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program AnalysisYuqiang Sun, Daoyuan Wu, Yue Xue, Han Liu et al.ICSE 2024 · 131 citations
- SmartInv: Multimodal Learning for Smart Contract Invariant InferenceSally Junsong Wang, Kexin Pei, Junfeng YangS&P 2024 · 38 citations
- Combining Fine-Tuning and LLM-Based Agents for Intuitive Smart Contract Auditing with JustificationsWei Ma, Daoyuan Wu, Yuqiang Sun, Tianwen Wang et al.ICSE 2025 · 28 citations
- Static Application Security Testing (SAST) Tools for Smart Contracts: How Far Are We?Kaixuan Li, Yue Xue, Sen Chen, Han Liu et al.FSE 2024 · 26 citations
- Nyx: Detecting Exploitable Front-Running Vulnerabilities in Smart ContractsWuqi Zhang, Zhuo Zhang, Qingkai Shi, Lu Liu et al.S&P 2024 · 23 citations
Builds on16
- Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
- Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
- ZEUS: Analyzing Safety of Smart ContractsSukrit Kalra, Seep Goel, Mohan Dhawan, Subodh SharmaNDSS 2018 · 595 citations
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contractsThomas Durieux, João F. Ferreira, Rui Abreu, Pedro CruzICSE 2020 · 373 citations
- teEther: Gnawing at Ethereum to Automatically Exploit Smart ContractsJohannes Krupp, Christian RossowUSENIX Security 2018 · 345 citations
Related papers
- Towards Finding Accounting Errors in Smart ContractsBrian ZhangICSE 2024 · 8 citations
- An Ever-evolving Game: Evaluation of Real-world Attacks and Defenses in Ethereum EcosystemShunfan Zhou, Zhemin Yang, Jie Xiang, Yinzhi Cao et al.USENIX Security 2020
- Large-Scale Study of Vulnerability Scanners for Ethereum Smart ContractsChristoph Sendner, Lukas Petzi, Jasper Stang, Alexandra DmitrienkoS&P 2024 · 19 citations
- Smart Contract Vulnerabilities: Vulnerable Does Not Imply ExploitedDaniel Perez, Benjamin LivshitsUSENIX Security 2021 · 150 citations
- Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?Stefanos Chaliasos, Marcos Antonios Charalambous, Liyi Zhou, Rafaila Galanopoulou et al.ICSE 2024 · 49 citations
