A system administrator tests a diagnostic page on an internal network dashboard that allows users to test ping utility responses by submitting an IP address. The web application passes the input string directly to a server-side shell script without sanitization. When the administrator inputs `127.0.0.1; cat /etc/passwd`, the output displays the server's user account database. Which of the following application vulnerabilities is present?
- Command InjectionCevap
- BCross-Site Scripting (XSS)
- CBroken Authorization
- DMissing Network Firewall Rule
Cevap
Command Injection occurs when application code concatenates unsanitized user input directly into system shell command strings, enabling unauthorized command execution.
The correct answer identifies Command Injection because the application passes raw user input to a host shell interpreter without sanitization or parameterization. The semicolon metacharacter allows arbitrary secondary OS commands (`cat /etc/passwd`) to execute with the privileges of the web application service account.
Adım Adım Çözüm
Anahtar Kavram
Command Injection (OS Command Injection)