- Home
- All questions
- Question 470
CompTIA Security+ study material · question 470 of 611
An application passes user input into a shell command. What is the most reliable fix?
Show the answer
Answer: D. Avoid the shell entirely and invoke the program with an argument list
Escaping is fragile across shells; removing the interpreter removes the injection surface. Lower privilege only limits impact.
Source: OWASP Input Validation Cheat Sheet (OWASP) — OWASP Input Validation Cheat Sheet › Validation