
EC-CouncilWeb Application Hacking and Security
Domain 7Objective 2
Remote File Inclusion (RFI) WAHS Practice Questions (Page 3)
Part of the File Inclusion and Upload Attacks domain, which makes up ~7% of our current practice bank. EC-Council does not publish an official question count, but from its 360-minute exam (~145–240 total, ~10–17 in this domain), expect 3–6 from this objective — we provide 19 practice questions to prepare you well beyond it. (estimate)
19questions here
4free pages
5concepts
Questions 11–15
- 11
A junior developer asks why a PHP application is vulnerable to RFI. The code is: $page = $_GET['page']; include($page);. The developer notes that the server has allow_url_include=Off. What is the correct explanation?
Select an answer first - 12
An attacker has confirmed an RFI vulnerability in a PHP application. The server has `allow_url_include=On`. The attacker wants to execute a command on the server. Which payload, when hosted on the attacker's server, will achieve code execution when included?
Select an answer first - 13
A security tester is analyzing a PHP application. The code is: $file = $_GET['file']; if (file_exists($file)) { include($file); }. The tester wants to determine if RFI is possible. What is the most important observation?
Select an answer first - 14
An attacker exploits an RFI vulnerability. The vulnerable code is: include($_GET['page'] . '.php');. The attacker hosts a file at http://evil.com/shell.txt. The file contains: <?php system($_GET['cmd']); ?>. How can the attacker achieve code execution?
Select an answer first - 15
While reviewing PHP code, you see the following line: include($_GET['module']);. Which of the following inputs would be the most effective to test for RFI?
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.