SQLIFIX: Learning Based Approach to Fix SQL Injection Vulnerabilities in Source Code

被引:2
|
作者
Siddiq, Mohammed Latif [1 ]
Jahin, Md Rezwanur Rahman [1 ]
Ul Islam, Mohammad Rafid [1 ]
Shahriyar, Rifat [1 ]
Iqbal, Anindya [1 ]
机构
[1] Bangladesh Univ Engn & Technol, Dhaka, Bangladesh
关键词
SQL Injection; Prepared Statement; Automatic Fix;
D O I
10.1109/SANER50967.2021.00040
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
SQL Injection attack is one of the oldest yet effective attacks for web applications. Even in 2020, applications are vulnerable to SQL Injection attacks. The developers are supposed to take precautions such as parameterizing SQL queries, escaping special characters, etc. However, developers, especially inexperienced ones, often fail to comply with such guidelines. There are quite a few SQL Injection detection tools to expose any unattended SQL Injection vulnerability in source code. However, to the best of our knowledge, very few works have been done to suggest a fix of these vulnerabilities in the source code. We have developed a learning-based approach that prepares abstraction of SQL Injection vulnerable codes from training dataset and clusters them using hierarchical clustering. The test samples are matched with a cluster of similar samples and a fix suggestion is generated. We have developed a manually validated training and test dataset from real-world projects of Java and PHP to evaluate our language-agnostic approach. The results establish the superiority of our technique over comparable techniques. The code and dataset are released publicly to encourage reproduction.
引用
收藏
页码:354 / 364
页数:11
相关论文
共 50 条
  • [41] Enhancing Machine Learning Based SQL Injection Detection Using ContextualizedWord Embedding
    Zulu, Janet
    Han, Bonian
    Alsmadi, Izzat
    Liang, Gongbo
    PROCEEDINGS OF THE 2024 ACM SOUTHEAST CONFERENCE, ACMSE 2024, 2024, : 211 - 216
  • [42] A Search-based Testing Approach for XML Injection Vulnerabilities in Web Applications
    Jan, Sadeeq
    Nguyen, Cu D.
    Arcuri, Andrea
    Briand, Lionel
    2017 10TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST), 2017, : 356 - 366
  • [43] Sequence-to-Sequence Learning-Based Conversion of Pseudo-Code to Source Code Using Neural Translation Approach
    Acharjee, Uzzal Kumar
    Arefin, Minhazul
    Hossen, Kazi Mojammel
    Uddin, Mohammed Nasir
    Uddin, Md Ashraf
    Islam, Linta
    IEEE ACCESS, 2022, 10 : 26730 - 26742
  • [44] Toward Automated Scanning for Code Injection Vulnerabilities in HTML']HTML5-Based Mobile Apps
    Choi, Su Yeon
    Lee, Hae Young
    PROCEEDINGS OF 2016 INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND ASSURANCE (ICSSA), 2016, : 24 - 24
  • [45] MulCode: A Multi-task Learning Approach for Source Code Understanding
    Wang, Deze
    Yu, Yue
    Li, Shanshan
    Dong, Wei
    Wang, Ji
    Qing, Liao
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2021), 2021, : 48 - 59
  • [46] Survey of Source Code Bug Detection Based on Deep Learning
    Deng X.
    Ye W.
    Xie R.
    Zhang S.-K.
    Ruan Jian Xue Bao/Journal of Software, 2023, 34 (02): : 625 - 654
  • [47] An Ensemble Based Deep Learning Framework to Detect and Deceive XSS and SQL Injection Attacks
    Bin Shahid, Waleed
    Aslam, Baber
    Abbas, Haider
    Afzal, Hammad
    Rashid, Imran
    INTELLIGENT INFORMATION AND DATABASE SYSTEMS, ACIIDS 2022, PT I, 2022, 13757 : 183 - 195
  • [48] Survey of source code vulnerability analysis based on deep learning
    Liang, Chen
    Wei, Qiang
    Du, Jiang
    Wang, Yisen
    Jiang, Zirui
    COMPUTERS & SECURITY, 2025, 148
  • [49] Machine Learning Based Prediction of Complex Bugs in Source Code
    Uqaili, Ishrat-Un-Nisa
    Ahsan, Syed Nadeem
    INTERNATIONAL ARAB JOURNAL OF INFORMATION TECHNOLOGY, 2020, 17 (01) : 26 - 37
  • [50] Deep Learning Architecture for Detecting SQL Injection Attacks Based on RNN Autoencoder Model
    Alghawazi, Maha
    Alghazzawi, Daniyal
    Alarifi, Suaad
    MATHEMATICS, 2023, 11 (15)