AdvSQLi: Generating Adversarial SQL Injections Against Real-World WAF-as-a-Service
- 8 January 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Information Forensics and Security
- Vol. 19 (15566013) , 2623-2638
Abstract
As the first defensive layer that attacks would hit, the web application firewall (WAF) plays an indispensable role in defending against malicious web attacks like SQL injection (SQLi). With the development of cloud computing, WAF-as-a-service, as one kind of Security-as-a-service, has been proposed to facilitate the deployment, configuration, and update of WAFs in the cloud. Despite its tremendous popularity, the security vulnerabilities of WAF-as-a-service are still largely unknown, which is highly concerning given its massive usage. In this paper, we propose a general and extendable attack framework, namely AdvSQLi , in which a minimal series of transformations are performed on the hierarchical tree representation of the original SQLi payload, such that the generated SQLi payloads can not only bypass WAF-as-a-service under black-box settings but also keep the same functionality and maliciousness as the original payload. With AdvSQLi , we make it feasible to inspect and understand the security vulnerabilities of WAFs automatically, helping vendors make products more secure. To evaluate the attack effectiveness and efficiency of AdvSQLi , we first employ two public datasets to generate adversarial SQLi payloads, leading to a maximum attack success rate of 100% against state-of-the-art ML-based SQLi detectors. Furthermore, to demonstrate the immediate security threats caused by AdvSQLi , we evaluate the attack effectiveness against 7 WAF-as-a-service solutions from mainstream vendors and find all of them are vulnerable to AdvSQLi . For instance, AdvSQLi achieves an attack success rate of over 79% against the F5 WAF. Through in-depth analysis of the evaluation results, we further condense out several general yet severe flaws of these vendors that cannot be easily patched.Keywords
All Related Versions
Funding Information
- National Key Research and Development Program of China (2022YFB2901305)
- “Pioneer” and “Leading Goose” Research and Development Program of Zhejiang (2022C01085)
- Fundamental Research Funds for the Central Universities
- National Natural Science Foundation of China (62202457)
This publication has 42 references indexed in Scilit:
- SQLiGoT: Detecting SQL injection attacks using graph of tokens and SVMComputers & Security, 2016
- Mastering the game of Go with deep neural networks and tree searchNature, 2016
- Security Testing2016
- A Study of Web Application Firewall Solutions2015
- SQLI detection system for a safer web application2015
- Behind an Application Firewall, Are We Safe from SQL Injection Attacks?2015
- Bandit Based Monte-Carlo Planning2006
- Using parse tree validation to prevent SQL injection attacks2005
- Reinforcement Learning: An IntroductionIEEE Transactions on Neural Networks, 1998
- Three models for the description of languageIEEE Transactions on Information Theory, 1956