Types of SQL Injection Attacks
Which THREE of the following are types of SQL injection attacks? (Select 3)
Quick Answer
The answer is Out-of-band SQL injection, along with In-band SQL injection and Blind SQL injection, which are the three primary types of SQL injection attacks recognized on the CEH exam. Out-of-band attacks rely on a different communication channel—such as DNS or HTTP requests—to exfiltrate data when the database cannot return results directly or synchronously, making it distinct from the other two categories. On the Certified Ethical Hacker exam, this classification tests your ability to distinguish between attack vectors based on how data is retrieved: in-band uses the same channel for attack and results, blind relies on inferential responses like boolean or time-based triggers, and out-of-band uses an alternative channel. A common trap is confusing blind SQL injection with out-of-band, but remember that blind attacks still use the primary response channel for inference, whereas out-of-band requires a separate protocol. Memory tip: think "Same, Side, Silent" for In-band, Out-of-band, and Blind.
⚠ Common exam trap
Many exam-takers confuse 'DOM-based' (an XSS attack) with a SQL injection type, or mistakenly think 'Stored SQL injection' is a primary category, when the CEH exam strictly recognizes in-band, blind, and out-of-band as the three main types of SQL injection attacks.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Blind SQL injection (boolean-based, time-based)
Blind SQL injection (C) is a recognized SQLi type where the attacker gets no direct data in the response and instead infers information via boolean true/false queries or time delays (e.g., WAITFOR DELAY, SLEEP). In-band SQL injection (D) is the classic SQLi category where results are returned through the same channel used to inject, typically via error-based or UNION-based techniques. Out-of-band SQL injection (E) is also a valid SQLi type that uses a different channel (e.g., DNS or HTTP requests via xp_dirtree or UTL_HTTP) to exfiltrate data when in-band and blind methods are not viable. The other options do not belong: DOM-based SQL injection (A) is not a SQLi category (DOM-based is a type of XSS), and stored SQL injection (B) is not a standard SQLi classification (stored XSS is a distinct vulnerability).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
DOM-based SQL injection
Why it's wrong here
DOM-based SQL injection is not a SQL injection type; it is a client-side vulnerability where JavaScript sinks execute attacker-controlled input in the browser, never reaching a database. It is tempting because the name contains "SQL injection", but DOM-based flaws belong to cross-site scripting classes, not the in-band, blind or out-of-band SQLi categories the exam expects.
- ✗
Stored SQL injection
Why it's wrong here
Stored is a type of XSS; SQL injection is categorized by technique.
- ✓
Blind SQL injection (boolean-based, time-based)
Why this is correct
Blind SQL injection extracts data without visible output or errors, relying on boolean true/false responses or deliberate time delays to infer database contents. This distinct technique satisfies the question's requirement for a recognised SQL injection category, alongside in-band and out-of-band variants.
- ✓
In-band SQL injection (error-based, union-based)
Why this is correct
In-band SQL injection uses the same communication channel for both attack delivery and result retrieval, with error-based and union-based techniques as its subcategories. This satisfies the question's requirement for a recognised SQL injection type, distinct from blind and out-of-band categories.
- ✓
Out-of-band SQL injection
Why this is correct
Out-of-band SQL injection exfiltrates data through a separate channel such as DNS or HTTP requests to an attacker-controlled server, used when in-band and blind techniques are impractical. This satisfies the question's requirement for a recognised SQL injection category.
Go deeper
Related to this question
Learn chapter
SQL Injection
Key term
Cross Site Scripting XSS
Cross Site Scripting (XSS) is a web security vulnerability where an attacker injects malicious scripts into web pages viewed by other users, enabling theft of data or session hijacking.
Key term
SQL injection
SQL injection is a web security vulnerability that allows an attacker to interfere with the queries an application makes to its database, often to read, modify, or destroy data.
About these practice questions
This CEH question is part of Courseiva's 913-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on CEH
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A penetration tester attempts a SQL injection on a login form and receives no error messages, but notices a delay in the server response when injecting ' OR SLEEP(5)--. Which type of SQL injection is this?
medium- A.Union-based SQL injection
- B.Boolean-based blind SQL injection
- ✓ C.Time-based blind SQL injection
- D.Error-based SQL injection
Why C: Time-based blind SQL injection relies on inducing a time delay to infer the truth of a condition, as no error or data is returned.
You might also like
Similar CEH questions
- Which of the following is a common defense against clickjacking attacks?
- A security analyst notices that a web application uses sequential numeric IDs for user accounts (e.g., /profile?id=1001)…
- Which of the following is a common indicator of a stored (persistent) Cross-Site Scripting (XSS) attack?
- Which of the following is the BEST defense against Cross-Site Request Forgery (CSRF) attacks?
- A penetration tester finds that a web application includes files based on user input without proper validation. The test…
Written by Johnson Ajibi, MSc IT Security
Security Systems Architect · founder of Courseiva
This CEH practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CEH exam.