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 条
  • [1] Detecting Reentrancy Vulnerability in Smart Contracts using Graph Convolution Networks
    Lakadawala, Hozefa
    Dzigbede, Komla
    Chen, Yu
    2024 IEEE 21ST CONSUMER COMMUNICATIONS & NETWORKING CONFERENCE, CCNC, 2024, : 188 - 193
  • [2] Reentrancy Vulnerability Identification in Ethereum Smart Contracts
    Samreen, Noama Fatima
    Alalfi, Manar H.
    PROCEEDINGS OF THE 2020 IEEE 3RD INTERNATIONAL WORKSHOP ON BLOCKCHAIN ORIENTED SOFTWARE ENGINEERING (IWBOSE '20), 2020, : 22 - 29
  • [3] ReDefender: Detecting Reentrancy Vulnerabilities in Smart Contracts Automatically
    Li, Bixin
    Pan, Zhenyu
    Hu, Tianyuan
    IEEE TRANSACTIONS ON RELIABILITY, 2022, 71 (02) : 984 - 999
  • [4] ReDetect: Reentrancy Vulnerability Detection in Smart Contracts with High Accuracy
    Yu, Rutao
    Shu, Jiangang
    Yan, Dekai
    Jia, Xiaohua
    2021 17TH INTERNATIONAL CONFERENCE ON MOBILITY, SENSING AND NETWORKING (MSN 2021), 2021, : 412 - 419
  • [5] ReDefender: A Tool for Detecting Reentrancy Vulnerabilities in Smart Contracts Effectively
    Pan, Zhenyu
    Hu, Tianyuan
    Qian, Chen
    Li, Bixin
    2021 IEEE 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2021), 2021, : 915 - 925
  • [6] HARVEY: A Greybox Fuzzer for Smart Contracts
    Wuestholz, Valentin
    Christakis, Maria
    PROCEEDINGS OF THE 28TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '20), 2020, : 1398 - 1409
  • [7] Cross-Contract Static Analysis for Detecting Practical Reentrancy Vulnerabilities in Smart Contracts
    Xue, Yinxing
    Ma, Mingliang
    Lin, Yun
    Sui, Yulei
    Ye, Jiaming
    Peng, Tianyong
    2020 35TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2020), 2020, : 1029 - 1040
  • [8] ReGuard: Finding Reentrancy Bugs in Smart Contracts
    Liu, Chao
    Liu, Han
    Cao, Zhao
    Chen, Zhong
    Chen, Bangdao
    Roscoe, Bill
    PROCEEDINGS 2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING - COMPANION (ICSE-COMPANION, 2018, : 65 - 68
  • [9] An Attention-based Wide and Deep Neural Network for Reentrancy Vulnerability Detection in Smart Contracts
    Osei, Samuel Banning
    Huang, Rubing
    Ma, Zhongchen
    JOURNAL OF SYSTEMS AND SOFTWARE, 2025, 223
  • [10] ReenSAT: Reentrancy Vulnerability Detection in Smart Contracts Using Semantic-Enhanced SAT Evaluation
    He, Long
    Zhao, Xiangfu
    Wang, Yichen
    IEEE TRANSACTIONS ON RELIABILITY, 2024,