Question 130
A search endpoint concatenates raw query text into SQL statements. What outcome is consistent with the correct authorized test?
Explanation
Correct Answer
A benign metacharacter test is treated as data without changing query logic. This answer directly addresses the described constraint. Data must not be interpreted as SQL syntax during query construction. Successful validation requires: A benign metacharacter test is treated as data without changing query logic.
Incorrect Answers
It would address a theme installer accepts an external URL that is included into server-side code execution. The relevant reason in that case is: Server execution should not import untrusted remote code. Here the required success condition is a benign metacharacter test is treated as data without changing query logic. The relevant evidence is: A benign metacharacter test is treated as data without changing query logic.
This result applies to a different case: A customer message displays unsanitized HTML that executes inside another user's browser. Untrusted content can cross the browser's code/data boundary. It does not establish the present requirement, where a benign metacharacter test is treated as data without changing query logic. The relevant evidence is: A benign metacharacter test is treated as data without changing query logic.
That relates to a different issue: A REST API silently processes unsupported HTTP methods as privileged operations. Method confusion can expose operations not covered by UI controls. That is not a direct remedy for the requested outcome: A benign metacharacter test is treated as data without changing query logic. The relevant evidence is: A benign metacharacter test is treated as data without changing query logic.