EvoFuzzer: An Evolutionary Fuzzer for Detecting Reentrancy Vulnerability in Smart Contracts

被引:0
|
作者
Li, Bixin [1 ]
Pan, Zhenyu [1 ]
Hu, Tianyuan [1 ]
机构
[1] Southeast Univ, Sch Comp Sci & Engn, Nanjing 211189, Peoples R China
关键词
smart contract; reentrancy; Blockchain; fuzz testing;
D O I
10.1109/TNSE.2024.3447025
中图分类号
T [工业技术];
学科分类号
08 ;
摘要
Reentrancy vulnerability is one of the most serious security issues in smart contracts, resulting in millions of dollars in economic losses and posing a threat to the trust of the blockchain ecosystem. Therefore, researchers are paying more attention to this problem and have proposed various methods to detect and eliminate potential reentrancy vulnerabilities before contract deployment. Compared to symbolic execution and pattern-matching methods, fuzz testing method can achieve higher accuracy and are better suitable for detecting cross-contract vulnerabilities. However, existing fuzz testing tools often spend a long time exploring states with little pruning, and most of them adopt the reentrancy vulnerability oracle used by static analysis tools, which ignores whether the vulnerability can be exploited to compromise the access control, mutex, or time locks. To address these issues, we propose EvoFuzzer, an evolutionary fuzzer that focuses on the detection of reentrancy vulnerabilities. EvoFuzzer first leverages static analysis to exclude branches that have no impact on state transitions, then continuously optimizes test case generation using a genetic algorithm that considers both function sequence and parameter assignment, and Meanwhile, EvoFuzzer confirms whether reentrancy vulnerabilities can be exploited by simulating attacks. Our experiments have performed on 198 annotated contracts and 47 honeypot contracts, and experimental results show that EvoFuzzer can detect 91.7% of reentrancy vulnerabilities with no false positives, achieve the highest F1 score with 95.7%, which is 5.9% higher than the next best approach (Confuzzius), and we also find that it reduces more than 10% of branches when EvoFuzzer adopts a pruning strategy.
引用
收藏
页码:5790 / 5802
页数:13
相关论文
共 50 条
  • [41] Detecting Nondeterministic Payment Bugs in Ethereum Smart Contracts
    Wang, Shuai
    Zhang, Chengyu
    Su, Zhendong
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (OOPSLA):
  • [42] Detecting Unknown Threats in Smart Contracts With Domain Adaptation
    Ye, Weiwei
    Yang, Liu
    Duan, Li
    Li, Chao
    Ni, Wei
    2024 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE SERVICES ENGINEERING, SSE 2024, 2024, : 104 - 114
  • [43] Smart Scan: An Approach to Detect Denial of Service Vulnerability in Ethereum Smart Contracts
    Janjua, Husnain Ahmed
    Yue, Li
    Hayat, Shoaib
    PROCEEDINGS OF 2023 7TH INTERNATIONAL CONFERENCE ON ELECTRONIC INFORMATION TECHNOLOGY AND COMPUTER ENGINEERING, EITCE 2023, 2023, : 1572 - 1578
  • [44] Bayesian network based vulnerability detection of blockchain smart contracts
    Kodavali, Lakshminarayana
    Kuppuswamy, Sathiyamurthy
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2023, 44 (02) : 1907 - 1920
  • [45] VSCL: Automating Vulnerability Detection in Smart Contracts with Deep Learning
    Mi, Feng
    Wang, Zhuoyi
    Zhao, Chen
    Guo, Jinghui
    Ahmed, Fawaz
    Khan, Latifur
    2021 IEEE INTERNATIONAL CONFERENCE ON BLOCKCHAIN AND CRYPTOCURRENCY (ICBC), 2021,
  • [46] Improvement and Optimization of Vulnerability Detection Methods for Ethernet Smart Contracts
    Yang, Zhongju
    Zhu, Weixing
    Yu, Minggang
    IEEE ACCESS, 2023, 11 : 78207 - 78223
  • [47] DEPOSafe: Demystifying the Fake Deposit Vulnerability in Ethereum Smart Contracts
    Ji, Ru
    He, Ningyu
    Wu, Lei
    Wang, Haoyu
    Bai, Guangdong
    Guo, Yao
    2020 25TH INTERNATIONAL CONFERENCE ON ENGINEERING OF COMPLEX COMPUTER SYSTEMS (ICECCS 2020), 2020, : 125 - 134
  • [48] THREAT PREVENTION & VULNERABILITY ANALYSIS OF SMART CONTRACTS IN BLOCKCHAIN NETWORKS
    Chandra, Pankaj
    Soni, Santosh
    Gupta, Akanksha
    Kumar, Prayas
    Raj, Kunal
    SURANAREE JOURNAL OF SCIENCE AND TECHNOLOGY, 2023, 30 (05):
  • [49] HFContractFuzzer: Fuzzing Hyperledger Fabric Smart Contracts for Vulnerability Detection
    Ding, Mengjie
    Li, Peiru
    Li, Shanshan
    Zhang, He
    PROCEEDINGS OF EVALUATION AND ASSESSMENT IN SOFTWARE ENGINEERING (EASE 2021), 2021, : 321 - 328
  • [50] ContractWard: Automated Vulnerability Detection Models for Ethereum Smart Contracts
    Wang, Wei
    Song, Jingjing
    Xu, Guangquan
    Li, Yidong
    Wang, Hao
    Su, Chunhua
    IEEE TRANSACTIONS ON NETWORK SCIENCE AND ENGINEERING, 2021, 8 (02): : 1133 - 1144