Finding permission bugs in smart contracts with role mining
Ye Liu, Yi Li, Shang-Wei Lin, Cyrille Artho
Abstract
Smart contracts deployed on permissionless blockchains, such as Ethereum, are accessible to any user in a trustless environment. Therefore, most smart contract applications implement access control policies to protect their valuable assets from unauthorized accesses. A difficulty in validating the conformance to such policies, i. e., whether the contract implementation adheres to the expected behaviors, is the lack of policy specifications. In this paper, we mine past transactions of a contract to recover a likely access control model, which can then be checked against various information flow policies and identify potential bugs related to user permissions. We implement our role mining and security policy validation in tool SPCon. The experimental evaluation on labeled smart contract role mining benchmark demonstrates that SPCon effectively mines more accurate user roles compared to the state-of-the-art role mining tools. Moreover, the experimental evaluation on realworld smart contract benchmark and access control CVEs indicates SPCon effectively detects potential permission bugs while having better scalability and lower false-positive rate compared to the state-of-the-art security tools, finding 11 previously unknown bugs and detecting six CVEs that no other tool can find.
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.
19 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- FlashSyn: Flash Loan Attack Synthesis via Counter Example Driven Approximation cites ZEUS: Analyzing Safety of Smart Contracts
- FlashSyn: Flash Loan Attack Synthesis via Counter Example Driven Approximation cites Ethainter: a smart contract security analyzer for composite vulnerabilities
- FlashSyn: Flash Loan Attack Synthesis via Counter Example Driven Approximation cites Making Smart Contracts Smarter
- FlashSyn: Flash Loan Attack Synthesis via Counter Example Driven Approximation cites AChecker: Statically Detecting Smart Contract Access Control Vulnerabilities
- Definition and Detection of Defects in NFT Smart Contracts cites ZEUS: Analyzing Safety of Smart Contracts
- Definition and Detection of Defects in NFT Smart Contracts cites Ethainter: a smart contract security analyzer for composite vulnerabilities
- Definition and Detection of Defects in NFT Smart Contracts cites Making Smart Contracts Smarter
- SmartAxe: Detecting Cross-Chain Vulnerabilities in Bridge Smart Contracts via Fine-Grained Static Analysis cites ZEUS: Analyzing Safety of Smart Contracts
- SmartAxe: Detecting Cross-Chain Vulnerabilities in Bridge Smart Contracts via Fine-Grained Static Analysis cites Ethainter: a smart contract security analyzer for composite vulnerabilities
- SmartAxe: Detecting Cross-Chain Vulnerabilities in Bridge Smart Contracts via Fine-Grained Static Analysis cites Making Smart Contracts Smarter
- SmartAxe: Detecting Cross-Chain Vulnerabilities in Bridge Smart Contracts via Fine-Grained Static Analysis cites AChecker: Statically Detecting Smart Contract Access Control Vulnerabilities
- ZEUS: Analyzing Safety of Smart Contracts cites Making Smart Contracts Smarter
- 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
- GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysis cites ZEUS: Analyzing Safety of Smart Contracts
- GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysis cites Ethainter: a smart contract security analyzer for composite vulnerabilities
- GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysis cites VerX: Safety Verification of Smart Contracts
- GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysis cites AChecker: Statically Detecting Smart Contract Access Control Vulnerabilities
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts cites ZEUS: Analyzing Safety of Smart Contracts
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts cites Making Smart Contracts Smarter
- AChecker: Statically Detecting Smart Contract Access Control Vulnerabilities cites Ethainter: a smart contract security analyzer for composite vulnerabilities
- AChecker: Statically Detecting Smart Contract Access Control Vulnerabilities cites Making Smart Contracts Smarter
- AChecker: Statically Detecting Smart Contract Access Control Vulnerabilities cites Empirical review of automated analysis tools on 47, 587 Ethereum smart contracts
Cited by top-tier papers19
- GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program AnalysisYuqiang Sun, Daoyuan Wu, Yue Xue, Han Liu et al.ICSE 2024 · 131 citations
- AChecker: Statically Detecting Smart Contract Access Control VulnerabilitiesAsem Ghaleb, Julia Rubin, Karthik PattabiramanICSE 2023 · 63 citations
- Definition and Detection of Defects in NFT Smart ContractsShuo Yang, Jiachi Chen, Zibin ZhengISSTA 2023 · 35 citations
- FlashSyn: Flash Loan Attack Synthesis via Counter Example Driven ApproximationZhiyang Chen, Sidi Mohamed Beillahi, Fan LongICSE 2024 · 21 citations
- SmartAxe: Detecting Cross-Chain Vulnerabilities in Bridge Smart Contracts via Fine-Grained Static AnalysisZeqin Liao, Yuhong Nan, Henglong Liang, Sicheng Hao et al.FSE 2024 · 18 citations
Builds on6
- Making Smart Contracts SmarterLoi Luu, Duc-Hiep Chu, Hrishi Olickel, Prateek Saxena et al.CCS 2016 · 2,306 citations
- ZEUS: Analyzing Safety of Smart ContractsSukrit Kalra, Seep Goel, Mohan Dhawan, Subodh SharmaNDSS 2018 · 595 citations
- Empirical review of automated analysis tools on 47, 587 Ethereum smart contractsThomas Durieux, João F. Ferreira, Rui Abreu, Pedro CruzICSE 2020 · 373 citations
- VerX: Safety Verification of Smart ContractsAnton Permenev, Dimitar Dimitrov, Petar Tsankov, Dana Drachsler-Cohen et al.S&P 2020 · 251 citations
- Ethainter: a smart contract security analyzer for composite vulnerabilitiesLexi Brent, Neville Grech, Sifis Lagouvardos, Bernhard Scholz et al.PLDI 2020 · 163 citations
Related papers
- 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
- Demystifying Invariant Effectiveness for Securing Smart ContractsZhiyang Chen, Ye Liu, Sidi Mohamed Beillahi, Yi Li et al.FSE 2024 · 15 citations
- SmartIFSyn: Automated Information Flow Security Policy Synthesis for Smart ContractsYinghao Wu, Miaomiao Zhang, Fu Song, John W. Baugh Jr.FSE 2026
- SMARTIAN: Enhancing Smart Contract Fuzzing with Static and Dynamic Data-Flow AnalysesJaeseung Choi, Doyeon Kim, Soomin Kim, Gustavo Grieco et al.ASE 2021 · 164 citations
- Securify: Practical Security Analysis of Smart ContractsPetar Tsankov, Andrei Marian Dan, Dana Drachsler-Cohen, Arthur Gervais et al.CCS 2018 · 1,108 citations
