Remote File Inclusion (RFI)
Last updated
Last updated
The vulnerable function allows the inclusion of remote URLs. This allows two main benefits:
Enumerating local-only ports and web applications (i.e. SSRF)
Gaining remote code execution by including a malicious script that we host
Almost any Remote File Inclusion vulnerability is also an Local File Inclusion (LFI) vulnerability, as any function that allows including remote URLs usually also allows including local ones
an LFI may not necessarily be an RFI.
The vulnerable function may not allow including remote URLs
You may only control a portion of the filename and not the entire protocol wrapper (ex: http://
, ftp://
, https://
).
The configuration may prevent RFI altogether, as most modern web servers disable including remote files by default
start a
if FTP is blocked use FTP server
setup ftp server
cli version
if a windows web server is being used