OWASP

Course
Time
12 hours 9 minutes
Difficulty
Beginner
CEU/CPE
12

Video Transcription

00:01
everyone welcome back to the course. So in the last video, we wrapped up our discussion on cross site scripting. So we talked about things like reflected versus persistent or more commonly called stored cross site scripting
00:12
in this lab, or to go ahead and do an example of reflected cross site scripting. So we'll take a look at that, what it looks like and what kind of output we get back.
00:20
So let's go ahead and get started. So you should already be looking to the cyber a environment and you'll want to make sure you launch the old lost Labs and specifically the cross site scripting lap. Now I already done so you'll see that they're there in the background and we've got our user name field for Callie Lennox. So let's go ahead and get logged in.
00:39
So our user name and password are gonna be the same for all these lab. This is gonna be the word student
00:44
all over case,
00:46
and then either click next or his press internal keyboard and then just student again all over case, and then either sign in or just hit and turn the keyboard, and it's gonna go ahead and get us logged into Callie Lennox.
00:56
Now. One minor difference in this particular lab versus others. If you want to get your percentage completions. If you want credit for the lab, what you'll need to do you'll see on the right side here, as you want to, just make sure you click through these particular items and check the boxes, so that's kind of the main difference in the other
01:15
lab view. You'll notice that the bottom there's instructions. You'll just click the done box and the next next, next, all the way through. And it'll automatically register your
01:22
percentage that you've completed. Whereas this particular lab and a couple of us in the course will be this new formatting where you'll just check the box as you complete each task and you notice the percent is changed as I click in complete a task.
01:34
So if you want credit for the lab, make sure you follow along and do those steps. They're just check the boxes and click all the way through is you're going through the lab, and that way you can get 100% completion.
01:46
So the first thing we're gonna do here is just uh, take off our screen lock. We're gonna cancel it essentially, so that way we don't worry about this timing out on us, and we can actually go through and do the lab.
01:56
So the way we do that, it's just at the top, right click the little arrow. It's gonna pop out a little menu for us. And then at the bottom left, there's a settings icon. What it's gonna click on that
02:05
it's gonna take about 4 to 5 seconds or so. It's gonna open a new window for us and you'll see it's open right there. We're gonna click on privacy. It's down near the bottom left. So this one right here
02:14
and the next we're gonna click on screen lock. It's gonna open a pop up pop up window for us and that we're just gonna take this top circle here and just move it to the left so you can click to it or you can click on it and drag it to the left. Once you've done that, that turns off the screen lock. So all we have to do now is just X out of these,
02:30
and we can actually start our lab now.
02:32
So we've already loved into Kelly Lennox. Here and again, they step by step. Guides are available for download on the supplemental resource is section. So if you haven't done that yet, for some reason hopefully you've done it since we're getting close to the end, Of course. But if you haven't done it yet, make sure you go download those that where you have access to all the materials you'll need to finish these labs.
02:52
So we went ahead and loud in our Callie machine. The next thing we're gonna do is launch chrome, so it's gonna be the second icon down. It's kind of a grayish blue icon here. Just go ahead and click on that. And if you have your mouth's overtop, it says chromium Web browser. So that's what we're using the side of Cali Lennox here.
03:07
And that's why the icon itself looks different than what you might be used to that on like a windows machine, for example.
03:15
All right, you'll see you automatically open up the Mattila Day site for us.
03:21
All right, so first thing we're gonna do here once that side opens up now again, if you get an air message in the sights. Not cool enough for you. Just click the little Mattila Day icon here and near the top left on. That should refresh the page for you. And you should be good to go.
03:35
So what we're gonna do is we're gonna cover our mouths over top of a lost 2017 were. Then I'm gonna navigate to the A seven, the cross site scripting one we're gonna click on reflected
03:44
and then password generator. So let's go ahead and do that now.
03:47
So all last 2017. Just cover your mouth over top there, Go down a cross site scripting
03:53
go to reflected his top option here,
03:58
and then we're gonna go down here
04:01
and scroll down a little bit. And let's go back up here.
04:04
You have to scroll down just a little bit to get the one we need.
04:09
So reflected on. Then just a little ways down. You'll see the password generator. There we go.
04:15
My take is mama or so and he should pull up for us, so we gotta pull up there.
04:20
All right, So now what? We're gonna do it. We just finished. Step 10 here. So we've clicked on the password generator. It's pulled up that page for us. What we're gonna do in the u R. L bar here were to change the word anonymous, and we're gonna change that *** wear t. So we're to change anonymous to quality in our Eurail. So you see, at the end here, we have anonymous. Just click in there.
04:42
There were changes word too quirky, and then press enter.
04:49
Or so now
04:50
we want to see if there's a user name showing up in the u R L now. So since we changed it to clarity, do we actually see a user name showing up in the address bar here?
05:01
Well, the answer is yes, right? It's actually pretty easy to see the hears. The name is queer T s O. That was actually kind of an easy one.
05:08
So next thing we want to do here in step 12 we're gonna right click on the page. We're gonna view the source code of the page,
05:14
and you can actually do this for any website you're on. So if you want to impress your friends and family, you could just right click on a web page and you'll be able to view the source code for that particular Web page. So we just right click on it. And then here, we're gonna save you page source,
05:27
take a second or so you'll see all sorts of information in there for us.
05:30
Specifically, What we're gonna do is do a search for quirky. So we're gonna hold on the control button on your keyboard, and then we're gonna press the letter f while we're doing that, that's gonna open up a search box for us or basically a find box. And then we're gonna type in queer T in the search box to see if we find the user name of Queer Tree anywhere in this coat.
05:49
All right, so a lot of stuff I just said there, but basically all we're gonna do is
05:54
in here. Just click in the in the code anywhere here. Just hold on control and then press f on your keyboard.
06:00
You'll see it gives us that little search box at the top here,
06:02
and then we're just gonna type in quirky
06:06
and see if it pulls up. If it shows the years of name for us
06:13
so you'll see they're almost instantaneously. It was finding quirky. You'll see here it says the this password or, you know, this this information here, this password that were defining is for this year's your name right here. So this is the user name that's associated with whatever password we're we are referring to.
06:31
So we were successful there. We were successful in our search, So we did find the user name of Quartey.
06:38
So now what we're gonna do is we're just gonna add some malicious JavaScript code. No, it's not really malicious code for our purposes. It's really just kind of creating a little a little test for us. A call like that cause I don't want to give away the answer to question number three, but we're just gonna basically type this aspect of the u R L R.
06:58
On. And then once we get enter, it should
07:00
do something. Hopefully, we'll just leave it like that.
07:02
So what we're gonna do first, we're gonna close this view source tab here is going to close that out and then in the u r. L were to type this command right here at the end of it. So
07:13
right here. Wait. Where we have quickie. We're just gonna go continue on and add the rest of our command here. So you'll see we already have clarity. So we don't have retyped that. But we are gonna add quotation,
07:23
a semi colon, and then alert. So we're gonna take this step by step like we normally do. So we'll add double quotation, and then the semi colon and then a space, and then the word alert. So let's go and do that now.
07:36
Double quotation semi colon space handler.
07:42
All right, so now we're gonna add the parentheses,
07:45
and then inside of that, we're gonna say malicious JavaScript inside a quotation, so we'll have parentheses and then inside of that will have quotation marks. And inside of that will have malicious Jarvis groups was going type all that in.
07:58
So right after the alert here, we'll start that.
08:03
Just type in the prentiss, see a movement mile, secrecy, parentheses, quotation Mark, Melissa militias. Excuse me, JavaScript.
08:11
And then just close it out with quotation marks and prentiss e.
08:13
And then also add a semicolon at the end of that and put a space.
08:18
All right, so now we're gonna type in V. A r r variable is what it stands for Their Sova, our space test X y z. So let's go and take that in there.
08:28
So v a r space tests X y z
08:35
All right, so next what we're gonna do is just put the equal sign a quotation
08:39
mark and then test. So equal sign, quotation and tests
08:45
equal sign, quotation and then test. And once we type that anyone is gonna have press Internet keyboard to go ahead and run that command.
08:52
All right, so now we have question number three here after we've run that command, Do you see a pop up box and mentioned something about malicious JavaScript? So this one was somewhat easy, and I tried not to give it away, but yes, we, of course, see a couple boxes says a malicious JavaScript here. Now, again, we weren't running like, real malicious code here. This is just a test too.
09:11
Give us a papa box so we could take a look at that.
09:13
Well, this is how reflected cross site scripting will work now, as we mentioned before And the lecture series cross I excuse me, reflected cross site scripting. If I closed my browser a za victim essentially, the risk goes away rights. That's where we get into the stored crisis. Scripting was, which is a more dangerous and more persistent form of it.
09:31
So this video, it's just real. How the high level overview of reflected cross site scripting and the next module we're gonna go ahead, talk about insecure D serialization.

Up Next

OWASP

Established in 2001, the Open Web Application Security Project (OWASP) offers free security tools and resources to help organizations protect critical apps. Cybrary’s OWASP certification training course covers the organization’s popular “Top 10” risk assessment.

Instructed By

Instructor Profile Image
Ken Underhill
Master Instructor at Cybrary
Master Instructor