Blind SQL Injection

SQL injection where the query result never appears in the response, so data is recovered indirectly through boolean oracles, time delays, or out-of-band callbacks.

How it works

The injection is real but the application returns no query output and no database error — only a difference in behavior. The attacker converts a yes/no question about the data into an observable signal and extracts the database one bit or character at a time (deep dive into blind SQLi). Three channels:

  • Boolean-based — inject a condition and observe a content/behavior differential between a true and false predicate (page differs, record returned or not). The total_affected_items-style count field or a “login succeeded” flag can serve as the oracle (Wazuh _substitute_params leaks agent secrets through a boolean oracle on the response count; Keep CEL-to-SQL uses result counts).
  • Time-based — when even true/false isn’t visible, gate a sleep on the predicate. The response latency is the oracle (the database talks in seconds).
  • Out-of-band (OOB) — coerce the DB to make a DNS/HTTP request whose subdomain carries exfiltrated data; asynchronous and reliable when the request-response channel is useless. Depends on Out-of-Band Detection.

Techniques / payloads

Engine-specific time primitives (the fingerprint determines which works):

EngineUnconditional delayConditional delay idiom
MySQL/MariaDBSLEEP(10)IF(<cond>,SLEEP(10),0)
PostgreSQLpg_sleep(10)CASE WHEN <cond> THEN pg_sleep(10) ELSE pg_sleep(0) END
MSSQLWAITFOR DELAY '0:0:10'IF (<cond>) WAITFOR DELAY '0:0:10'
Oracledbms_pipe.receive_message(('a'),10)gate the same call in a CASE ... FROM dual

(Reference table from PortSwigger cheat sheet.) Data is read with substring + comparison, driving a character-by-character search; a binary search over character codes cuts requests to ~log2 per character. Boolean filter-bypass variants lean on INSERT, REPEAT, RLIKE and conditional constructs to survive WAFs and to brute hashed passwords (boolean filter bypass). OOB on MSSQL abuses UNC-path/stored-procedure egress (e.g. xp_dirtree) to fire DNS lookups (DNS-based egress); PortSwigger’s OOB labs chain a UNC/XML-external path to a Collaborator domain and append the stolen value as a subdomain.

Heavy-query delays work where no sleep function is usable: sqlmap’s DB2 payload cross-joins SYSIBM.SYSTABLES to burn seconds, and only runs at --level=5 --risk=3; SQLite’s equivalent is a large RANDOMBLOB hashed inside LIKE ($60k Georgia DHS, picoCTF Sql Map1). A delay that scales with rows matched (≈860 posts × SLEEP(0.01) ≈ 9 s) is strong evidence the injected function runs per row, and keeps tests non-destructive (Essity WP batch route confusion). When a WAF blocks UNION, boolean inference with ASCII(SUBSTR(...)) and a binary search over 32–127 still extracts data (SQLi at NASA). Polyglot time payloads that fire in unquoted, single- and double-quoted contexts at once speed up triage (blind SQLi in a private program).

Oracle time-based without SLEEP: DBMS_PIPE.RECEIVE_MESSAGE is the standard delay primitive, as used against a government portal’s Oracle-backed password-recovery function (Oracle time-based).

Notable cases

  • Exim 4.98 CVE-2025-26794 — blind SQLi into Exim’s internal SQLite via the ETRN command’s semaphore handling in hintsdb.h; DoS and hypothetical RCE (writeup).
  • Craft search / findOne() — the injection point sits in a WHERE clause with nothing reflected, so exploitation is necessarily blind (boolean/time) despite being unauth and critical (see ORM Injection).
  • Keep 0.34.10–0.55.0 CVE-2026-129166 — blind SQLi in the CEL-to-SQL converter; authenticated users with read:alert use result counts as a boolean oracle to read other tenants’ alerts and password hashes.
  • WordPress 7.0 REST batch (Essity) — unauth blind SQLi in NOT IN (...) via batch dispatch desync; confirmed purely by scaled timing (Essity WP batch route confusion).
  • Georgia DCSS (DB2) — unauth time-based blind via the ssn JSON field; paid $25k, plus $20k for the same sink on password reset ($60k Georgia DHS).
  • NASA subdomain (Oracle) — boolean blind behind a UNION-blocking WAF; query leaked by Tomcat stack traces (SQLi at NASA).
  • Bugcrowd private program — time-based asset_id on an SSO-bypassing origin IP, rated P1 (blind SQLi in a private program).
  • EUSurvey ≤1.6 — SurveyService drops unrecognized sort values into the ORDER BY of a native query on GET /dashboard/surveys; a Form Manager uses response timing to read any data the app’s DB account can, beyond their own surveys (advisory).
  • Worklenz < 3.3.0 — time-based blind on projects/status reporting params, reading password hashes.
  • Futurum Software CVE-2026-14571 (CVSS 9.1) — unauth blind SQLi in the auth module, bypassing a misconfigured WAF to exfiltrate PII.

Defenses

Parameterize so no predicate reaches the parser; allow-list identifiers (most blind 2026 CVEs are sort/filter identifiers). Blind SQLi is detectable in logs by anomalous timing patterns and bursts of near-identical requests, and by unexpected outbound DNS from the DB host — monitor for both (detection signals). Disabling the DB host’s outbound network kills the OOB channel.

Sources