Timedora
Free Practice Quiz Question List

Injection Vulnerabilities Online Quiz Questions

Use this free practice quiz with 10 questions to review Injection Vulnerabilities, test your knowledge, and prepare for your next test or exam.

10 questions
01
Choose one
1 point

Which situation best describes an injection vulnerability?

  1. A

    Software rejects every input that contains punctuation.

  2. B

    Untrusted data changes the meaning of instructions processed by an interpreter.

  3. C

    A database stores data that came from an internal service.

  4. D

    Software converts user input into a different character encoding.

02
Choose one
1 point

Which example illustrates how injection can occur in a database query?

  1. A

    A supplied username is concatenated into SQL and causes the database to process a different query.

  2. B

    A username is stored in a database as plain data.

  3. C

    A query uses a fixed instruction and separately handles a supplied value as data.

  4. D

    An application displays a username without sending it to an interpreter.

03
Choose one
1 point

What is the core failure that makes injection possible?

  1. A

    Allowing an interpreter to process instructions written by its developer.

  2. B

    Sending any data across a trust boundary.

  3. C

    Failing to reliably preserve the separation between data and control syntax.

  4. D

    Storing user-provided data before it is used.

04
Choose one
1 point

What is a trust boundary in the context of injection?

  1. A

    A place where a database permanently stores information.

  2. B

    A point where data passes from a less-trusted context into a component that may act on it.

  3. C

    A rule that guarantees all internal services are trustworthy.

  4. D

    A point where software converts instructions into data.

05
Choose one
1 point

An application retrieves user content from its database. Which statement about that content is most accurate?

  1. A

    Data is trustworthy once it has been forwarded by an internal service.

  2. B

    Data is trustworthy if it came from a database rather than a form.

  3. C

    Only data from URL parameters can be untrusted.

  4. D

    Stored data may remain untrusted if it originated with an attacker.

06
Choose one
1 point

Which practice is identified as a common way injection vulnerabilities can arise?

  1. A

    Data is validated once, then later used in a different context or after being transformed.

  2. B

    Data is checked in the context where it will be used and remains unchanged.

  3. C

    Data is rejected before it reaches any component that may act on it.

  4. D

    Data is stored without ever being used to construct instructions.

07
Choose one
1 point

Which approach is listed as a common injection-related failure?

  1. A

    Separating data from control syntax in the interpreter’s language.

  2. B

    Treating values from every client as potentially untrusted.

  3. C

    Relying on a denylist of suspicious characters instead of preserving the syntax/data boundary.

  4. D

    Checking how data will be used in its relevant context.

08
Choose one
1 point

Why might a seemingly safe wrapper or stored procedure still contribute to injection?

  1. A

    A stored procedure that never constructs instructions dynamically.

  2. B

    A seemingly safe wrapper that constructs dynamic instructions internally.

  3. C

    An application that keeps user values separate from interpreter syntax.

  4. D

    A component that receives data but does not parse a language.

09
Choose one
1 point

Which statement about interpreters is supported?

  1. A

    Only operating-system shells.

  2. B

    Only databases and directory services.

  3. C

    Only browsers that process markup.

  4. D

    Components that parse a language, including databases, shells, browsers, and directory services.

10
Choose one
1 point

Which set of possible effects can an injection flaw have?

  1. A

    It may expose or alter data, bypass controls, or change program behavior.

  2. B

    It always causes the application to stop running immediately.

  3. C

    It can affect only the appearance of a browser page.

  4. D

    It affects data only when that data has been stored in a database.