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 条
  • [31] Assessing source code vulnerabilities in a cloud-based system for health systems: OpenNCP
    Larrucea, Xabier
    Santamaria, Izaskun
    Colomo-Palacios, Ricardo
    IET SOFTWARE, 2019, 13 (03) : 195 - 202
  • [32] A Weight-Based Symptom Correlation Approach to SQL Injection Attacks
    Ficco, Massimo
    Coppolino, Luigi
    Romano, Luigi
    LADC: 2009 4TH LATIN-AMERICAN SYMPOSIUM ON DEPENDABLE COMPUTING, 2009, : 9 - 16
  • [33] Model Based Hybrid Approach to Prevent SQL Injection Attacks in PHP
    Sadalkar, Kunal
    Mohandas, Radhesh
    Pais, Alwyn R.
    SECURITY ASPECTS IN INFORMATION TECHNOLOGY, 2011, 7011 : 3 - 15
  • [34] Input-based Analysis Approach to Prevent SQL Injection Attacks
    Jana, Angshuman
    Bordoloi, Priyam
    Maity, Dipendu
    2020 IEEE REGION 10 SYMPOSIUM (TENSYMP) - TECHNOLOGY FOR IMPACTFUL SUSTAINABLE DEVELOPMENT, 2020, : 1290 - 1293
  • [35] Multi-Source Data Analysis and Evaluation of Machine Learning Techniques for SQL Injection Detection
    Ross, Kevin
    Moh, Melody
    Moh, Teng-Sheng
    Yao, Jason
    ACMSE '18: PROCEEDINGS OF THE ACMSE 2018 CONFERENCE, 2018,
  • [36] A Deep Learning Approach to Identifying Source Code in Images and Video
    Ott, Jordan
    Atchison, Abigail
    Harnack, Paul
    Bergh, Adrienne
    Linstead, Erik
    2018 IEEE/ACM 15TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR), 2018, : 376 - 386
  • [37] An Asynchronous Federated Learning Approach for a Security Source Code Scanner
    Kall, Sabrina
    Trabelsi, Slim
    ICISSP: PROCEEDINGS OF THE 7TH INTERNATIONAL CONFERENCE ON INFORMATION SYSTEMS SECURITY AND PRIVACY, 2021, : 572 - 579
  • [38] Source Code Defect Detection Based on Deep Learning
    Wang X.-M.
    Zhang T.
    Xin W.
    Hou C.-Y.
    Beijing Ligong Daxue Xuebao/Transaction of Beijing Institute of Technology, 2019, 39 (11): : 1155 - 1159
  • [39] A Learning-Based Approach for Automatic Construction of Domain Glossary from Source Code and Documentation
    Wang, Chong
    Peng, Xin
    Liu, Mingwei
    Xing, Zhenchang
    Bai, Xuefang
    Xie, Bing
    Wang, Tuo
    ESEC/FSE'2019: PROCEEDINGS OF THE 2019 27TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2019, : 97 - 108
  • [40] Deep Learning-Based Detection Technology for SQL Injection Research and Implementation
    Sun, Hao
    Du, Yuejin
    Li, Qi
    APPLIED SCIENCES-BASEL, 2023, 13 (16):