nerdexam
Cisco

200-201 · Question #162

Which type of attack involves executing arbitrary commands on the operating system to escalate privileges?

The correct answer is C. command injection. Command injection is an attack where an attacker executes arbitrary operating system commands through a vulnerable application, often to gain control or escalate privileges on the server.

Submitted by deeparc· Mar 6, 2026Security Concepts

Question

Which type of attack involves executing arbitrary commands on the operating system to escalate privileges?

Options

  • AApache log
  • Bcross-site scripting
  • Ccommand injection
  • DSQL injection

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    86% (25)
  • D
    7% (2)

Why each option

Command injection is an attack where an attacker executes arbitrary operating system commands through a vulnerable application, often to gain control or escalate privileges on the server.

AApache log

'Apache log' is not an attack type; Apache logs are files that record web server activity.

Bcross-site scripting

Cross-site scripting (XSS) is a client-side attack that injects malicious scripts into web pages viewed by other users, impacting their browsers, not typically executing commands directly on the server's operating system for privilege escalation.

Ccommand injectionCorrect

Command injection, also known as OS command injection, occurs when an attacker can inject and execute arbitrary operating system commands through an insecure application that directly passes user-supplied input to a system shell. If the vulnerable application runs with elevated privileges, the injected commands can inherit those privileges, enabling privilege escalation and full system compromise.

DSQL injection

SQL injection targets a database by injecting malicious SQL code into input fields, aiming to manipulate or extract database information, not to execute arbitrary commands on the underlying operating system.

Concept tested: Command injection attack mechanics

Source: https://owasp.org/www-community/attacks/Command_Injection

Topics

#command injection#privilege escalation#web application attacks

Community Discussion

No community discussion yet for this question.

Full 200-201 Practice