312-50 ยท SQL injection
Blind and out-of-band SQL injection
Boolean-based and time-based blind injection, out-of-band channels, second-order injection.
Key points
- Blind: no data or errors shown, so the tester infers answers.
- Boolean-based: compares page behaviour for true and false conditions.
- Time-based: the database delays its reply when a condition is true.
- Out-of-band: data via another channel, e.g. a DNS or HTTP request from the database server.
- Second-order: payload stored safely first, triggered later when another query reuses it unsafely.
Practice questions
In time-based blind injection, how does the tester learn that a condition is true?
- The database prints the data in the page
- The response is delayed by an injected sleep or wait call
- The server returns HTTP 500 with a stack trace
- The attacker receives an email from the database
Show answer
Answer: B. The response is delayed by an injected sleep or wait call
A true condition triggers a deliberate delay, so response time carries the answer. Visible errors would make it in-band.
Which are characteristics of blind SQL injection?
- The application does not return query results or errors
- Data is inferred one true/false answer at a time
- Time delays can carry the answer
- Query output is printed straight into the page
- It needs only one request to dump a database
Show answer
Answer: A. The application does not return query results or errors, B. Data is inferred one true/false answer at a time, C. Time delays can carry the answer
Blind injection infers data from behaviour, usually needs many requests, and may rely on timing. It does not show query output directly.
If an application hides all database errors, it cannot be vulnerable to SQL injection.
Show answer
Answer: False
False. Hiding errors only blocks error-based leakage; blind and out-of-band techniques still work, so the root cause must be fixed.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
