CompTIA Security+ SY0-801
Practice question
-
Threats, Vulnerabilities, and Attacks
1. An order-id field starts returning database errors when the input contains a single quote. Which weakness does that behavior suggest?
- AThe query is being built from raw input instead of a bound parameter based on the facts given
- BThe site certificate is self-signed, so browsers cannot chain it to a trusted root for the goal stated here
- CThe session cookie is missing the Secure attribute on the checkout pages
- DThe load balancer keeps each shopper pinned to the same server for the whole visit
Show answer Hide answer
Answer: A. A quote that changes how a query runs is a sign of injection: the input is being treated as part of the command. The other faults are real in other cases, but they do not produce this symptom.
Practice this in the book
CompTIA Security+ SY0-801 Practice Tests. 500 domain-mapped questions plus 2 full 90-question mock exams.
Prices as listed on Amazon; may change. Free with Kindle Unlimited.