
EC-CouncilWeb Application Hacking and Security
Domain 2Objective 3
Remote Code Execution (RCE) WAHS Practice Questions (Page 7)
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 31–35
- 31
Which of the following is a classic example of code injection in a server-side scripting language?
Select an answer first - 32
A web application uses a SQL query to fetch a user's profile: `SELECT * FROM users WHERE id = <input>`. The application is vulnerable to SQL injection, and the database user has `FILE` privilege. The tester wants to achieve RCE by writing a web shell to the web root. Which SQL injection technique is most appropriate?
Select an answer first - 33
Which of the following is an effective mitigation against file upload-based RCE?
Select an answer first - 34
A PHP application has a template engine that allows users to submit custom templates. The application uses `eval()` to render the templates. An attacker submits a template containing `system('id')` and the output is displayed. Which remediation is the most effective?
Select an answer first - 35
Which of the following is a common language-specific function that can be exploited for insecure deserialization?
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.