nerdexam
GIAC

GCIH · Question #421

When launching a SQL Injection attack, what characters might an attacker start experimenting with first?

The correct answer is A. Quotes (', ", etc.). SQL injection testing typically begins with quote characters because they are used to break out of string context in SQL queries and reveal parsing errors.

Web Application Attacks & Post-Exploitation

Question

When launching a SQL Injection attack, what characters might an attacker start experimenting with first?

Options

  • AQuotes (', ", etc.)
  • BAlphabetic characters
  • CNumeric characters
  • DPercents (%)

How the community answered

(50 responses)
  • A
    92% (46)
  • B
    4% (2)
  • C
    2% (1)
  • D
    2% (1)

Why each option

SQL injection testing typically begins with quote characters because they are used to break out of string context in SQL queries and reveal parsing errors.

AQuotes (', ", etc.)Correct

Single quotes (') are the most common starting point for SQL injection probing because SQL uses them as string delimiters. Inserting a single quote into an input field can break the SQL string context, causing a database error that confirms the parameter is vulnerable and unsanitized. This error-based discovery technique is a foundational step in manual SQL injection testing.

BAlphabetic characters

Alphabetic characters are treated as ordinary string data by SQL parsers and do not disrupt query syntax or reveal injection vulnerabilities.

CNumeric characters

Numeric characters are valid SQL literals and do not break query syntax unless used in specific arithmetic-based blind injection contexts, making them a secondary technique, not the first step.

DPercents (%)

Percent signs are wildcard characters in SQL LIKE clauses but do not break string delimiters or cause syntax errors used to identify injection points.

Concept tested: SQL injection initial probing with quote characters

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

Topics

#SQL injection#special characters#input manipulation#web attacks

Community Discussion

No community discussion yet for this question.

Full GCIH Practice