
EC-CouncilWeb Application Hacking and Security
Domain 2Objective 2
Command Injection WAHS Practice Questions (Page 3)
Part of the Injection Attacks domain, which makes up ~12% of our current practice bank. EC-Council does not publish an official question count, but from its 360-minute exam (~145–240 total, ~17–29 in this domain), expect 6–10 from this objective — we provide 31 practice questions to prepare you well beyond it. (estimate)
31questions here
7free pages
5concepts
Questions 11–15
- 11
A penetration tester has identified a blind command injection in a web application. The application runs on a Linux server, and the tester wants to exfiltrate the contents of `/etc/passwd`. The application does not return command output, but the web root is writable. Which method is most reliable?
Select an answer first - 12
A security tester is evaluating a web application that passes a 'filename' parameter to a shell command. The application filters out `;`, `&`, and `|`. Which obfuscation technique is most likely to bypass the filter?
Select an answer first - 13
A security architect is reviewing a legacy application that uses user input to construct shell commands. The team has a tight deadline and cannot refactor the code to use safe APIs. Which mitigation strategy provides the best balance of security and effort?
Select an answer first - 14
Which of the following is an example of command injection using a command separator?
Select an answer first - 15
What is the root cause of a command injection vulnerability?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “WAHS” is a trademark of its owner, used for identification only.