Courseiva
Vulnerability ManagementhardMultiple SelectObjective-mapped

CS0-003 Vulnerability Management Practice Question

A security analyst is reviewing the results of a web application vulnerability scan and needs to identify the vulnerabilities that are part of the OWASP Top 10 (2021) category 'Injection'. Which THREE of the following vulnerabilities fall under this category? (Select THREE.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

SQL injection

SQL injection, Cross-Site Scripting (XSS), and OS command injection are all types of injection flaws. XXE is also injection, but it is often listed separately; however, in OWASP Top 10 2021, Injection includes XSS, SQL injection, etc. Broken access control is a separate category.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • SQL injection

    Why this is correct

    SQL injection is an injection flaw that occurs when untrusted data is directly concatenated into SQL queries, allowing attackers to manipulate database logic. For example, an attacker can submit a value like `' OR '1'='1` to bypass authentication or extract sensitive data. This happens because user input is not parameterized or properly sanitized before being sent to the database interpreter.

  • OS command injection

    Why this is correct

    OS command injection is an injection flaw that allows an attacker to execute arbitrary operating system commands on the server by injecting command syntax through application inputs. This typically occurs when input is passed to shell execution functions like `system()` or `exec()` without proper validation or escaping. An attacker might append `; rm -rf /` or `| whoami` to a parameter, causing the application to unintentionally run those commands.

  • Broken Access Control

    Why it's wrong here

    Broken Access Control is a separate vulnerability category, not an injection flaw. It arises when an application fails to enforce restrictions on what authenticated users can access or do, such as viewing other users' private data or performing unauthorized functions. Unlike injection attacks, it does not involve sending malicious interpretable code; instead, it relies on manipulating requests, URLs, or client-side state to bypass authorization checks.

  • Cross-Site Scripting (XSS)

    Why this is correct

    Cross-Site Scripting (XSS) is a type of injection attack where an attacker injects malicious client-side scripts, often JavaScript, into web pages that are then viewed by other users. This occurs when user input is embedded in HTML output without proper encoding, allowing the script to execute in a victim's browser. XSS is an injection flaw because untrusted data is sent to the HTML/JavaScript interpreter, but it targets the client side rather than server-side databases or shells.

  • Security Misconfiguration

    Why it's wrong here

    Security Misconfiguration is a separate vulnerability category and not an injection flaw. It results from insecure default configurations, incomplete setups, open cloud storage, verbose error messages, or unnecessary enabled features. This category does not involve injecting malicious input into an interpreter; rather, it happens because the application or its environment is not securely configured, leaving doors open for various types of attacks.

Go deeper

Related to this question

About these practice questions

One of 236 original CS0-004 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CS0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CS0-004 exam.