
EC-CouncilWeb Application Hacking and Security
Domain 2Objective 3
Remote Code Execution (RCE) WAHS Practice Questions (Page 2)
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 46 practice questions to prepare you well beyond it. (estimate)
46questions here
10free pages
8concepts
Questions 6–10
- 6
Which of the following is a primary mitigation against command injection vulnerabilities?
Select an answer first - 7
How can an injection flaw lead to remote code execution on a web server?
Select an answer first - 8
A web application has a network diagnostic page that accepts an IP address and displays the ping output. During a penetration test, you submit `127.0.0.1; whoami` and the response includes the web server's user account. Which remediation would most directly prevent this attack while preserving the page's functionality?
Select an answer first - 9
A legacy PHP application has multiple injection points: a command injection in a ping tool, a code injection via eval() in a template engine, and an insecure file upload that stores files under the web root. The team must prioritize a single mitigation that reduces the most risk across all three vulnerabilities, given limited development resources. Which mitigation should be implemented first?
Select an answer first - 10
A Python Flask application has an endpoint that evaluates a user-supplied arithmetic expression using `eval()`. A developer wants to keep the feature but prevent code execution. Which approach is the safest?
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.