OWASP

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

Video Transcription

00:00
everyone Welcome back to the core. So in the last video, we went over our sequel injection portion of the lab
00:06
in this video, where to cover command injection.
00:09
So as usual, just make sure you're loved in the cyber environment. Now, I've already got the lab pulled up in the background there. If you continue down from the previous lab, then you don't need to go through the steps of closing these pop ups because you will not. You should not see them at least. Um, And if you just continue on with the LAPD
00:24
for me, I've just went ahead and launch the lab again. It has gone to the command ejection section, so you'll notice I of the pop ups in the background there.
00:32
So let's go ahead and get started. So well, close these pop ups just by clicking. Continue
00:36
on there, and that should close it out for us. And now we're taking to the Kelly Lennox log in screen.
00:41
We'll talk in student for the user name and then also for the password.
00:45
So against to another case.
00:47
Now again, if you've already, If you're continuing from the previous lab, you don't need to do this particular step. You should already be loved in. And you should be good to go.
00:56
And I might take a member. So for the Cali machine to pull up here for me. What I'm gonna do since I've just loved into Cali for the first time This time around, I'm gonna go ahead and disable the screen lock feature again. If you're continuing from the previous lab, you will not need to do this portion of it to disable the screen lock feature. We just click the arrow at the top right here. Select the
01:15
settings icon.
01:17
It's gonna take a couple of seconds here, and then it's gonna pull up another window for us
01:21
in that window will just click on privacy.
01:23
We'll click on screen lock and then we're not Move this little circle to the left side here, a little disabled screen lock with this ex out of those. And now we're actually ready to go ahead and begin our lab.
01:36
So if you didn't have to log in to Kelly because you were already loved in, And also, if you didn't have to disable the screen lock, then now you should be good to go. Well, I'll be on the same page.
01:46
All right, So if you don't have Firefox lobster ready, go ahead and launch it. And all you have to do is just click the little orange and white icon here at the top left. That'll go ahead and launch the Firefox Web browser for us
01:57
and my take a member. So it's gonna pull us up to the Mattila day. Paige again, That's a vulnerable web server application that were Excuse me, Web application server that we're using to do our testing for this particular lap. And as I mentioned before, we're gonna use that throughout the entire course.
02:15
All right, so the first thing we're gonna do is on the left side. Once the page pulls up here, we're gonna go to all lost 2017. We're gonna go to the A one injection other.
02:23
We're gonna click on command injection again. That's what we're covering in this lab. And then we'll go to D n s look. So let's go ahead and do that now.
02:31
So we'll go to a lost 2017 right here. Go to the injection. Other
02:36
go down about a quart of the way down to the command injection option on then Just go to D. N s. Look up that top option there. Go ahead and click on that.
02:44
It might take a moment. So to pull up that page for us and we'll see we have it here.
02:46
So let's go back to our lab document.
02:50
So what we're gonna do first, we're gonna just type me till a day into our little box here under the host name I P what? His press enter. And then what? I want you to look for us to see if you see this I p address here, this 1 92.168 dot 1.100. So we're gonna take a look and see if we notice that I p address there. So
03:08
in this box is time you till a day
03:12
and then either press enter or click on that look of the unis button,
03:15
it's going to take a moment or so that's gonna give us back some I p addresses. So again, the question was, do you see an I P address? It's labeled as 1 92.168 dot 1.100.
03:28
All right. So we see on my end at least that that is correct. We do see that I p address there. So we're good to go, and you should see the same thing on your site.
03:36
Are the next step here. We're gonna open a terminal window here inside of Kelly Olynyk. So the way we're going to do that So we're just gonna select applications at the very top left here is going click on that little arrow. Might take a second or so, pull up the menu for us and then under the favorites. It's gonna be the terminal option right there, which is going to click on that,
03:53
and you'll see it'll open a terminal window for us.
03:57
All right, let's go back to our lab document.
04:00
So now we're gonna do We're enemies in this look up command. And so we're gonna be basically checking for the i p. Address of this particular item.
04:06
So we're gonna type in Ennis. Look up, Space me till today. And then we'll just press enter on a keyboard.
04:14
So let's look up all one word
04:17
space. You kill today,
04:19
then just press enter and keyboard. It'll run the command And you see, it just takes a second or so to pull it back for us.
04:26
So question number two here is what I p address. Do you see after running the command? So what? I p addresses are listed. There
04:32
s specifically I'll give a hint. We're not looking for the local address,
04:38
Have you guessed? 1 92.168 Got 1.100. You are correct again. The 1 27.0 dot 0.1. It's a local address. We're not concerned with that for this particular lab at least.
04:48
And question number three here. Have you seen the I P addresses before? Well, obviously we have, right, we we have seen that before where we ran the me till a day inside of our host day. My pee Look up box.
05:00
All right, so we're gonna go back to our utility window now. So now we're gonna have something different in our host name. I p box.
05:09
So we're to type in this command right here. We're gonna type in Mattila Day. Ah, semi colon a space and an I D. So let's go ahead. Do that now.
05:17
So we're tied me to a day, A semi colon,
05:21
a space in an I d.
05:24
And they just press enter new keyboard or click that look up D N s button,
05:28
and you're gonna see some results. Come back to us. Let's take a look at our question here.
05:31
So question number four What user? I d number do you see? So what's the user? I d number that you see in these results.
05:41
All right, so I see that as 33. So we see the user. I d. Right there. We see it's 33 that shone assess the www dot data account.
05:50
Now, the next thing in the last step of this particular lab that we're gonna do is want to try to run this command here and see if we can view the e T c p a s s w d. File.
06:00
You wanna run this command right here? So we're gonna do make you a day?
06:02
Send Michael and Kat
06:04
space forward slash e TC ford slash P a s s W d. So don't worry about me reading it off real quick. We're gonna go ahead and do this step by step, so we'll start off with doing me till today. Semicolons. Well, this type that in now
06:20
kill a day, semi colon.
06:27
The next thing we're gonna do is put a space, and then we're gonna put cat. So let's just go and do that
06:30
was put space and then cat will put another space And then finally, we're gonna put forward slash e t c ford slash p a s s w d. Let's go and do that now.
06:42
So forward slash e TC for its life p a s s w d.
06:47
And then just press enter into keyboard or click the lich Look up Dean s button
06:51
to run the command.
06:55
All right, so course number five here is Are we able to access to this particular file? So the way we know that as well see different output will see several items of output in our results. So if all we see is just those couple of I p addresses we have seen before that we probably were not successful.
07:10
But if we're seeing other stuff in there, then that means we are able to access this particular file. So let's take a look and see what kind of information
07:16
were able to see
07:18
you scroll down here a little bit.
07:21
You'll notice. In addition to the idea I p addresses that we've seen before. We also see all these other things as well. So this is showing us This is actually the contents of that particular file. So of the e T c p a s s w defile. This is showing us the contents of that particular file.
07:40
All right, so in this video, all we did is cover a quick command injection. We showed that we can get some results back. If the's server applications particularly vulnerable to this type of attack, we can get information back about specific I P addresses and host names as well as we could potentially read different files on the system.
07:57
In the next video, we're gonna cover HTML attacks.

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