nerdexam
EC-Council

312-50V12 · Question #48

Ethical hacker Jane Smith is attempting to perform an SQL injection attack. She wants to test the response time of a true or false response and wants to use a second command to determine whether the d

The correct answer is D. Time-based and boolean-based. Jane Smith needs to test response time (time-based SQLi) and determine true/false results for user IDs (boolean-based SQLi), which are both blind SQL injection techniques.

Submitted by jaden.t· Mar 4, 2026Web Application Hacking

Question

Ethical hacker Jane Smith is attempting to perform an SQL injection attack. She wants to test the response time of a true or false response and wants to use a second command to determine whether the database will return true or false results for user IDs. Which two SQL injection types would give her the results she is looking for?

Options

  • AOut of band and boolean-based
  • BUnion-based and error-based
  • CTime-based and union-based
  • DTime-based and boolean-based

How the community answered

(41 responses)
  • A
    5% (2)
  • B
    2% (1)
  • C
    10% (4)
  • D
    83% (34)

Why each option

Jane Smith needs to test response time (time-based SQLi) and determine true/false results for user IDs (boolean-based SQLi), which are both blind SQL injection techniques.

AOut of band and boolean-based

Out-of-band SQL injection relies on the database server's ability to make external network requests (e.g., DNS or HTTP) to exfiltrate data, which does not match the requirement of testing response times or true/false responses.

BUnion-based and error-based

Union-based SQL injection appends additional SELECT queries to retrieve data directly in the response, and error-based relies on database error messages to extract information-neither tests response time or boolean true/false conditions as described.

CTime-based and union-based

While time-based is correct for testing response times, union-based SQL injection retrieves data by combining results from multiple SELECT statements in the visible output, not by determining true/false conditions for user IDs.

DTime-based and boolean-basedCorrect

Time-based SQL injection uses commands like SLEEP() or WAITFOR DELAY to measure response time differences, directly addressing her need to test response times. Boolean-based SQL injection sends queries that return true or false results based on conditions, allowing her to determine whether specific user IDs exist by observing different page responses. Together, these two blind SQL injection techniques fulfill both of her stated testing objectives.

Concept tested: Blind SQL injection types: time-based and boolean-based

Source: https://owasp.org/www-community/attacks/Blind_SQL_Injection

Topics

#SQL injection#Time-based SQLi#Boolean-based SQLi#Web application vulnerabilities

Community Discussion

No community discussion yet for this question.

Full 312-50V12 Practice