Bypassing Input Filters in SQL Injection
Short answer
C The hacker attempts to bypass the special character filter by encoding his malicious input, which could potentially enable him to successfully inject damaging SQL queries.
Question
Key Takeaways
The test focuses on evasion techniques against input validation, specifically highlighting the use of encoding to bypass filters rather than changing the attack vector type.
This question explores how attackers bypass input sanitization filters during SQL Injection attacks. It establishes that encoding is the primary strategy for circumventing special character filtering.
Common mistake: Many learners might choose B (Time-based Blind) assuming the filter blocks direct data extraction, but the question specifies the attacker intends to use UNION and just needs to bypass the filter.
Expert Analysis
Why the Answer Is Correct
The correct answer is C because the scenario explicitly states that the application filters special characters, which are essential for constructing standard SQL injection payloads. Encoding (such as URL encoding or hex encoding) allows the attacker to represent these special characters in a different format that passes through the initial filter while being interpreted correctly by the database engine. This directly addresses the obstacle presented in the question without requiring a change in the fundamental attack method (UNION-based).
Why the Other Options Are Wrong
Option A is incorrect because triggering errors typically requires specific syntax that would likely be caught by the same filter, and error-based injection is often distinct from the stated UNION intent. Option B suggests switching to time-based blind injection, which is a completely different technique used when no output is visible; however, the attacker's goal here is to use UNION, not switch tactics entirely. Option D involves a destructive command (DROP TABLE) which is less likely to be the immediate 'trick' for login bypass and still suffers from the same filtering issue unless encoded.
Community Comment Notes
The community consensus strongly supports option C. One user noted that "the attacker must overcome it somehow - C) Using encoding to avoid blocking," highlighting the direct link between the filter and the solution. Another comment emphasized that the key detail is the input sanitization, making encoding the necessary step to proceed with the UNION attack.
Exam Strategy
When a question mentions input filtering or sanitization, always consider encoding or obfuscation techniques as the primary bypass method before considering a change in attack vector.
Frequently Asked Questions
Why not switch to Time-Based Blind SQL Injection?
How does encoding help bypass SQL filters?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
91a0021 👍 3 Answered CThe key details in the question indicate: The attacker is using UNION-based SQL Injection. This means the goal is to extract data directly rather than relying on indirect inference techniques like time-based delays. The application filters special characters. The hacker’s immediate problem is bypassing the input sanitization, not dealing with a lack of visible outpu
-
NikoTomas 👍 1 Answered CFor sure C. As stated in the question, the input sanitization is in place, so the attacker must overcome it somehow - C) Using encoding to avoid blocking of unallowed special characters and/or keywords.
-
Gibsomd 👍 1 Answered CYour application already filters special characters in user inputs, which is an effective measure against traditional SQL Injection attacks.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.