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

EC-CouncilWeb Application Hacking and Security

Domain 2Objective 3

Remote Code Execution (RCE) 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 46 practice questions to prepare you well beyond it. (estimate)

46questions here
10free pages
8concepts

Questions 1–5

  1. 1expert · hard

    A PHP application uses `preg_replace` with the `/e` modifier to perform a search-and-replace on user input. The developer is aware of the risk and has added a filter that removes the characters `;`, `|`, and `&`. Which payload could still achieve code execution?

    Select an answer first
  2. 2application · medium

    A web application allows users to upload PDF files that are then stored on the server. A security audit finds that the application checks only the file extension and content-type header. Which additional control would most effectively reduce the risk of RCE via file upload?

    Select an answer first
  3. 3expert · hard

    A Ruby on Rails application has a legacy endpoint that uses `eval()` to process a user-supplied mathematical formula. The application is deployed on a shared hosting environment where the web server runs as a low-privileged user. A developer proposes to replace `eval()` with a safe arithmetic parser. Which additional control would be most important to implement as defense-in-depth?

    Select an answer first
  4. 4expert · hard

    A Java application deserializes a cookie that contains a serialized object. The development team wants to prevent deserialization attacks without breaking existing functionality. They have identified that the application only needs to deserialize a few known classes. Which approach is the most secure and practical?

    Select an answer first
  5. 5expert · hard

    A Java application deserializes objects from a message queue. The application uses a custom `ObjectInputStream` that overrides `resolveClass()` to allow only classes in a specific package. A penetration tester finds a gadget chain that uses a class from that package. Which of the following is the most effective mitigation?

    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.