Gas Gauge: A Security Analysis Tool for Smart Contract Out-of-Gas Vulnerabilities

被引:0
|
作者
Nassirzadeh, Behkish [1 ]
Sun, Huaiying [2 ]
Banescu, Sebastian [3 ]
Ganesh, Vijay [1 ]
机构
[1] Univ Waterloo, Waterloo, ON, Canada
[2] East China Univ Sci & Technol, Shanghai, Peoples R China
[3] Quantstamp, Munich, Germany
关键词
Smart contract security; Blockchain; Ethereum; Static analysis; Dynamic analysis;
D O I
10.1007/978-3-031-18679-0_9
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In recent years, we have witnessed a dramatic increase in the adoption and application of smart contracts in a variety of contexts. However, security vulnerabilities pose a significant challenge to the continued adoption of smart contracts. An important and pervasive class of security vulnerabilities that afflicts Ethereum smart contracts is the gas limit DoS on a contract via unbounded operations. These vulnerabilities result in a failed transaction with an "out-of-gas" error and are often present in contracts containing loops whose bounds are affected by end-user input. To address this issue, we present Gas Gauge, a tool aimed at detecting Out-of-Gas DoS vulnerabilities in Ethereum smart contracts. TheGas Gauge tool has threemajor components: The Detection Phase, Identification Phase, and Correction Phase. The Detection Phase component consists of an accurate static analysis approach that finds and summarizes all the loops in a smart contract. The Identification Phase component uses a white-box fuzzing approach to generate a set of inputs that causes the contract to run out of gas. Lastly, the Correction Phase component uses static analysis and run-time verification to predict the maximum loop bounds consistent with allowable gas usage and suggest appropriate repairs to the tool's users. Each part of Gas Gauge can be used separately or all together to detect, identify and help repair contracts vulnerable to Out-of-Gas DoS vulnerabilities. Gas Gauge was tested on 1,000 real-world solidity smart contracts. When compared to seven state-of-the-art tools, we show that Gas Gauge is the most effective (i.e., has no false positives and false negatives) while being competitive in terms of efficiency.
引用
收藏
页码:143 / 167
页数:25
相关论文
共 50 条
  • [41] In situ gas analysis on an RTP tool with APIMS
    Vereecke, G
    Kondoh, E
    Richardson, P
    Maex, K
    Heyns, MM
    Nenyei, Z
    INSTITUTE OF ENVIRONMENTAL SCIENCES AND TECHNOLOGY, 1998 PROCEEDINGS - CONTAMINATION CONTROL, 1998, : 519 - 526
  • [42] Enhancing Oyente: four new vulnerability detections for improved smart contract security analysis
    Lohith J.J.
    Singh K.
    International Journal of Information Technology, 2024, 16 (6) : 3389 - 3399
  • [43] GuessGas: Tell Me Fine-Grained Gas Consumption of My Smart Contract and Why
    Huang, Qing
    Chen, Renxiong
    Xing, Zhenchang
    Zeng, Jinshan
    Lu, Qinghua
    Xu, Xiwei
    IEEE TRANSACTIONS ON RELIABILITY, 2024, : 1 - 15
  • [44] GASOL: Gas Analysis and Optimization for Ethereum Smart Contracts
    Albert, Elvira
    Correas, Jesus
    Gordillo, Pablo
    Roman-Diez, Guillermo
    Rubio, Albert
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, PT II, TACAS 2020, 2020, 12079 : 118 - 125
  • [45] Unveiling crypto analysis secrets : A comprehensive analysis of smart contract security within blockchain network environments
    Vats, Prashant
    Vats, Shailender Kumar
    Peddi, Prasadu
    JOURNAL OF DISCRETE MATHEMATICAL SCIENCES & CRYPTOGRAPHY, 2024, 27 (04): : 1121 - 1128
  • [46] Adequacy and security analysis of interdependent electric and gas networks
    Antenucci, Andrea
    Sansavini, Giovanni
    PROCEEDINGS OF THE INSTITUTION OF MECHANICAL ENGINEERS PART O-JOURNAL OF RISK AND RELIABILITY, 2018, 232 (02) : 121 - 139
  • [47] A study on gas cost of ethereum smart contracts and performance of blockchain on simulation tool
    Ta, Minh Thanh
    Do, Tien Quyet
    PEER-TO-PEER NETWORKING AND APPLICATIONS, 2024, 17 (01) : 213 - 226
  • [48] A study on gas cost of ethereum smart contracts and performance of blockchain on simulation tool
    Minh Thanh Ta
    Tien Quyet Do
    Peer-to-Peer Networking and Applications, 2024, 17 : 200 - 212
  • [49] Residual gas analysis as a failure analysis tool for microelectronic devices
    Kumar, A
    Carreon, M
    WESCON - 96, CONFERENCE PROCEEDINGS, 1996, : 114 - 115
  • [50] EtherProv: provenance-aware detection, analysis, and mitigation of Ethereum smart contract security issues
    Linoy, Shlomi
    Ray, Suprio
    Stakhanova, Natalia
    2021 IEEE INTERNATIONAL CONFERENCE ON BLOCKCHAIN (BLOCKCHAIN 2021), 2021, : 11 - 20