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 8)

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 36–40

  1. 36foundation · easy

    Which of the following is a common indicator that a file upload feature could be exploited for remote code execution?

    Select an answer first
  2. 37application · medium

    A web application allows users to upload profile images. The upload handler checks the file extension against a whitelist (.jpg, .png, .gif) and stores files under the web root. During testing, you upload a file named `avatar.php.jpg` and the server returns a 200 OK. Which additional condition would make this upload a viable RCE vector?

    Select an answer first
  3. 38expert · hard

    A web application uses XPath queries to retrieve user profile data from an XML document. The application concatenates user input into the XPath expression. An attacker injects `' or '1'='1` into a search field. Which of the following is the most likely impact?

    Select an answer first
  4. 39application · medium

    A PHP application uses `eval()` to process a user-supplied mathematical expression in a calculator feature. The developer believes input validation blocks dangerous characters, but you find that the filter only removes `<script>` tags. Which payload would most likely achieve code execution?

    Select an answer first
  5. 40application · medium

    A PHP-based CMS allows authenticated editors to upload images. A tester uploads a file named `avatar.php` with a GIF header and PHP code, then accesses `/uploads/avatar.php` and sees the code execute. Which combination of controls would most effectively block this attack while still allowing legitimate image uploads?

    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.