SQLSnoop: Secondary DBMS Attack by Expanding SQL Injection Techniques
Applied Sciences · 12.06.2026 · 16 (12) · 5937
DOI: 10.3390/app16125937 ↗Kurz gefasst
Fachartikel in der Zeitschrift Applied Sciences, online erschienen am 12.06.2026. Verfasst von Dowon Jeong und 3 weiteren Autor:innen. Die Arbeit nennt 60 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: MSIT, Korea Research Institute for Defense Technology Planning and Advancement, National Research Foundation of Korea.
Abstract (Originalsprache)
SQL Injection is a well-known vulnerability that has persisted in web applications for decades. A widely held assumption among developers is that even when SQL Injection is present, hashing or encrypting sensitive data using SQL-provided cryptographic functions, such as sha256() or md5(), renders stolen data unrecoverable. This paper challenges that assumption directly. We demonstrate that invoking cryptographic functions within SQL statements does not protect plaintext credentials against an attacker who already has SQL Injection access, not because the hash functions are weak but because their plaintext arguments are transiently exposed in DBMS in-memory monitoring views before the hash function executes. We exploit this window using a technique that we call SQLSnoop, which repurposes built-in SQL looping constructs to poll the monitoring view at high frequency within a single injected statement. We demonstrate SQLSnoop against four major RDBMS platforms: MySQL, MSSQL, Oracle, and PostgreSQL. Systematic quantitative evaluation is conducted on MySQL, while feasibility on MSSQL, Oracle, and PostgreSQL is confirmed through working Proof-of-Concept implementations against each platform’s respective in-memory monitoring view. Our evaluation on MySQL shows attack success rates consistently above 90%, reaching 100% at 1.2 or more virtual CPU cores, and holding across all four Data Manipulation Language operations. The key practical implication is that SQL-layer hashing is fundamentally insufficient as a defense against SQL Injection, and sensitive data must be hashed at the application layer before the SQL statement is constructed.
Förderung
- MSIT
- Korea Research Institute for Defense Technology Planning and Advancement
- National Research Foundation of Korea
Zitieren
APA
Jeong, D., Kim, J., Fatima, A., & Jang, D. (2026). SQLSnoop: Secondary DBMS Attack by Expanding SQL Injection Techniques. Applied Sciences, 16(12), 5937. https://doi.org/10.3390/app16125937
Vancouver
Jeong D, Kim J, Fatima A, Jang D. SQLSnoop: Secondary DBMS Attack by Expanding SQL Injection Techniques. Applied Sciences. 2026;16(12):5937. doi:10.3390/app16125937
BibTeX
@article{Jeong2026,
author = {Jeong, Dowon and Kim, Jiho and Fatima, Aymen and Jang, Daehee},
title = {SQLSnoop: Secondary DBMS Attack by Expanding SQL Injection Techniques},
journal = {Applied Sciences},
year = {2026},
volume = {16},
number = {12},
pages = {5937},
doi = {10.3390/app16125937}
}
EUVIMED