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 条
  • [31] DFier: A directed vulnerability verifier for Ethereum smart contracts
    Wang, Zeli
    Dai, Weiqi
    Li, Ming
    Choo, Kim-Kwang Raymond
    Zou, Deqing
    JOURNAL OF NETWORK AND COMPUTER APPLICATIONS, 2024, 231
  • [32] Smart Contracts Vulnerability Classification Through Deep Learning
    Rossini, Martina
    Zichichi, Mirko
    Ferretti, Stefano
    PROCEEDINGS OF THE TWENTIETH ACM CONFERENCE ON EMBEDDED NETWORKED SENSOR SYSTEMS, SENSYS 2022, 2022, : 1229 - 1230
  • [33] Vulnerability Detection in Smart Contracts Using Deep Learning
    Gopali, Saroj
    Khan, Zulfiqar Ali
    Chhetri, Bipin
    Karki, Bimal
    Namin, Akbar Siami
    2022 IEEE 46TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE (COMPSAC 2022), 2022, : 1249 - 1255
  • [34] Smart Contracts Vulnerability Auditing With Multi-Semantics
    Yang, Zhen
    Keung, Jacky
    Zhang, Miao
    Xiao, Yan
    Huang, Yangyang
    Hui, Tik
    2020 IEEE 44TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE (COMPSAC 2020), 2020, : 892 - 901
  • [35] EOSFuzzer: Fuzzing EOSIO Smart Contracts for Vulnerability Detection
    Huang, Yuhe
    Jiang, Bo
    Chan, W. K.
    THE 12TH ASIA-PACIFIC SYMPOSIUM ON INTERNETWARE, INTERNETWARE 2020, 2021, : 99 - 109
  • [36] An Opcode-Based Vulnerability Detection of Smart Contracts
    Sui, Jia
    Chu, Lili
    Bao, Han
    APPLIED SCIENCES-BASEL, 2023, 13 (13):
  • [37] An Efficient Vulnerability Detection Model for Ethereum Smart Contracts
    Song, Jingjing
    He, Haiwu
    Lv, Zhuo
    Su, Chunhua
    Xu, Guangquan
    Wang, Wei
    NETWORK AND SYSTEM SECURITY, NSS 2019, 2019, 11928 : 433 - 442
  • [38] A Curated Solidity Smart Contracts Repository of Metrics and Vulnerability
    Ibba, Giacomo
    Aufiero, Sabrina
    Neykova, Rumyana
    Bartolucci, Silvia
    Ortu, Marco
    Tonelli, Roberto
    PROCEEDINGS OF THE 20TH INTERNATIONAL CONFERENCE ON PREDICTIVE MODELS AND DATA ANALYTICS IN SOFTWARE ENGINEERING, PROMISE 2024, 2024, : 32 - 41
  • [39] Review of Automated Vulnerability Analysis of Smart Contracts on Ethereum
    Rameder, Heidelinde
    di Angelo, Monika
    Salzer, Gernot
    FRONTIERS IN BLOCKCHAIN, 2022, 5
  • [40] FunFuzz: A Function-Oriented Fuzzer for Smart Contract Vulnerability Detection with High Effectiveness and Efficiency
    Ye, Mingxi
    Nan, Yuhong
    Dai, Hong-Ning
    Yang, Shuo
    luo, Xiapu
    Zheng, Zibin
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (07)