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.
Question
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)- A5% (2)
- B2% (1)
- C10% (4)
- D83% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.