[Paper Review] DEPOSafe: Demystifying the Fake Deposit Vulnerability in Ethereum Smart Contracts
This paper introduces DEPOSafe, an automated tool that detects and verifies the fake deposit vulnerability in Ethereum's ERC-20 smart contracts using symbolic execution and dynamic behavior modeling. The tool analyzed 176,000 contracts and identified over 7,000 vulnerable ones, revealing widespread risk—especially in centralized exchanges with weak verification—highlighting a critical security threat across the blockchain ecosystem.
Cryptocurrency has seen an explosive growth in recent years, thanks to the evolvement of blockchain technology and its economic ecosystem. Besides Bitcoin, thousands of cryptocurrencies have been distributed on blockchains, while hundreds of cryptocurrency exchanges are emerging to facilitate the trading of digital assets. At the same time, it also attracts the attentions of attackers. Fake deposit, as one of the most representative attacks (vulnerabilities) related to exchanges and tokens, has been frequently observed in the blockchain ecosystem, causing large financial losses. However, besides a few security reports, our community lacks of the understanding of this vulnerability, for example its scale and the impacts. In this paper, we take the first step to demystify the fake deposit vulnerability. Based on the essential patterns we have summarized, we implement DEPOSafe, an automated tool to detect and verify (exploit) the fake deposit vulnerability in ERC-20 smart contracts. DEPOSafe incorporates several key techniques including symbolic execution based static analysis and behavior modeling based dynamic verification. By applying DEPOSafe to 176,000 ERC-20 smart contracts, we have identified over 7,000 vulnerable contracts that may suffer from two types of attacks. Our findings demonstrate the urgency to identify and prevent the fake deposit vulnerability.
Motivation & Objective
- To systematically characterize the fake deposit vulnerability in Ethereum ERC-20 smart contracts, which has caused major financial losses in real-world attacks.
- To measure the scale and impact of this vulnerability across the Ethereum ecosystem, particularly in relation to centralized exchanges (CEXes).
- To develop an automated tool, DEPOSafe, capable of detecting and verifying fake deposit vulnerabilities with high precision.
- To raise awareness among developers, exchanges, and regulators about the prevalence and severity of this underappreciated vulnerability.
- To provide actionable mitigation strategies for smart contract developers and exchange operators to prevent exploitation.
Proposed method
- The method combines symbolic execution-based static analysis using Mythril to detect potential vulnerability patterns in ERC-20 contracts.
- A dynamic validator is built to emulate deposit interactions between tokens and exchanges, reducing false positives from static analysis.
- The tool identifies two attack types: Type-I (token-level flaw) and Type-II (flawed exchange verification), with distinct detection criteria.
- DEPOSafe evaluates 176,000 ERC-20 contracts deployed between July 2015 and March 2020, focusing on transfer and transferFrom function implementations.
- The framework validates detected vulnerabilities by simulating transaction flows and checking for inconsistent return behaviors or missing exceptions.
- The approach is designed to be scalable and practical for integration into smart contract auditing pipelines.
Experimental results
Research questions
- RQ1What are the essential implementation patterns that lead to fake deposit vulnerabilities in ERC-20 smart contracts?
- RQ2How widespread is the fake deposit vulnerability across the Ethereum ERC-20 ecosystem?
- RQ3What is the financial and operational impact of this vulnerability, especially when combined with weak exchange verification?
- RQ4Can an automated tool effectively detect and verify fake deposit vulnerabilities with high accuracy?
- RQ5What are the root causes of false positives in static detection, and how can dynamic validation improve reliability?
Key findings
- DEPOSafe identified 7,716 ERC-20 smart contracts vulnerable to Type-II fake deposit attacks, which require flawed exchange verification to exploit.
- Among these, 56 tokens had a combined market capitalization exceeding $1.1 billion, with over 695,000 holders and 4.6 million transactions, indicating massive exposure risk.
- The study revealed that 7,000+ contracts are vulnerable to Type-I attacks due to non-standard ERC-20 implementations, particularly flawed transfer and transferFrom functions.
- Many contracts return boolean values instead of throwing exceptions on failure, enabling attackers to bypass balance and allowance checks.
- The analysis showed that a significant number of exchanges may be vulnerable to fake deposits due to insufficient backend validation of deposit transactions.
- The findings underscore the urgent need for improved verification mechanisms in centralized exchanges and stricter adherence to ERC-20 standards by developers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.