Lune

USENIX Security2024Top-tier venue

All Your Tokens are Belong to Us: Demystifying Address Verification Vulnerabilities in Solidity Smart Contracts

Tianle Sun, Ningyu He, Jiang Xiao, Yinliang Yue, Xiapu Luo, Haoyu Wang

Abstract

In Ethereum, the practice of verifying the validity of the passed addresses is a common practice, which is a crucial step to ensure the secure execution of smart contracts. Vulnerabilities in the process of address verification can lead to great security issues, and anecdotal evidence has been reported by our community. However, this type of vulnerability has not been well studied. To fill the void, in this paper, we aim to characterize and detect this kind of emerging vulnerability. We design and implement AVVERIFIER, a lightweight taint analyzer based on static EVM opcode simulation. Its three-phase detector can progressively rule out false positives and false negatives based on the intrinsic characteristics. Upon a well-established and unbiased benchmark, AVVERIFIER can improve efficiency 2 to 5 times than the SOTA while maintaining a 94.3% precision and 100% recall. After a large-scale evaluation of over 5 million Ethereum smart contracts, we have identified 812 vulnerable smart contracts that were undisclosed by our community before this work, and 348 open source smart contracts were further verified, whose largest total value locked is over $11.2 billion. We further deploy AVVERIFIER as a real-time detector on Ethereum and Binance Smart Chain, and the results suggest that AVVERIFIER can raise timely warnings once contracts are deployed.

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.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Following Devils' Footprint: Towards Real-time Detection of Price Manipulation Attacks cites Ethainter: a smart contract security analyzer for composite vulnerabilities
  • Following Devils' Footprint: Towards Real-time Detection of Price Manipulation Attacks cites EOSAFE: Security Analysis of EOSIO Smart Contracts
  • OpDiffer: LLM-Assisted Opcode-Level Differential Testing of Ethereum Virtual Machine cites EOSAFE: Security Analysis of EOSIO Smart Contracts
  • Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • Finding permission bugs in smart contracts with role mining cites Ethainter: a smart contract security analyzer for composite vulnerabilities
  • Ethainter: a smart contract security analyzer for composite vulnerabilities cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • Ethainter: a smart contract security analyzer for composite vulnerabilities cites Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attacks
  • HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi Protocols cites Ethainter: a smart contract security analyzer for composite vulnerabilities
  • Approve Once, Regret Forever: On the Exploitation of Ethereum's Approve-TransferFrom Ecosystem cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • Approve Once, Regret Forever: On the Exploitation of Ethereum's Approve-TransferFrom Ecosystem cites Ethainter: a smart contract security analyzer for composite vulnerabilities
  • EOSAFE: Security Analysis of EOSIO Smart Contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. OpDiffer: LLM-Assisted Opcode-Level Differential Testing of Ethereum Virtual MachineJie Ma, Ningyu He, Jinwen Xi, Mingzhe Xing et al.ISSTA 2025 · 2 citations
  2. HOUSTON: Real-Time Anomaly Detection of Attacks against Ethereum DeFi ProtocolsDongyu Meng, Fabio Gritti, Robert McLaughlin, Nicola Ruaro et al.NDSS 2026 · 2 citations
  3. Following Devils' Footprint: Towards Real-time Detection of Price Manipulation AttacksBosi Zhang, Ningyu He, Xiaohui Hu, Kai Ma et al.USENIX Security 2025
  4. When HTTP 402 Meets the Blockchain: Risks on Emerging x402 PaymentsQinying Wang, Yong Yang, Yuan Chen, Shouling Ji et al.USENIX Security 2026
  5. Approve Once, Regret Forever: On the Exploitation of Ethereum's Approve-TransferFrom EcosystemNicola Ruaro, Fabio Gritti, Dongyu Meng, Robert McLaughlin et al.USENIX Security 2025

Builds on9

  1. teEther: Gnawing at Ethereum to Automatically Exploit Smart ContractsJohannes Krupp, Christian RossowUSENIX Security 2018 · 345 citations
  2. Sereum: Protecting Existing Smart Contracts Against Re-Entrancy AttacksMichael Rodler, Wenting Li, Ghassan O. Karame, Lucas DaviNDSS 2019 · 298 citations
  3. Ethainter: a smart contract security analyzer for composite vulnerabilitiesLexi Brent, Neville Grech, Sifis Lagouvardos, Bernhard Scholz et al.PLDI 2020 · 163 citations
  4. EOSAFE: Security Analysis of EOSIO Smart ContractsNingyu He, Ruiyi Zhang, Haoyu Wang, Lei Wu et al.USENIX Security 2021 · 69 citations
  5. Finding permission bugs in smart contracts with role miningYe Liu, Yi Li, Shang-Wei Lin, Cyrille ArthoISSTA 2022 · 54 citations

Related papers

  1. Abusing the Ethereum Smart Contract Verification Services for Fun and ProfitPengxiang Ma, Ningyu He, Yuhua Huang, Haoyu Wang et al.NDSS 2024
  2. eTainter: detecting gas-related vulnerabilities in smart contractsAsem Ghaleb, Julia Rubin, Karthik PattabiramanISSTA 2022 · 57 citations
  3. VERISMART: A Highly Precise Safety Verifier for Ethereum Smart ContractsSunbeom So, Myungho Lee, Jisu Park, Heejo Lee et al.S&P 2020 · 133 citations
  4. Automated Inference on Financial Security of Ethereum Smart ContractsWansen Wang, Wenchao Huang, Zhaoyi Meng, Yan Xiong et al.USENIX Security 2023
  5. SmartFix: Fixing Vulnerable Smart Contracts by Accelerating Generate-and-Verify Repair using Statistical ModelsSunbeom So, Hakjoo OhFSE 2023 · 20 citations
Dusk over the sea between two cliffs drawn in fine vertical lines