Bitzu

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

Single choice

In time-based blind injection, how does the tester learn that a condition is true?

  1. The database prints the data in the page
  2. The response is delayed by an injected sleep or wait call
  3. The server returns HTTP 500 with a stack trace
  4. 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.

Select all that apply

Which are characteristics of blind SQL injection?

  1. The application does not return query results or errors
  2. Data is inferred one true/false answer at a time
  3. Time delays can carry the answer
  4. Query output is printed straight into the page
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module