WEBVTT

00:00.630 --> 00:01.680
Welcome back everyone.

00:01.680 --> 00:09.180
This saga from a degree and in this lecture I will talk about what is excesses excessive stats for cross

00:09.270 --> 00:10.980
site scripting.

00:11.190 --> 00:17.800
Now there is a rule in web development or any kind of development that never trust a user.

00:17.800 --> 00:18.480
Right.

00:18.630 --> 00:21.160
But mostly developers forget this.

00:21.270 --> 00:30.000
They think that user is a legit person excesses occurs when the application is not validating and sanitizing

00:30.000 --> 00:31.520
the input.

00:31.530 --> 00:33.210
This myth seems complicated.

00:33.210 --> 00:35.300
Let me just give you an example.

00:35.490 --> 00:41.150
When you see the DV w a reflected excessive speed you will see that there is.

00:41.200 --> 00:42.690
What's your name.

00:42.810 --> 00:43.470
Right.

00:43.590 --> 00:46.700
And there is a field where you can enter your name.

00:46.770 --> 00:48.870
Let's say I enter saga urban so

00:52.130 --> 00:56.840
you can see submit and it shows you Halo saga bonds.

00:57.500 --> 01:01.830
So think about how the application is working in the background.

01:01.840 --> 01:03.140
Right.

01:03.260 --> 01:08.890
This is taking a value here that value is being combined with Halo.

01:08.930 --> 01:15.520
And then the value and the result is being printed out on the web page as it is.

01:15.800 --> 01:22.910
Now the security failure in this application is that this application is trusting the user that user

01:22.910 --> 01:25.300
will only enter the name here.

01:25.310 --> 01:31.460
But if I add some payload or malicious code that will damage the whole Web site or any kind of code

01:31.460 --> 01:35.000
injection that will do something malicious.

01:35.000 --> 01:48.550
If you see the source code of this website let me just Sillman you will see that echo halo and get name.

01:48.550 --> 01:50.970
So there is no security at all.

01:50.980 --> 01:58.240
This is one line PSP code where it is simply printing the value of its user is giving and this gives

01:58.240 --> 02:00.210
rise to the access.

02:00.490 --> 02:06.970
If I give some malicious code instead of this name in this value if I give some malicious code it will

02:06.970 --> 02:10.900
execute that code on the Web site without checking anything.

02:10.900 --> 02:14.140
And it can be a high level vulnerability in some cases.

02:14.140 --> 02:19.820
So in the next lecture I will show you how you can find and exploit excesses till then have a great

02:19.820 --> 02:20.070
day.
