Lune

ISSTA2023Top-tier venue

Definition and Detection of Defects in NFT Smart Contracts

Shuo Yang, Jiachi Chen, Zibin Zheng

Abstract

In recent years, security incidents stemming from centralization defects in smart contracts have led to substantial financial losses. A centralization defect refers to any error, flaw, or fault in a smart contract's design or development stage that introduces a single point of failure. Such defects allow a specific account or user to disrupt the normal operations of smart contracts, potentially causing malfunctions or even complete project shutdowns. Despite the significance of this issue, most current smart contract analyses overlook centralization defects, focusing primarily on other types of defects. To address this gap, our paper introduces six types of centralization defects in smart contracts by manually analyzing 597 Stack Exchange posts and 117 audit reports. For each defect, we provide a detailed description and code examples to illustrate its characteristics and potential impacts. Additionally, we introduce a tool named CDRipper (Centralization Defects Ripper) designed to identify the defined centralization defects. Specifically, CDRipper constructs a permission dependency graph (PDG) and extracts the permission dependencies of functions from the source code of smart contracts. It then detects the sensitive operations in functions and identifies centralization defects based on predefined patterns. We conduct a large-scale experiment using CDRipper on 244,424 real-world smart contracts and evaluate the results based on a manually labeled dataset. Our findings reveal that 82,446 contracts contain at least one of the six centralization defects, with our tool achieving an overall precision of 93.7%.

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.

14 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

  • Enhancing the Open Network: Definition and Automated Detection of Smart Contract Defects cites Making Smart Contracts Smarter
  • Enhancing the Open Network: Definition and Automated Detection of Smart Contract Defects cites Securify: Practical Security Analysis of Smart Contracts
  • Finding permission bugs in smart contracts with role mining cites ZEUS: Analyzing Safety of Smart Contracts
  • Finding permission bugs in smart contracts with role mining cites Ethainter: a smart contract security analyzer for composite vulnerabilities
  • Finding permission bugs in smart contracts with role mining cites Making Smart Contracts Smarter
  • Identifying Smart Contract Security Issues in Code Snippets from Stack Overflow cites Making Smart Contracts Smarter
  • Identifying Smart Contract Security Issues in Code Snippets from Stack Overflow cites When Contracts Meets Crypto: Exploring Developers' Struggles with Ethereum Cryptographic APIs
  • Identifying Smart Contract Security Issues in Code Snippets from Stack Overflow cites Securify: Practical Security Analysis of Smart Contracts
  • ZEUS: Analyzing Safety of Smart Contracts cites Making Smart Contracts Smarter
  • Hyperion: Unveiling DApp Inconsistencies Using LLM and Dataflow-Guided Symbolic Execution cites ZEUS: Analyzing Safety of Smart Contracts
  • Hyperion: Unveiling DApp Inconsistencies Using LLM and Dataflow-Guided Symbolic Execution cites Making Smart Contracts Smarter
  • Hyperion: Unveiling DApp Inconsistencies Using LLM and Dataflow-Guided Symbolic Execution cites Securify: Practical Security Analysis of Smart Contracts
  • Ethainter: a smart contract security analyzer for composite vulnerabilities cites ZEUS: Analyzing Safety of Smart Contracts
  • Ethainter: a smart contract security analyzer for composite vulnerabilities cites Making Smart Contracts Smarter
  • Ethainter: a smart contract security analyzer for composite vulnerabilities cites Securify: Practical Security Analysis of Smart Contracts
  • Uncover the Premeditated Attacks: Detecting Exploitable Reentrancy Vulnerabilities by Identifying Attacker Contracts cites ZEUS: Analyzing Safety of Smart Contracts
  • Uncover the Premeditated Attacks: Detecting Exploitable Reentrancy Vulnerabilities by Identifying Attacker Contracts cites Making Smart Contracts Smarter
  • Uncover the Premeditated Attacks: Detecting Exploitable Reentrancy Vulnerabilities by Identifying Attacker 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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers14

  1. Uncover the Premeditated Attacks: Detecting Exploitable Reentrancy Vulnerabilities by Identifying Attacker ContractsShuo Yang, Jiachi Chen, Mingyuan Huang, Zibin Zheng et al.ICSE 2024 · 24 citations
  2. Identifying Smart Contract Security Issues in Code Snippets from Stack OverflowJiachi Chen, Chong Chen, Jiang Hu, John C. Grundy et al.ISSTA 2024 · 9 citations
  3. When Contracts Meets Crypto: Exploring Developers' Struggles with Ethereum Cryptographic APIsJiashuo Zhang, Jiachi Chen, Zhiyuan Wan, Ting Chen et al.ICSE 2024 · 9 citations
  4. Hyperion: Unveiling DApp Inconsistencies Using LLM and Dataflow-Guided Symbolic ExecutionShuo Yang, Xingwei Lin, Jiachi Chen, Qingyuan Zhong et al.ICSE 2025 · 6 citations
  5. Enhancing the Open Network: Definition and Automated Detection of Smart Contract DefectsHao Song, Teng Li, Jiachi Chen, Ting Chen et al.ICSE 2025 · 5 citations

Builds on9

  1. Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
  2. Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
  3. ZEUS: Analyzing Safety of Smart ContractsSukrit Kalra, Seep Goel, Mohan Dhawan, Subodh SharmaNDSS 2018 · 595 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. Finding permission bugs in smart contracts with role miningYe Liu, Yi Li, Shang-Wei Lin, Cyrille ArthoISSTA 2022 · 54 citations

Related papers

  1. Definition and Detection of Centralization Defects in Smart ContractsZewei Lin, Jiachi Chen, Jiajing Wu, Weizhe Zhang et al.ICSE 2025 · 2 citations
  2. Demystifying and Detecting Cryptographic Defects in Ethereum Smart ContractsJiashuo Zhang, Yiming Shen, Jiachi Chen, Jianzhong Su et al.ICSE 2025 · 2 citations
  3. SSR: Safeguarding Staking Rewards by Defining and Detecting Logical Defects in DeFi StakingZewei Lin, Jiachi Chen, Jingwen Zhang, Zexu Wang et al.ASE 2025 · 1 citation
  4. Towards Finding Accounting Errors in Smart ContractsBrian ZhangICSE 2024 · 8 citations
  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