Encoding Query Based Lightweight Algorithm for Preventing SQL injection attack.

SQL injection attacks are still common issue in web applications. Although different techniques have been proposed to prevent SQL injection attack, it has a high impact on web applications, especially associated with large and sensitive databases. In this attack, an attacker can inject malicious cod...

Full description

Bibliographic Details
Published in:Journal of Basrah Researches (Sciences) Vol. 46; no. 1; pp. 1 - 12
Main Authors: Shwaish, Alaa Khudhair, Hussain, Mohammed Abdulridha, Al-Kashoash, Hayder A. A.
Format: Article
Published: Republic of Iraq Ministry of Higher Education & Scientific Research (MOHESR) 2020
Subjects:
Online Access:View this record in EBSCOhost
Description
Summary:SQL injection attacks are still common issue in web applications. Although different techniques have been proposed to prevent SQL injection attack, it has a high impact on web applications, especially associated with large and sensitive databases. In this attack, an attacker can inject malicious code into the data entry field of the input form and bypass authentication, access, then modification and deletion of data within the database. In this paper, a lightweight algorithm is introduced based on encoding of the query named (EQA) considering HTTP traffic parameters e.g. request and response time and message length. EQA hides the SQL relationship with the database, and prevents some common types of SQL injection (Tautology, Piggybacked and Comment). EQA is implemented and tested using MySQL and PHP environment and Wireshark platform. The results demonstrate that the proposal has a good performance in terms of security level, reducing HTTP request and response time and message length.