WEBVTT

00:02.520 --> 00:07.890
Remote file inclusion is a special case of file inclusion vulnerabilities.

00:09.510 --> 00:15.870
We've seen in the previous video how we were able to include any file in the server and have access

00:15.870 --> 00:22.980
to it through local files, including vulnerabilities in today's video, if the server is configured

00:22.980 --> 00:30.510
to allow a certain function called allow your URL and allow you are left open, then we will be able

00:30.510 --> 00:35.640
to include any file from any computer into the target's website.

00:35.790 --> 00:41.410
So we'll literally be able to inject any page file into the target computer.

00:41.730 --> 00:44.420
What this would lead to is basically it.

00:44.670 --> 00:51.600
We can run payloads, we can run reverse shelves and we can run even system commands and get access

00:51.600 --> 00:54.670
to the target or full control to the target server.

00:55.380 --> 01:02.460
So first of all, let's just go here and we'll be using the same file inclusion vulnerability that we

01:02.460 --> 01:03.920
were using in the previous video.

01:03.930 --> 01:06.040
So it's in the page parameter right here.

01:07.290 --> 01:14.070
The only difference is you need to enable the function that makes this, that converts the local file

01:14.070 --> 01:16.730
inclusion to a remote file inclusion.

01:16.950 --> 01:20.460
So hence the name local allows you to access local files.

01:20.580 --> 01:24.140
Remote will allow you to access and inject remote files.

01:24.720 --> 01:28.890
So to enable that, I am going to go to my old machine.

01:28.900 --> 01:33.000
I'm just going to show you how to enable it so you can test this vulnerability yourself.

01:33.450 --> 01:40.830
So we're coming here to our Amita's floatable and I'm going to go into the settings so the settings

01:40.830 --> 01:41.880
are stored in a file.

01:42.450 --> 01:47.190
And to access that, we are going to use Nonno, which is a text editor, and then I'm going to put

01:47.190 --> 01:49.860
the file location, which is an ETSI.

01:51.680 --> 01:52.190
Five.

01:53.140 --> 01:53.890
DGI.

01:54.830 --> 02:01.760
And so that's the location where the configuration is stored.

02:02.060 --> 02:04.670
I'm going to open it using a file editor called Nonno.

02:05.980 --> 02:10.840
And I'm just going to exit this, I'm going to open it Asuda as the root.

02:12.120 --> 02:19.080
Actually, in Cali, we never needed to use pseudo because we log in as rude, but with Might Floatable,

02:19.200 --> 02:22.490
you need to use pseudo when you want to do rude actions.

02:22.500 --> 02:25.710
So you say pseudo and then you put the commands that you want to run.

02:27.210 --> 02:28.350
OK, so these.

02:29.780 --> 02:32.870
Are the configurations for the.

02:34.730 --> 02:39.140
That's installed on the Web server on the target, and we're looking for a function called.

02:40.150 --> 02:47.050
Allow yourself open, so I'm going to type in control and w at the same time, and that'll allow me

02:47.050 --> 02:49.300
to search and I'm going to search for.

02:51.730 --> 02:54.070
Hello, you are Al.

02:56.110 --> 03:03.470
And we can see here that I have a lawyer I love Open is on and allow you to include is on as well.

03:03.970 --> 03:09.970
So these two functions, if they're enabled, then the local file inclusion vulnerability that we have

03:09.970 --> 03:12.550
can be used as a remote file inclusion.

03:14.110 --> 03:19.870
So to exit this control and exit, and it's going to ask you if you want to save just IPY and enter

03:20.110 --> 03:21.630
for me, I didn't change anything.

03:21.640 --> 03:22.780
So they need to do that.

03:23.170 --> 03:25.630
Once you do that, you need to restart your Web server.

03:25.810 --> 03:30.590
So you're going to do ETSI and at the.

03:32.010 --> 03:33.150
Apache to.

03:34.100 --> 03:34.760
Restart.

03:37.020 --> 03:39.390
And you'll need to do this as actually.

03:41.000 --> 03:45.070
And this is done now, so everything should be ready for you.
