WEBVTT

00:00.360 --> 00:02.550
Welcome to this video lecture.

00:02.580 --> 00:08.730
We will see how to find crosswords skirting bilateral dates with different security tools.

00:08.970 --> 00:14.400
In previous lecture we have learned about access as overview.

00:14.400 --> 00:20.380
OK now let's see one simple example to find excesses voluntarily.

00:20.850 --> 00:21.940
Let me open up.

00:22.020 --> 00:31.020
David Lee a level Miller application in this lecture I will demonstrate with security level low medium

00:31.110 --> 00:31.680
and high

00:36.370 --> 00:39.070
here you can see that security level is low

00:42.110 --> 00:52.100
not like on accesses reflected you can see that this is reflected across our scripting vulnerable page.

00:52.100 --> 01:03.190
So first of all let's try to add a normal text to analyze behavior of this page that accesses hit Submit

01:03.190 --> 01:13.430
button here you will see that we get a response as Hello accesses this web page released they input

01:13.880 --> 01:19.040
what I have sent to web application.

01:19.270 --> 01:21.320
Now let me try.

01:21.340 --> 01:25.180
Is this page 1 level 4 accesses or not.

01:25.450 --> 01:37.540
What I'm going to do is first I will send accesses payload means javascript code that script alert exists

01:37.590 --> 01:41.890
for level as message and closing the script.

01:51.240 --> 01:58.570
Hit Submit button here you will see that we got Bob up message.

01:58.670 --> 02:05.810
You can see that we have successfully ever to execute javascript on this page.

02:05.810 --> 02:14.960
This means that this page is one level four accesses.

02:15.000 --> 02:18.620
Let me show you in so it's called

02:23.180 --> 02:32.220
you will see here in pop up so scored it is directly displaying user inputs.

02:32.230 --> 02:37.240
Now I am going to change security level as media.

02:37.470 --> 02:41.530
Let's see what happens.

02:41.680 --> 02:47.020
Here is David Bluey a security select as medium and hit submit.

02:47.020 --> 02:56.630
You can see that in top of the page security level is currently medium click on access as reflected.

02:56.680 --> 03:05.610
Let's see that is this page one level for previous access his payload are not that open script alert

03:05.810 --> 03:08.300
excessive level and closing scope

03:11.160 --> 03:21.930
hit Submit button you see that his failure is not one level for this page let's see the source code

03:21.990 --> 03:24.780
of this page click on we also scored

03:29.660 --> 03:37.460
you can see or hear that deliver either some statement as yes there replace script replace with null

03:37.460 --> 03:47.890
character by get name in the PHC stare replace function will replace only those characters which are

03:48.020 --> 03:51.990
happier in the string.

03:52.000 --> 04:00.910
So what I'm going to do is I will add Sam access as payload but there's one trick that is never Papa

04:00.940 --> 04:04.340
doesn't concentrate on the guess and to do payloads.

04:04.480 --> 04:14.920
So send a payload with small and big letters that opening script alert exists for level and close the

04:14.940 --> 04:24.780
script.

04:24.840 --> 04:28.850
Here you can see that we have got pop message.

04:28.910 --> 04:33.520
This page is what level 4 accesses with gas in situ.

04:33.720 --> 04:37.770
Now we are successful using with two level security

04:41.120 --> 04:51.100
so change second deliver as high.

04:51.150 --> 04:54.150
Now let's try with low level access as payload

04:59.150 --> 05:02.900
this payload is not working in this page.

05:02.900 --> 05:05.210
So let's drive it medium level payload

05:09.580 --> 05:10.060
okay.

05:10.070 --> 05:12.200
This payload is us not working

05:14.870 --> 05:18.800
so let me open up BHP so its core of this page

05:22.490 --> 05:30.410
here you can see that developer track replacing each character with null value as yes.

05:30.610 --> 05:31.080
See.

05:31.230 --> 05:33.870
Ah I see the pattern.

05:36.200 --> 05:46.070
As I have told you earlier in the exercise of you lecture we can also find excesses flirty in Dom means

05:46.640 --> 05:48.830
document object model.

05:49.070 --> 05:57.970
So let's try to execute JavaScript in Dom type image SAIC equals to and hit submit button.

05:58.040 --> 06:00.850
You can see that this has worked.

06:02.940 --> 06:14.780
Type image a sassy equals to X and mentioned that would like on add a request to load.

06:14.900 --> 06:18.510
Function exists will never

06:23.260 --> 06:24.450
hit submit.

06:24.760 --> 06:30.760
Here you will see or hear that pop a message in this lecture.

06:30.760 --> 06:38.580
We have learned how to find excesses with low medium and high level security using this lecture.

06:39.560 --> 06:50.240
You try it in stored exercise and so it will it will work successful but the thing is in stored exercises

06:50.360 --> 06:57.450
all the payloads that you have submitted to server all this payloads are stored in the database.

06:57.710 --> 07:04.770
But the question arise is what is the use of this vulnerability is a security issue.

07:04.800 --> 07:09.480
How attacker can exploit this vulnerability in the lengthy lecture.

07:09.480 --> 07:12.540
We will see how attacker can exploit this vulnerability

07:15.050 --> 07:15.440
OK.

07:15.470 --> 07:17.810
That's all about this lecture.

07:17.840 --> 07:19.160
Thank you for watching.

07:19.170 --> 07:22.130
I'll see you in next lecture by.
