Which Two Options Are Code Injection Vulnerabilities?
What are two examples of code injection vulnerabilities? (Choose two.)
Community Insight
The exam tests Cisco's specific “code injection” category rather than the broader injection list; the trap is choosing arbitrary command injection (E) because it sounds like executable code.
Code injection vulnerabilities occur when an application executes attacker-supplied statements; for this SCOR item, the two answers are cross-site scripting (B) and SQL injection (D). The page explains why command injection and XXE are tempting but not the requested pair.
The common error is selecting arbitrary command injection (E) from the OCG's general injection list, even though SCOR separates command injection from code injection.
Community Discussion (10 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Cross-site scripting (B) and SQL injection (D) are the two options that match Cisco's code-injection framing. XSS inserts attacker-controlled script into a trusted page, so the victim's browser executes it; SQL injection inserts SQL fragments into a query and changes what the backend database executes. In the SCOR discussion, XanALaOM00 captured the exam reality by advising learners to "Choose B and D" and noting no official XXE reference, while XBfoundX highlighted that "Command injection is not the same as code execution and code injection." These are both code-level injection paths, not mere session or credential theft.Why the Other Options Are Wrong
XML external entity injection (A) is an XML parser injection that can leak files or trigger SSRF, but Cisco's SCOR code-injection examples do not make it the answer here; it is a different injection class. Session hijacking (C) steals or reuses an existing session token and does not insert executable code into an application. Arbitrary command injection (E) is the strongest distractor: it is an injection vulnerability in the broad OCG list, but the same SCOR guide distinguishes command injection from code execution and code injection, so it is not one of the two requested here. diverjim64's page-31 citation reflects the broader injection list, not Cisco's narrower "code injection" wording.Community Comment Notes
Several learners split on this ambiguous item. XanALaOM00 strongly recommended B and D and complained that XXE lacked an official material reference; Redou2201 also picked B and D and linked an external code-injection guide. XBfoundX supplied the key rebuttal to E, quoting that command injection is distinct from code injection, while Pierre_Bouvier argued for A and D by treating XXE as a code-injection example. diverjim64's "D and E for sure (p. 31 OCG)" is understandable because the OCG page lists SQL, HTML, and command injection as injection vulnerabilities, but the question's "code injection" wording and page-33 distinction keep E out.Official Reference
Exam Strategy
When Cisco asks for code injection, separate it from the broader injection list: XSS and SQLi are the code-injection pair. Do not let “command injection” pull you to E; SCOR treats it as a separate injection category.
Frequently Asked Questions
Why is arbitrary command injection not one of the code injection answers?
Cisco's SCOR material treats command injection as a separate injection category from code injection, so E is a trap even though it sounds like code execution.
Is XML external entity injection a code injection vulnerability?
XXE is an XML parser injection used for data disclosure or SSRF, but Cisco's exam material does not list it among the code injection examples here.