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 (')…
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)- A79% (41)
- B4% (2)
- C6% (3)
- D12% (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
Community Discussion
No community discussion yet for this question.