Lune

USENIX Security2025Top-tier venue

Approve Once, Regret Forever: On the Exploitation of Ethereum's Approve-TransferFrom Ecosystem

Nicola Ruaro, Fabio Gritti, Dongyu Meng, Robert McLaughlin, Ilya Grishchenko, Christopher Kruegel, Giovanni Vigna

Abstract

Smart contracts are immutable programs hosted on the blockchain that power decentralized applications. With the growth of decentralized finance (DeFi), many services interact with contracts that must be trusted to manage digital assets. To this end, several Ethereum standards (e.g., ERC20, ERC721) introduced an approval mechanism that allows decentralized applications to trade digital assets (or "tokens") on behalf of others. After receiving an approval, the (approved) application can invoke the token's transferFrom function to trade the approved tokens. Unfortunately, approved applications often contain vulnerabilities. If an attacker maliciously controls the parameters of a transferFrom call, they can steal not only the application's assets but also the assets of any user who previously approved the application. We refer to this widespread issue as Approved Controllable TransferFrom (ACT), which has already led to losses exceeding 65 million USD. We present OSPREY, an end-to-end system that detects ACT vulnerabilities and automatically generates proof-of-concept attacks. Our evaluation across the entire Ethereum ecosystem identified 32,582 potentially vulnerable contracts, with 410 confirmed exploitable at the time of writing. Our findings reveal previously unknown attack vectors threatening digital assets worth over 3.4 million USD.

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.

2 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

  • Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source Contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source Contracts cites Ethainter: a smart contract security analyzer for composite vulnerabilities
  • Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source Contracts cites Securify: Practical Security Analysis of Smart Contracts
  • 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 Securify: Practical Security Analysis of Smart Contracts
  • Demystifying Exploitable Bugs in Smart Contracts cites teEther: Gnawing at Ethereum to Automatically Exploit Smart Contracts
  • Demystifying Exploitable Bugs in Smart Contracts cites Securify: Practical Security Analysis of Smart Contracts
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source ContractsSen Yang, Kaihua Qin, Aviv Yaish, Fan ZhangCCS 2026 · 3 citations
  2. Designing Wallet-Based User Intervention for Approval Phishing MitigationMaggie Yongqi Guan, Yuqi Xu, Yunlong Mao, Wei Tong et al.USENIX Security 2026

Builds on13

  1. Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
  2. teEther: Gnawing at Ethereum to Automatically Exploit Smart ContractsJohannes Krupp, Christian RossowUSENIX Security 2018 · 345 citations
  3. VerX: Safety Verification of Smart ContractsAnton Permenev, Dimitar Dimitrov, Petar Tsankov, Dana Drachsler-Cohen et al.S&P 2020 · 251 citations
  4. Ethainter: a smart contract security analyzer for composite vulnerabilitiesLexi Brent, Neville Grech, Sifis Lagouvardos, Bernhard Scholz et al.PLDI 2020 · 163 citations
  5. Demystifying Exploitable Bugs in Smart ContractsZhuo Zhang, Brian Zhang, Wen Xu, Zhiqiang LinICSE 2023 · 80 citations

Related papers

  1. Confusum Contractum: Confused Deputy Vulnerabilities in Ethereum Smart ContractsFabio Gritti, Nicola Ruaro, Robert McLaughlin, Priyanka Bose et al.USENIX Security 2023
  2. Automated and Accurate Token Transfer Identification and Its Applications in Cryptocurrency SecurityShuwei Song, Ting Chen, Ao Qiao, Xiapu Luo et al.FSE 2025
  3. ACTaint: Agent-Based Taint Analysis for Access Control Vulnerabilities in Smart ContractsHuarui Lin, Zhipeng Gao, Jiachi Chen, Xiang Chen et al.ASE 2025 · 1 citation
  4. Smarter Contracts: Detecting Vulnerabilities in Smart Contracts with Deep Transfer LearningChristoph Sendner, Huili Chen, Hossein Fereidooni, Lukas Petzi et al.NDSS 2023
  5. PrettySmart: Detecting Permission Re-delegation Vulnerability for Token Behaviors in Smart ContractsZhijie Zhong, Zibin Zheng, Hong-Ning Dai, Qing Xue et al.ICSE 2024 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines