Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
EC-Council logo

EC-CouncilWeb Application Hacking and Security

Domain 2Objective 2

Command Injection WAHS Practice Questions (Page 1)

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 1–5

  1. 1application · medium

    A company's web application has a legacy feature that executes a system command based on a filename selected from a dropdown list. The filenames are hardcoded on the server. Which of the following is the most secure way to refactor this feature?

    Select an answer first
  2. 2application · medium

    A web application has a feature that allows users to download a file by passing a filename to a shell command. The developer used `os.system("cat " + filename)`. A security audit flags this as vulnerable. Which remediation is most effective?

    Select an answer first
  3. 3foundation · easy

    Which of the following is the most effective mitigation against command injection?

    Select an answer first
  4. 4application · hard

    A web application filters out `;`, `|`, `&`, and spaces from user input before passing it to a shell command. Which obfuscation technique could still allow command injection?

    Select an answer first
  5. 5application · medium

    A developer is fixing a command injection vulnerability in a tool that pings user-supplied IP addresses. The application must accept both IPv4 and IPv6 addresses. Which mitigation approach is most effective?

    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.