Blind SQL Injection
A SQL injection technique where query results are not directly visible, requiring attackers to infer data by analyzing application behavior or response timing.
Blind SQL Injection occurs when an application is vulnerable to SQL injection but the results of the query are not returned in the response. Attackers must infer information by asking the database true/false questions or measuring response times.
How It Works
Since the attacker cannot see query results directly, they craft queries that cause observable differences in application behavior based on whether a condition is true or false. This allows extraction of data one bit or character at a time.
Types of Blind SQLi
- Boolean-based: Different responses for true/false conditions
- Time-based: Using delays (SLEEP, WAITFOR) to infer results
- Error-based: Forcing errors that reveal information
Prevention
- Use parameterized queries (prepared statements)
- Same protections as regular SQL injection
- Implement rate limiting to slow extraction
- Use consistent error handling