Question 590
At Brookside Manufacturing, the industrial security team is conducting a plant safety and IT security assessment under requirements for production continuity and controlled test windows. The team now needs objective retest evidence for: A search endpoint attempts to escape SQL syntax manually with string replacement and fails under a different database driver. Which result BEST demonstrates successful remediation?
Explanation
Correct Answer
Equivalent benign input is handled safely across supported drivers without SQL syntax reinterpretation. The observable result demonstrates that the documented condition, A search endpoint attempts to escape SQL syntax manually with string replacement and fails under a different database driver. has been addressed. The planned remediation is: Use driver-supported prepared statements or bound parameters rather than custom escaping rules. This is a stronger validation than a saved ticket or unverified claim by Brookside Manufacturing.
Incorrect Answers
Anonymous users see a neutral error while investigators can locate the corresponding protected record. That observation would verify another scenario: A backend catches database errors but returns the full SQL statement and stack trace to unauthenticated web clients. The corrective step for that other scenario is: Suppress sensitive query details in public responses and preserve actionable traces in restricted diagnostic logs. But Brookside Manufacturing is evaluating: A search endpoint attempts to escape SQL syntax manually with string replacement and fails under a different database driver. The necessary outcome is: Equivalent benign input is handled safely across supported drivers without SQL syntax reinterpretation.
Permitted searches work and controlled input variations do not alter the intended database operation. That observation would verify another scenario: A team believes that blocking apostrophes alone guarantees protection against SQL injection across the application. The corrective step for that other scenario is: Apply parameterization, restricted database privileges and layered validation instead of relying on character blacklists. But Brookside Manufacturing is evaluating: A search endpoint attempts to escape SQL syntax manually with string replacement and fails under a different database driver. The necessary outcome is: Equivalent benign input is handled safely across supported drivers without SQL syntax reinterpretation.
A harmless quote-containing search value is treated as data and does not change SQL query structure. That observation would verify another scenario: A web developer constructs a database search query by concatenating untrusted customer input directly into SQL text. The corrective step for that other scenario is: Use parameterized queries with bound values and validate input types rather than assembling SQL with raw strings. But Brookside Manufacturing is evaluating: A search endpoint attempts to escape SQL syntax manually with string replacement and fails under a different database driver. The necessary outcome is: Equivalent benign input is handled safely across supported drivers without SQL syntax reinterpretation.