orart Remote File Inculsion Vulnerability [ RFI ]

CVE Category Price Severity
CWE-Other Not specified Not specified
Author Risk Exploitation Type Date
Not specified Not specified Remote 2021-02-22
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/S:U/C:H/I:N/A:N 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at:

Below is a copy:

orart Remote File Inculsion Vulnerability [ RFI ]
# Title: porart Remote File Inculsion Vulnerability [ RFI ]
# Author: h4shur
# date:2021-02-21
# Tested on: Windows 10 & Google Chrome
# Category : Web Application Bugs

### Note:

* Another web application bug is the RFI bug, which can be very dangerous
And stands for Remote File Inclusion, which directly executes loose scripts on the server
Also, this security hole is created by programmer errors
And you must be fluent in programming language to secure and prevent this bug
And you have to control the inputs of the application and use powerful firewalls

* This bug is one of the most dangerous bugs and the access that the intruder can gain using this bug is the implementation of Shell script
In fact, by running Shell script, it will have relatively complete access to the Target site server
If we want to explain it in text, the hacker will execute the shell by giving a link from Shell script in txt format to the input of the vulnerable site.

* what's the solution ?
Check the file entered by the user from a list and enter it if the file was in the list. Example :
if(in_array($_GET['file'], $files)){
include ($_GET['file']);
* If you are a server administrator, turn off allow_url_fopen from the file.

* Or do it with the ini_set command. Only for (RFI)
ini_set('allow_url_fopen ', 'Off');

* We can use the strpos command to check that if the address is: // http, the file will not be enclosed (it can only block RFI)
$strpos = strpos($_GET['url'],'http://');

* Using str_replace we can give the given address from two characters "/", "." Let's clean up.
$url = str_replace("/", "", $url);
$url = str_replace(".", "", $url);

### Poc  :  

[+] [ PAYLOAD ] 


### Demo:


### Contact Me :

* Telegram : @h4shur
* Email : [email protected]
* Instagram : @netedit0r
* twitter : @h4shur

Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum