You shall not pass: Mitigating SQL Injection Attacks on Legacy Web Applications

Rasoul Jahanshahi, Adam Doupé, Manuel Egele
6/22/2020
cs.CR

Official code: BUseclab/SQLBlock (3 stars, Go, last commit 2021-08-17).

Abstract

SQL injection (SQLi) attacks pose a significant threat to the security of web applications. Existing approaches do not support object-oriented programming that renders these approaches unable to protect the real-world web apps such as Wordpress, Joomla, or Drupal against SQLi attacks.

Show full abstract

We propose a novel hybrid static-dynamic analysis for PHP web applications that limits each PHP function for accessing the database. Our tool, SQLBlock, reduces the attack surface of the vulnerable PHP functions in a web application to a set of query descriptors that demonstrate the benign functionality of the PHP function. We implement SQLBlock as a plugin for MySQL and PHP. Our approach does not require any modification to the web app. W evaluate SQLBlock on 11 SQLi vulnerabilities in Wordpress, Joomla, Drupal, Magento, and their plugins. We demonstrate that SQLBlock successfully prevents all 11 SQLi exploits with negligible performance overhead (i.e., a maximum of 3% on a heavily-loaded web server)

View on arXivView PDF

Code Implementations(1)

BUseclab/SQLBlockOfficial100%
31Go, PythonMar 11, 20205 years ago

Similar Papers

Cite this paper

@article{jahanshahi2020shall,
  title  = {You shall not pass: Mitigating SQL Injection Attacks on Legacy Web Applications},
  author = {Rasoul Jahanshahi and Adam Doupé and Manuel Egele},
  year   = {2020},
  eprint = {2006.11996},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.11996}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.11996.svg)](https://codeofpaper.com/paper/2006.11996)

Discussion