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 started off our discussion on sequel injection attacks. So we went ahead and ran a couple of commands against our user name and password fields to see if we could log in as administrator.
00:12
And we were successful in those. Now, if you haven't done that video Yeah, go ahead. Paul is just want to go back to that video. So that way you can fellow along with the rest of the lab.
00:21
So now around step 17 here. So we're gonna go back to that lost 20 C 17 on the left side. We'll go back to the sequel, injection this sq ally extract data, and then we're gonna select user info this time.
00:34
So let's go and do that now. So I just clicked back over here so we can see everything.
00:38
So I lost 2017. Just cover your mouth over top there. Sequel injection.
00:43
If Moscow operates there we are. And then the SQL I extract data and then user info. Let's go ahead and click on That Might take a moment to sort of pull up. You'll see. We've got another user name and password field.
00:54
All right, so now we're at step 19 here. We're gonna enter in the just two years in a field, we'll leave the password, information blanks. But in their username field, we're gonna take that same command we have done just a moment ago. We're gonna type in admin, single single quotation, mark
01:10
semicolon and then the pound symbol. So let's go ahead and do that now.
01:14
So this type and admit all of her case
01:17
single quotation,
01:19
semi calling and then the pound symbol, and then either just hit and turn a keyboard or click the view account. Details option.
01:26
And I might take a moment, so that should give us back some results. Let's take a look at our question here.
01:30
Question number four. Do you see any password information after you run that command? So after we run this command, do we see any password information back
01:38
are so on my end. I do. I see that I've got admin passes, the administrator password. So I was successful with that attack, I was able to figure out the administrator password
01:49
are So the next thing we're gonna do here it step 20. We're just have a different command in the user name field. We're gonna see what kind of information we get back from this. So we'll take this one slow like we did before. We're just gonna type in initially admin and then the single quotation mark.
02:05
So here in the username boxes admin, single quotation mark,
02:08
we'll put a space,
02:10
and then we're gonna type or
02:13
and then we'll put another space.
02:15
Let's go and do that now
02:16
and then Finally, we're gonna put a one equals one semicolon, and then the pound symbols. Let's go and do that. Now we're gonna put one equals one,
02:25
the semi colon and the pound symbol.
02:29
So once you've entered that in there, just hit and turn a keyboard, we'll let that run.
02:34
All right? So question number five Now, do you see any other user credentials in the output? So besides the administrator account, do we see anybody else's log in information?
02:43
So let's take a look here and see
02:45
Well, I do a mind, right? I see information for Adriana. I see it for John Jeremy Brice. Well, this isn't good, right? This is not a good thing. Toe have. So we do see, as we've entered these different commands, we do see that this application is vulnerable to sequel injection attacks. But let's keep going with our lab.
03:04
All right? So now what we're gonna do is we're gonna block out here. So we're just gonna log out, and we're gonna go back to the original log in screen we were at. So if you remember, that was he s que alli and extract data and then user info. So that one we just went to a moment ago. So let's go ahead and log out. So we'll go back up to the top of the page. Just click on, log out.
03:23
Might take a moment. Assume there we are. And no, I'm just gonna navigate back. So I lost 2017 Sequel injection SQL. I extract data and then our user info
03:34
and I take a moment it's gonna take us back to the log in screen.
03:38
All right, So now what we're gonna do in the user name field is we're gonna take this long command here, so we'll take this one step by step like we've done before will slow it down. It will make sure we enter this properly. Double check yourself. Once we've entered a to make sure you've entered it correctly, and then we'll go ahead and run it. And question over six year is gonna be Is there anything different about the output on this one compared to
03:58
the other commands that we've run?
04:00
So let's go and start entering this in. So we're gonna type in admin and then single quotation mark a space and then union.
04:06
So here in the user name field, we're gonna type AB in single quotation mark space and then union.
04:13
We're gonna put another space. And now let's take the rest of our command Were type select space, the number one in a comma.
04:21
All right, so let's go ahead. Type that in So select
04:26
face the number one and comma. Put another space.
04:30
Now we're gonna type in your username, comma and then password.
04:33
So we're typing user name
04:35
comma space password. And then we'll also add a coma at the end of password will put another space. Now the Nazis entering some numbers here,
04:44
we're gonna type in 456 and seven.
04:47
So we'll put a four,
04:49
make sure you put a space we'll put a four comma space fire, comma space six comma space seven And then just put another space after the seven there.
05:00
And then finally, we're gonna write in type in from space accounts
05:04
semi colon and the pound symbol. So from space accounts, semi colon and pound.
05:13
So from
05:15
we put a space in, we put accounts semi colon in the pound symbol.
05:18
All right, so then what I want to do is just double check yourself. So make sure you talked everything correctly. Didn't fat finger anything. If you've talked everything correctly and you double checked yourself now, you can either click, view, account details or distress or enter key on your keyboard. Now, that's gonna go ahead and run this for us.
05:33
It might take a moment, so to run.
05:35
All right. So if you remember question number six year, is there anything different about the output with this particular command? Well, let's scroll down a seat. Let's see if we find anything different at all.
05:45
All right, so I noticed something. What do you notice?
05:48
So what I notices. I noticed that all the signatures that we originally had we ran the previous command.
05:55
We had signatures for these particular users. However, now all the signatures are saying for right. So aside from our admit up top top here, all of our signatures are saying for
06:04
all right, cool.
06:06
So we know that, um,
06:09
the previous command was able to give us more output on this, but we still see that this entire application is vulnerable to sequel injection attack. So this is really kind of a high level overview in this particular portion of the lab, a CZ with most of laps in this course, we try to keep him pretty high level. So that way, anyone could get an introduction to these things.
06:27
But by all means, we're not stringing together a bunch of sequel
06:30
our along sequel query and running this against something, right? So it's really just a high level overview. So we were We were able to see that this particular Web application is vulnerable to sequel injection attacks, and we were able to see, like why that's an important thing, right? We're able to see that an attacker could get usernames and passwords.
06:47
So, for example, if your name's Adrian and you're out there and hopefully that's not not your password
06:51
But if that is your password for some reason, then understand that this is how an attacker can get your information and pretend they're you log into systems and cause chaos. And then, unfortunately, a lot of times that comes back to you unless someone can prove attribution to someone else. So just keep all that in mind. That's why we learn these things. That's why we focus on them. And that's why the WASP
07:11
Top 10 list is very important for organizations to understand.
07:15
All right, so in the next video, we're gonna jump into command injections and then a CZ I mentioned before after that will jump into HTML injection.

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