CAPEC-7 / ATTACK-PATTERN
Blind SQL Injection
Blind SQL Injection results from an insufficient mitigation for SQL Injection. Although suppressing database error messages are considered best practice, the suppression alone is not sufficient to prevent SQL Injection. Blind SQL Injection is a form of SQL Injection that overcomes the lack of error messages. Without the error messages that facilitate SQL Injection, the adversary constructs input strings that probe the target through simple Boolean SQL expressions. The adversary can determine if the syntax and structure of the injection was successful based on whether the query was executed or not. Applied iteratively, the adversary determines how and where the target is vulnerable to SQL Injection.
- Category
- CAPEC patterns
- Version / scope
- CAPEC 3.9; release 2023-01-24; publisher status Draft
- Affected / relevant technologies
- Platform scope not specified separately in this source
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
SQL queries used by the application to store, retrieve or modify data. User-controllable input that is not properly validated by the application as part of SQL queries.
Potential impact
Integrity Modify Data Confidentiality Read Data Confidentiality Integrity Availability Execute Unauthorized Commands Run Arbitrary Code
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: CAPEC 3.9; release 2023-01-24; publisher status Draft. Source checked: 2026-11-18.
Source object: CAPEC-7. Object modified: 2022-09-29.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- The only indicators of successful Blind SQL Injection are the application or database logs that show similar queries with slightly differing logical conditions that increase in complexity over time. However, this requires extensive logging as well as knowledge of the queries that can be used to perform such injection and return meaningful information from the database.
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Security by Obscurity is not a solution to preventing SQL Injection. Rather than suppress error messages and exceptions, the application must handle them gracefully, returning either a custom error page or redirecting the user to a default page, without revealing any information about the database or the application internals.
- Strong input validation - All user-controllable input must be validated and filtered for illegal characters as well as SQL content. Keywords such as UNION, SELECT or INSERT must be filtered in addition to characters such as a single-quote(') or SQL-comments (--) based on the context in which they appear.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Related security reading
Continue directly to another reference. Editorial reading connections do not assert official CWE/CAPEC/ATT&CK/OWASP equivalence or mappings.
- CWE-89 — Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (weakness)
- CWE-209 — Generation of Error Message Containing Sensitive Information (weakness)
- CWE-74 — Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (weakness)
- CWE-20 — Improper Input Validation (weakness)
- OWASP WSTG — Web Security Testing Guide (guidance)
Publisher-defined relationships
These directed relationships come from the pinned publisher data. They describe framework context, not guaranteed prevention, detection coverage or equivalence between entities.
- CAPEC-7 → related-weakness → CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- CAPEC-7 → related-weakness → CWE-209: Generation of Error Message Containing Sensitive Information
- CAPEC-7 → related-weakness → CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CAPEC-7 → related-weakness → CWE-20: Improper Input Validation
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CAPEC-7 → ChildOf → CAPEC-66 Open related reference
- CAPEC-7 → Related_Weakness → CWE-20 Open related reference
- CAPEC-7 → Related_Weakness → CWE-209 Open related reference
- CAPEC-7 → Related_Weakness → CWE-697 Open related reference
- CAPEC-7 → Related_Weakness → CWE-707 Open related reference
- CAPEC-7 → Related_Weakness → CWE-74 Open related reference
- CAPEC-7 → Related_Weakness → CWE-89 Open related reference
- CWE-20 → Related_Attack_Pattern → CAPEC-7 Open related reference
- CWE-209 → Related_Attack_Pattern → CAPEC-7 Open related reference
- CWE-697 → Related_Attack_Pattern → CAPEC-7 Open related reference
- CWE-707 → Related_Attack_Pattern → CAPEC-7 Open related reference
- CWE-74 → Related_Attack_Pattern → CAPEC-7 Open related reference
- CWE-89 → Related_Attack_Pattern → CAPEC-7 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- Publisher reference: CAPEC-7 — source accessed 2026-11-18
- capec — source accessed 2026-11-18
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
