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
In time-based blind SQL injection, how does the tester read the answer to a condition?
- From the data printed in the page
- From whether the response is delayed
- From the database version in an error
- 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.
What are typical drawbacks of blind SQL injection from a tester's view?
- It needs many requests to extract small amounts of data
- Time-based results can be distorted by network latency
- It returns whole tables in one response
- It generates a lot of log traffic
- 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.
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.
