Skip to content
Open access

A Python-based web application firewall for SQLi protection in heterogeneous web server environments

Oct 2026 · Bulletin of Electrical Engineering and Informatics · Vol 15, pp. 4312-4324 · 0 citations · 33 references

TL;DR

PyWAF, a Python-based WAF developed as a reverse proxy that offers flexible protection across heterogeneous web servers against SQLi attacks, was evaluated in compatibility testing and reliability testing across three popular web server environments namely Apache, Nginx, and OpenLiteSpeed.

Abstract

Structured query language injection (SQLi) remains one of the most critical threats to web applications. Conventional web application firewall (WAF) such as ModSecurity provide protection but face limitations in heterogeneous environments and often require additional configurations on web servers. This issue is problematic because adding new configurations demands considerable effort and may disrupt stable services. To address this challenge, this research proposes PyWAF, a Python-based WAF developed as a reverse proxy that offers flexible protection across heterogeneous web servers against SQLi attacks. PyWAF employs a weighted core rule set (CRS) with a scoring mechanism and gate flags to detect various SQLi patterns. The proposed method was evaluated in compatibility testing and reliability testing across three popular web server environments namely Apache, Nginx, and OpenLiteSpeed. The reliability evaluation utilized 30 SQLi payloads across three different scenarios, namely GET, POST, and API payload. The results of compatibility test show that the proposed method achieved seamless integration with all web servers without requiring additional server configuration. In term of reliability, PyWAF successfully blocked 100% of SQLi attacks, while ModSecurity blocked 88.9%, demonstrating an improvement of 11.1% in SQLi detection capability.

Read PDF

Similar papers

Open access Oct 2026

Design of an Automated SQL Injection Detection Tool for Web Applications

World Wide Web (Web) applications have become an important interface for network services. However, the direct connection among user input, business logic, and database operations has also increased security risks. SQL injection vulnerabilities remain an important issue affecting Web application security. To address th...

Shun-Yan Hong · 0 citations
Open access Sep 2026

Security analysis of selected web applications using vulnerability scanners

Web applications are among the most frequently targeted systems in today’s cyber-threat landscape, and vulnerabilities such as SQL injection, cross-site scripting and various configuration errors have dominated the OWASP Top 10 list for years. This article examines the security of a web application using modern vulnera...

Mariusz Choroś, Marta Dziuba-Kozieł · 0 citations
Review Open access Sep 2026

TWO-LAYER WEB APPLICATION SECURITY MODEL BASED ON OWASP TOP 10:2025 AND ARTIFICIAL INTELLIGENCE METHODS

Web applications continue to be the primary target for cyberattacks such as SQL injection (SQLi), cross-site scripting (XSS), cross-site request forgery (CSRF), and distributed denial-of-service (DDoS). The traditional methods of defense - signature matching, static rule sets, and perimeter control - can no longer keep...

K. Savchuk, E. Nyemkova · 0 citations
Book Open access Nov 2026

Machination: An Application-Agnostic Framework for Black-Box WebRTC Testing

Video conferencing systems are a critical infrastructure for modern organizations, regularly transmitting sensitive personal, business, and governmental communications. While many vulnerabilities that may reveal sensitive data have been uncovered over time, security analyses have been performed manually. These analyses...

Nico Heitmann, Lukas Knittel, Juraj Somorovsky et al. · 0 citations
Open access Oct 2026

ARKA: Design, Implementation and Security Evaluation of a Secure E-Commerce Web Platform with Server-Authoritative Pricing and Real-Time Collaborative Shopping

Business-logic flaws in checkout flows, where a server trusts prices, totals or roles asserted by the client, remain a leading cause of financial loss in web commerce, and security studies continue to find them in widely deployed platforms. At the same time, mainstream storefronts treat shopping as a single-user activi...

Diksha Subhash Kumbhare, Nirjala Subhash Kumbhare · 0 citations
Open access Sep 2026

From Open Redirect to JavaScript Execution via CVE-2024-4367

This case study presents a forensically documented analysis of a multi-stage security incident involving CVE-2024-4367, an arbitrary JavaScript execution vulnerability in PDF.js. The incident occurred on one PKP Open Journal Systems (OJS) deployment. The observed chain involved an open redirect in the host platform's s...

Muhammad Hendra Sunarya, M. N. D. Nugroho, Reja Revaldy F et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.