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 条
  • [1] Model Checking of Solidity Smart Contracts Adopted for Business Processes
    Garfatta, Ikram
    Klai, Kais
    Graiet, Mohamed
    Gaaloul, Walid
    [J]. SERVICE-ORIENTED COMPUTING (ICSOC 2021), 2021, 13121 : 116 - 132
  • [2] Model Checking of Vulnerabilities in Smart Contracts: A Solidity-to-CPN Approach
    Garfatta, Ikram
    Klai, Kais
    Graiet, Mohamed
    Gaaloul, Walid
    [J]. 37TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING, 2022, : 316 - 325
  • [3] A Study of Inline Assembly in Solidity Smart Contracts
    Chaliasos, Stefanos
    Gervais, Arthur
    Livshits, Benjamin
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2022, 6 (OOPSLA):
  • [4] Toward the Ontological Modeling of Smart Contracts: A Solidity Use Case
    Cano-Benito, Juan
    Cimmino, Andrea
    Garcia-Castro, Raul
    [J]. IEEE ACCESS, 2021, 9 : 140156 - 140172
  • [5] Model checking contracts - A case study
    Pace, Gordon
    Prisacariu, Cristian
    Schneider, Gerardo
    [J]. AUTOMATED TECHNOLOGY FOR VERIFICATION AND ANALYSIS, PROCEEDINGS, 2007, 4762 : 82 - +
  • [6] SynTest-Solidity: Automated Test Case Generation and Fuzzing for Smart Contracts
    Olsthoorn, Mitchell
    Stallenberg, Dimitri
    Van Deursen, Arie
    Panichella, Annibale
    [J]. 2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2022), 2022, : 202 - 206
  • [7] How are Solidity smart contracts tested in open source projects? An exploratory study
    Palechor, Luisa
    Bezemer, Cor-Paul
    [J]. 3RD ACM/IEEE INTERNATIONAL CONFERENCE ON AUTOMATION OF SOFTWARE TEST (AST 2022), 2022, : 165 - 169
  • [8] Legal and smart! An exploratory case study on understandability of smart contracts
    Barata, Sofia Lopes
    da Cunha, Paulo Rupino
    [J]. Atas da Conferencia da Associacao Portuguesa de Sistemas de Informacao, 2019,
  • [9] Coupling Smart Contracts: A Comparative Case Study
    Friebe, Sebastian
    Stengele, Oliver
    Hartenstein, Hannes
    Zitterbart, Martina
    [J]. 2021 3RD CONFERENCE ON BLOCKCHAIN RESEARCH & APPLICATIONS FOR INNOVATIVE NETWORKS AND SERVICES (BRAINS), 2021, : 137 - 144
  • [10] A Case Study of Choreography Realizability Checking on Smart Home Application
    Izawa, Marika
    Miyamoto, Toshiyuki
    [J]. 2021 IEEE INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS (ICCE), 2021,