A PHP page runs include($_GET['page']) and allow_url_include is enabled. Which value for the page parameter BEST makes the server run a script the tester hosts?
Show the answer
Correct answerD. http://tester.example/cmd.txt
AWhy not this: An internal metadata URL is an SSRF target; as an include it would only pull metadata text, not tester code.
BWhy not this: A traversal path loads a file already on the server, which is local file inclusion and runs no tester-written code.
CWhy not this: This SQL injection string is not a file path or URL, so include() has nothing to load from it.
DWhy this is right: With remote includes enabled, the server fetches this URL and executes the PHP in it.
Remote file inclusion points the include call at an attacker-hosted URL, so PHP fetches the file and executes its code. A traversal path such as ../../../../etc/passwd only loads a local file, which is local file inclusion territory and gives no tester code.