RFI
Last updated
Was this helpful?
Last updated
Was this helpful?
RFI is possible in PHP when the allow_url_include directive is set to On within php.ini.
Call the file:
This goes to our web server and grabs the evil file. We see is that it requests GET /evil.txt.php from our webserver so we just add a null byte %00 to the end of it to stop it from appending the php. Then it works and since it will be read by the php engine we have RCE: