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%.
Introduction
In the Decentralized Finance (DeFi) ecosystem, "decentralization" is often a core value proposition. However, technical reality frequently lags behind marketing claims. While the research community has developed robust tools to detect technical vulnerabilities like reentrancy or integer overflows, centralization defects—design-level flaws that create single points of failure—have remained largely unaddressed.
These defects occur when a specific account, such as a contract owner, holds unilateral power to halt operations, mint infinite tokens, or drain funds. In Q3 2023 alone, centralization-related incidents accounted for over $204 million in financial losses. These are not "bugs" in the traditional sense; the code often executes exactly as intended, but the underlying permission structures are dangerously centralized.
Taxonomy of Centralization Defects
To formalize this problem, we conducted an empirical study of 597 Stack Exchange posts and 117 security audit reports from firms like CertiK. This research led to the definition of six distinct types of centralization defects, ranging from single-signature minting to the lack of timelocks on management functions.
The CDRipper Tool
To automate the detection of these risks, we developed CDRipper (Centralization Defects Ripper), a static analysis tool designed to identify permission-based vulnerabilities. The tool operates through a multi-stage pipeline:
- Permission Analysis: It constructs a Permission Dependency Graph (PDG) to map which functions are restricted and identifies the specific mechanisms used for those restrictions (e.g.,
onlyOwnermodifiers, multi-sig requirements, or timelocks). - Sensitive Operations Detection: It scans for "dangerous" code blocks, such as those modifying token balances or altering proxy implementation addresses.
- Defect Identification: By matching permission patterns against sensitive operations, the tool flags instances where critical power is held by a single entity without sufficient safeguards.
Large-Scale Evaluation and Results
We deployed CDRipper against a dataset of 244,424 verified Ethereum smart contracts collected from Etherscan. The results highlight a systemic issue in the industry: 33.73% (82,446 contracts) contained at least one centralization defect.
The most frequent risks identified were "Critical Variable Manipulation" and "Management without Timelock," appearing in nearly 30% of the dataset. Developers often prioritize convenience and flexibility—such as the ability to quickly pause a contract or adjust fees—over the security provided by multi-signature wallets or mandatory time delays (timelocks).
CDRipper demonstrated high efficacy, achieving an overall precision of 93.7%. It was particularly accurate in detecting "Self-destruct with Single Signature" (100% precision) and "Management without Timelock" (97.9% precision).
Discussion and Limitations
While CDRipper is highly effective, it faces challenges with semantic complexity. For instance, it must distinguish between a legitimate token transfer and a malicious "mint" function. Furthermore, the tool currently analyzes source code in isolation. If a contract's owner is a decentralized DAO or a multi-sig wallet located at a different address, CDRipper may flag it as a false positive because it cannot verify the external decentralization mechanism.
Future work will focus on cross-contract permission analysis and the automated generation of detection rules to keep pace with the evolving complexity of DeFi governance structures.
Summary updated