Bitzu

CPSA ยท Web testing techniques

Blind SQL injection

Boolean and time-based inference when no data or errors are shown.

Key points

  • The application is injectable but returns neither query results nor database errors.
  • Boolean-based inference asks yes/no questions and reads the answer from a visible difference (a message appears or not, a row is present or not).
  • Time-based inference makes the database delay only when the condition is true, so the answer is read from response time.
  • Data is recovered one small fact at a time, which is why tools automate it.

Source: https://portswigger.net/web-security/sql-injection/blind

Practice questions

Single choice

In time-based blind SQL injection, how does the tester read the answer to a condition?

  1. From the data printed in the page
  2. From whether the response is delayed
  3. From the database version in an error
  4. From the size of the TLS certificate
Show answer

Answer: B. From whether the response is delayed

The injected condition triggers a delay only when true, and the response time carries the answer.

Select all that apply

What are typical drawbacks of blind SQL injection from a tester's view?

  1. It needs many requests to extract small amounts of data
  2. Time-based results can be distorted by network latency
  3. It returns whole tables in one response
  4. It generates a lot of log traffic
  5. It works only against HTTPS sites
Show answer

Answer: A. It needs many requests to extract small amounts of data, B. Time-based results can be distorted by network latency, D. It generates a lot of log traffic

Blind extraction is slow (many requests, one fact each), noisy in logs and sensitive to network jitter for time-based tests. It does not give instant bulk output.

True or false

Because blind SQL injection shows no data, it is a low-severity issue.

Show answer

Answer: False

False. Attackers can still extract the full database character by character, so impact can equal visible SQL injection; it is merely slower.

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 CPSA topics in this module