Towards a SQL Injection Vulnerability Detector Based on Session Types

3Citations
Citations of this article
5Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Vulnerabilities in web applications pose a risk for organisations. Among them, SQL injections (SQLi) give the attacker access to private data by submitting malicious SQL queries to the database via invalidated entry points. Although there are various techniques for detecting SQLi, static analysis is widely used as it inspects the application code without executing it. However, static analysis tools are not always precise. In this work, we explore an avenue that links the detection of SQLi to type checking, thus providing stronger guarantees of their existence. We propose a novel approach which consists of interpreting the behaviour of a web application as if it was a communication protocol and uses session types to specify this behaviour. We leverage FreeST, a functional programming language for session types, to implement FREESQLI, a seminal detector of SQLi in PHP web applications. The tool translates the PHP code into FreeST code and capitalizes on FreeST’s type checker to verify protocol adherence and detect inconsistencies associated with the presence of SQLi.

Cite

CITATION STYLE

APA

Silvestre, A., Medeiros, I., & Mordido, A. (2024). Towards a SQL Injection Vulnerability Detector Based on Session Types. In International Conference on Evaluation of Novel Approaches to Software Engineering, ENASE - Proceedings (pp. 711–718). Science and Technology Publications, Lda. https://doi.org/10.5220/0012732500003687

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free