MARATTO

article

Optimization of Smart Contract Reentrancy Vulnerabilities Based on Static Analysis

20251 citationIbn Tofail University

Abstract

A smart contract is a program deployed on a blockchain network and becomes immutable once deployed. Reentrancy bugs are among the most significant vulnerabilities in blockchain technology. Numerous approaches have been proposed to detect and analyze them. However, minimizing reentrancy errors in smart contracts remains a challenge. The aim of this paper is to optimize the handling of reentrancy bugs in smart contracts across different versions of Solidity. It also proposes a new method for syntactic and lexical code detection. Our approach is based on static analysis, and the tool can detect different versions of smart contract code. We used regex to identify external calls in the contract and Control Flow Graph (CFG) to identify the components of the code. A detection algorithm was developed to identify reentrancy vulnerabilities. This approach enhances contract reliability and reduces risk prior to deployment. Our method has been evaluated using True Positive Rate (TPR) and False Positive Rate (FPR) metrics. We tested it on the SmartBugs benchmark suite and contracts from Etherscan. The contracts analyzed include two solidity versions: 0.4.x and 0.8.x. Thanks to the integration of multiple tools, our solution supports testing across different solidity versions.

Research topics

  • Blockchain Technology Applications and Security
  • Security and Verification in Computing
  • Web Application Security Vulnerabilities

Read the original research

This page summarises published work. The authoritative version sits with the publisher.

DOI: 10.1109/icstcc66753.2025.11240264

Is something wrong with this record? Report it or request removal.

Discussion

Discuss this research

Have you built on this work, tried to replicate it, or seen it applied in practice? Share what you know. Verified researchers and MARATTO™ domain experts can open a discussion, and any member can reply. Contributions are reviewed before they appear.

No discussion yet. Open the first thread.