WEBVTT

00:01.340 --> 00:08.450
And this lecture, I would like to show you an example of how to discover and exploit and a blind school

00:08.450 --> 00:15.210
injection, now a blind squirrel injection is one that doesn't display any errors to you.

00:15.710 --> 00:19.970
So we see in our previous examples, let me just go to a scale injection.

00:19.970 --> 00:22.340
And if I just put a single quote here.

00:25.930 --> 00:31.390
You'll see that it actually displays an error for me, which tells me that this page is vulnerable and

00:31.390 --> 00:35.990
I can exploit this page with an Ezekial injection and applying the skill injection.

00:36.010 --> 00:38.660
However, it will not show any errors for us.

00:39.130 --> 00:44.380
So right here in the blind, this girl, if I put a quote and execute it, you see that it's not going

00:44.380 --> 00:45.980
to show me any errors at all.

00:46.360 --> 00:49.140
This doesn't mean that the Web page isn't vulnerable.

00:49.330 --> 00:55.030
It just means that the website might not be displaying errors and this page might have a blind ESKILD

00:55.030 --> 00:57.450
injection in real life scenarios.

00:57.460 --> 01:04.840
I always approach the pages and try to discover exploit them as blind as skill injection.

01:04.860 --> 01:09.730
So I never actually look for errors and I never depend on just input in a single quote.

01:10.510 --> 01:17.080
The way I test for the existence of Bascule injections is that I try to inject a true and a false statement

01:17.290 --> 01:22.210
and then see if if the page behaves according to the statements that I'm given.

01:22.360 --> 01:25.180
So if I give it a true statement, it should give me a valid page.

01:25.300 --> 01:28.420
If I give a false statement, it'll give me an invalid page.

01:28.870 --> 01:34.510
What I mean by an invalid page is a page that doesn't look like what I expect, so it doesn't have to

01:34.510 --> 01:35.230
show on error.

01:36.010 --> 01:40.330
This will come murkier now in the example, I'm just going to put one out to see a valid page.

01:40.510 --> 01:45.910
So literally I'm just putting a normal user ID and we can see that it's given us a valid page.

01:46.030 --> 01:48.310
So it's given us the first name and the surname.

01:48.540 --> 01:53.650
And this is what the default what a valid page look like in this Web application.

01:54.970 --> 01:59.420
So the first thing I'm going to try to do is I'm going to try to give it a true statement, a statement

01:59.420 --> 02:03.340
that returns a true and this is going to be and.

02:06.570 --> 02:13.110
One is equal to one, so this is obviously true, and when I inject this, if the page is vulnerable,

02:13.200 --> 02:15.690
it should still show me the Violet page.

02:18.010 --> 02:23.980
So I'm going to inject it here, and one is equal to one.

02:26.080 --> 02:29.320
I forgot to put my comment here, I'm just going to put the comment.

02:30.550 --> 02:31.780
Percentage 23.

02:34.960 --> 02:39.730
And now, as you can see, the page is showing me a valid page, again, showing the first name and

02:39.730 --> 02:44.710
the surname, so it's executing well, I'm telling it, I thought that one is equal to one.

02:44.860 --> 02:46.620
One is equal to one is a true statement.

02:46.630 --> 02:48.890
It's not going to affect the execution of the page.

02:49.570 --> 02:52.890
Now, what I'm going to do is I'm going to try to inject a false statement.

02:52.900 --> 02:56.920
So I'm going to try to break the page, even though I'm given one, which is a valid idea.

02:57.460 --> 03:00.900
So my first statement is going to be and one is equal to zero.

03:01.780 --> 03:03.220
So that's going to be false.

03:05.360 --> 03:08.390
And I'm going to go in and inject it now.

03:10.220 --> 03:16.360
And as you can see, the page doesn't show the default valid page, even though I'm given no one.

03:16.640 --> 03:21.650
So you don't see any errors like we've seen with the normal ESKIL injections, but you can see that

03:21.650 --> 03:22.680
the page is invalid.

03:22.730 --> 03:27.070
It's not displaying what it should display, even though we're given the ID equals one.

03:27.560 --> 03:30.890
So when we give a true statement, it's it's given a valid page.

03:30.890 --> 03:34.110
When we give a false statement, it's given an invalid page.

03:34.760 --> 03:37.240
We can also verify this using the order vibe.

03:37.640 --> 03:42.140
So I'm going to put one and then I'm going to ask it to order by one.

03:42.140 --> 03:46.610
So order by only one column, which basically is a true statement.

03:46.610 --> 03:47.660
It's always true.

03:48.200 --> 03:48.980
So.

03:50.320 --> 03:54.940
This is going to be my true statement and I'm going to execute it here.

04:01.350 --> 04:07.440
And as you can see now, it's displaying the valid page that we've seen with the and one zero to one,

04:07.800 --> 04:13.110
so we can also change this to a false statement to give us an invalid page and we're going to ask it

04:13.110 --> 04:15.390
to order by a very large number.

04:15.720 --> 04:18.090
So I'm just going to put one zero zero zero zero.

04:19.390 --> 04:26.410
So this is going to be my full statement, and if the pages injectable, then it should show me an invalid

04:26.410 --> 04:29.560
page or a page that I don't really expect.

04:32.050 --> 04:38.140
And again, we see a page that we don't expect, which means that this website is vulnerable, even

04:38.140 --> 04:41.640
though it doesn't actually show us any error pages about the actual.

04:43.820 --> 04:49.340
Now that we are sure that this page is vulnerable, we can actually exploit this vulnerability exactly

04:49.340 --> 04:52.190
the same way that we exploit normal scale injections.

04:52.670 --> 04:56.690
So I can just do union select one to.

04:58.380 --> 05:03.330
And as you can see, I can display stuff in one and two and I'm going to select table name.

05:06.340 --> 05:07.060
From.

05:09.310 --> 05:11.410
Formations, Kemar, the tables.

05:14.320 --> 05:16.390
And I've actually misspelled schema here.

05:18.720 --> 05:24.750
So the exploitation part is exactly the same, whether it's a blind or a normal scale injection.

05:24.930 --> 05:27.180
The only difference is the way you discover it.

05:27.420 --> 05:33.150
And I recommend that you always approach your websites and try to discover blindness, Ezekial injections.

05:33.270 --> 05:38.880
So I never rely on only using a quote, always try to use the and one is equal to one, one is equal

05:38.880 --> 05:44.340
to zero and also use the other thereby to try and discover this type of vulnerabilities.

05:44.340 --> 05:49.950
Because if you rely on the quotes, you'll be missing a lot of blind ESKIL injections that are just

05:49.950 --> 05:52.320
as useful as normal ESKIL injections.
