nerdexam
CompTIA

PT0-002 · Question #442

During a security assessment of a web application, a penetration tester was able to generate the following application response: Unclosed quotation mark after the character string Incorrect syntax…

The correct answer is A. SQL injection. These error messages are characteristic Microsoft SQL Server (T-SQL) syntax errors that surface when a submitted input breaks the underlying SQL query's string parsing. The message 'Unclosed quotation mark after the character string' appears when an injected single quote (')…

Vulnerability discovery and analysis

Question

During a security assessment of a web application, a penetration tester was able to generate the following application response:

Unclosed quotation mark after the character string Incorrect syntax near ". Which of the following is the most probable finding?

Options

  • ASQL injection
  • BCross-site scripting
  • CBusiness logic flaw
  • DRace condition

How the community answered

(52 responses)
  • A
    79% (41)
  • B
    4% (2)
  • C
    6% (3)
  • D
    12% (6)

Explanation

These error messages are characteristic Microsoft SQL Server (T-SQL) syntax errors that surface when a submitted input breaks the underlying SQL query's string parsing. The message 'Unclosed quotation mark after the character string' appears when an injected single quote (') terminates the SQL string literal prematurely, and 'Incorrect syntax near' indicates the resulting query is malformed. Both messages are classic indicators of SQL injection vulnerability - specifically error-based SQL injection - where the application is passing unsanitized user input directly into a SQL query. XSS (B), business logic flaws (C), and race conditions (D) do not produce database-level syntax errors.

Topics

#SQL injection#Web application security#Vulnerability identification#Error message analysis

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice