Statically Checking Missing Input Validations in Solidity Smart Contracts - A Case Study

被引:0
|
作者
Munir, Sundas [1 ]
Baig, Mirza Samna Iqbal [2 ]
Noor, Mali [1 ]
Murad, Syeda Nina [1 ]
机构
[1] Halmstad Univ, Sch Informat Technol, Halmstad, Sweden
[2] Eagle Games Sweden AB, Halmstad, Sweden
关键词
Ethereum; Solidity; vulnerabilities; static analysis; taint analysis; vulnerability detection;
D O I
10.1109/Blockchain60715.2023.00017
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Smart contracts, running on blockchains, enable transparent interactions without intermediaries. However, program-related bugs and flaws in translating business logic into code can introduce vulnerabilities, making them attractive targets for malicious users. For instance, using input from untrusted users in critical operations without proper validation may lead to exploitable functionalitics. We refer to this vulnerability as ' sing Input Validation (MIV). This paper focuses on the issues caused by MIV (aka MIV-related issues) in Solidity smart contracts executing on the Ethereum blockchain. In particular, we conduct a case study emphasizing how MIV-related issues can lead to unexpected behavior in smart contracts, rendering them vulnerable to malicious manipulation. We also implement an information flow analysis -based analyzer, MIV-Checker, to statically detect instances of MIV in Solidity smart contracts. We evaluated MIV-Checker against a state-of-the-art smart contract analysis tool, Securify, using 3399 distinct contracts collected from the Ethereum blockchain. Securify identified only three contracts, whereas MIV-Checker detected 86 contracts as potentially susceptible to MIV. Our manual assessment confirms that MIV-Checker outperforms Securify by detecting more true Ai cases and reducing execution time. This case study helps determine that many recently used contracts on Ethereum may still be potentially vulnerable to MIV. Additionally, we position user-provided input as a non-deterministic factor in Ethereum contract execution and discuss future research avenues for mitigating issues arising from such factors.
引用
收藏
页码:47 / 54
页数:8
相关论文
共 31 条
  • [21] Smart Contracts for Managing the Chain-of-Custody of Digital Evidence: A Practical Case of Study
    Santamaria, Pablo
    Tobarra, Llanos
    Pastor-Vargas, Rafael
    Robles-Gomez, Antonio
    [J]. SMART CITIES, 2023, 6 (02): : 709 - 727
  • [22] Delivery Management System based on Blockchain, Smart Contracts and NFT: A Case Study in Vietnam
    Gia, Khiem Huynh
    Huong, Luong Hoang
    Vo, Hong Khanh
    Trong, Phuc Nguyen
    Dang, Khoa Tran
    Le Van, Hieu
    Phu, Loc Van Cao
    Quoc, Duy Nguyen Truong
    Tran, Nguyen Huyen
    The, Anh Nguyen
    Nghia, Huynh Trong
    Le Khanh, Bang
    Le Tuan, Kiet
    Ngan, Nguyen Thi Kim
    [J]. INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2023, 14 (01) : 930 - 938
  • [23] Run-Time Probabilistic Model Checking for Failure Prediction: A Smart Lift Case Study
    Xin, Xin
    Keoh, Sye Loong
    Sevegnani, Michele
    Saerbeck, Martin
    [J]. 2022 IEEE 8TH WORLD FORUM ON INTERNET OF THINGS, WF-IOT, 2022,
  • [24] Measuring performances and footprint of blockchains with BCTMark: a case study on Ethereum smart contracts energy consumption
    Dimitri Saingre
    Thomas Ledoux
    Jean-Marc Menaud
    [J]. Cluster Computing, 2022, 25 : 2819 - 2837
  • [25] Exploiting smart contracts in PBFT-based blockchains: A case study in medical prescription system
    Garcia, Rodrigo D.
    Ramachandran, Gowri
    Ueyama, Jo
    [J]. COMPUTER NETWORKS, 2022, 211
  • [26] Measuring performances and footprint of blockchains with BCTMark: a case study on Ethereum smart contracts energy consumption
    Saingre, Dimitri
    Ledoux, Thomas
    Menaud, Jean-Marc
    [J]. CLUSTER COMPUTING-THE JOURNAL OF NETWORKS SOFTWARE TOOLS AND APPLICATIONS, 2022, 25 (04): : 2819 - 2837
  • [27] Applying Design Patterns in Smart Contracts A Case Study on a Blockchain-Based Traceability Application
    Liu, Yue
    Lu, Qinghua
    Xu, Xiwei
    Zhu, Liming
    Yao, Haonan
    [J]. BLOCKCHAIN - ICBC 2018, 2018, 10974 : 92 - 106
  • [28] Abbildung von Intercompany-Verträgen auf der Blockchain durch Smart Contracts – eine Fallstudie am Beispiel von IT-ServicesThe Mapping of Intercompany Contracts on the Blockchain by Smart Contracts—A Case Study Using the Example of IT Services
    Stefan Tönnissen
    Frank Teuteberg
    [J]. HMD Praxis der Wirtschaftsinformatik, 2018, 55 (6) : 1167 - 1184
  • [29] Blockchain-Based IoT Application Using Smart Contracts: Case Study of M2M Autonomous Trading
    Gong, Xinglin
    Liu, Erwu
    Wang, Rui
    [J]. 2020 5TH INTERNATIONAL CONFERENCE ON COMPUTER AND COMMUNICATION SYSTEMS (ICCCS 2020), 2020, : 781 - 785
  • [30] Quality Assurance Decisions with Air Models: A Case Study of Imputation of Missing Input Data Using EPA’s Multi-layer Model
    George E. Bowker
    Donna B. Schwede
    Gary G. Lear
    William J. Warren-Hicks
    Peter L. Finkelstein
    [J]. Water, Air, & Soil Pollution, 2011, 222 : 391 - 402