
EC-CouncilWeb Application Hacking and Security
Domain 2Objective 3
Remote Code Execution (RCE) WAHS Practice Questions (Page 9)
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 41–45
- 41
Which of the following is a primary reason why using `eval()` on user-supplied input is dangerous?
Select an answer first - 42
A .NET application uses `BinaryFormatter` to deserialize a session token stored in a cookie. A security review flags this as a deserialization RCE risk. Which remediation is the most appropriate?
Select an answer first - 43
A Java web application deserializes a base64-encoded cookie to restore user session state. The application uses a common library but does not restrict which classes can be deserialized. Which tool would you use to generate a malicious serialized object that executes a command when deserialized?
Select an answer first - 44
A web application has a feature that converts user-supplied URLs into PDFs. The application passes the URL to a command-line tool using `system()` without sanitization. An attacker submits `http://example.com; cat /etc/passwd` and the PDF includes the file contents. Which remediation is the most effective?
Select an answer first - 45
Which of the following is a common technique to identify a command injection vulnerability in a web application?
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.