CompTIA Security+ SY0-801

Practice question

  1. 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?

    1. AThe query is being built from raw input instead of a bound parameter based on the facts given
    2. BThe site certificate is self-signed, so browsers cannot chain it to a trusted root for the goal stated here
    3. CThe session cookie is missing the Secure attribute on the checkout pages
    4. 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.

Previous Next