OWASP

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

Video Transcription

00:01
Hey, everyone, welcome back to the course. So in the last video, we modify the U. R L for a Firefox browser and we went ahead and ran it, and we noticed that we were able to get information about the e T c p a s s w d file.
00:14
So as I mentioned in the last video, we launched a burp Sweet. And it should pull up for us and you'll see it there in the background. Now all we're gonna do once we've actually opened it up as we're gonna go ahead and just minimize it and we'll go back to the Firefox browser,
00:27
we will be coming back to burbs. Sweet. But we need to run some commands first. So go ahead, just minimize it here.
00:32
And then you could just clicked back on the Firefox icon and then we'll pull up the browser for us.
00:38
Let's go back to our lab document here.
00:40
Now what we're gonna do is we're gonna write click on what's called a foxy proxy icon. So we're gonna click on that and it's on the right side of the U. R L bar. Here. We'll take a look at that in just a second, and we're gonna choose the option that says use proxies based on their predefined patterns and priority. So it should be the top option there in which we right click on it. So this little icon right here, that
00:59
that looks like a little simple. You see it like, you know, when there's no smoking your son like that,
01:02
the little circle with a red line through. That's what we're looking for is just right Click on that.
01:07
Then choose the very top option here as I mentioned the use proxies based on their predefined patterns
01:14
and priority. So that one there. Now, once you select that, you'll notice that that red circle goes away and we're good to go.
01:23
All right, let's go back to our lab document here. Now we're gonna go select that same file again. So, um,
01:30
in the source file, name dropped out menu were to select the same text that dash file dash viewer dot PHP file that we had done before.
01:38
So let's go ahead. Do that now. So it's this one right here, and then just click on view file.
01:44
So once we do that, once we click of you file. We're gonna go ahead and minimize Firefox and we're gonna go back to burbs. Sweet. So let's go ahead and do that now. So it's gonna minimize Firefox,
01:53
and then we're gonna click back on Burps Week.
01:57
Let's go back to our lab document.
02:00
So now what we're gonna do is we are going to click on the proxy tab and then we're gonna notice is that the intercept feature is turned on. So let's click on proxy here, the top left you notice that intercept is turned on, and that's what we have information showing.
02:17
All right, So we're gonna do ah, quick replacement here. And then we're gonna take a look to see information back in Firefox. So we're specifically we're gonna be looking for a database password to see if we have from a see any information regarding the database password. But first things first. Let's go ahead and alter the information that we see here. So,
02:36
on this very bottom line here
02:38
in the in the output that we see in the background the text dash file, viewer dash PHP, we want to replace that with classes. Ford slash my sequel handler dot PHP. So let's go ahead and do that together.
02:53
So we're gonna replace all of this, and I normally just leave the dot PHP there. Since I'm gonna be altering it,
03:02
we're gonna add classes and then afford slash, and then my sequel handler dot PHP.
03:08
So where classes ford slash.
03:14
Yeah, my sequel handler.
03:16
The PHP,
03:21
you know, save the PHP, so I don't need to type it. But if you deleted the dot PHP you need you'll need to go ahead and just type it in there. You'll see there we have our classes. Ford slash my sequel handler dot PHP. All right, so once we have that, we're gonna click this forward button at the top of left. So let's go and do that now.
03:38
And you'll never set When we turn the intercept on for burp Sweet. It's basically intercepting the packet for the information. The communication, If you will s o, for example, let's say that
03:50
we were growing up, you know? So it's kind of like growing up, you know, you got a phone call with your boyfriend or girlfriend. You know what Mom interjects there and starts talking it be similar to the situation. We're like you. You say something and then Mom says Okay, I got that information. Now I'm gonna send it on to your boyfriend, you know? Of course, Mom's gonna twist it right. You know, you're telling a boyfriend I love you. Mom's gonna say she hates you,
04:10
you know? So that's kind of what we're doing with births. We hear we're intercepting that communication stream
04:14
so we can control it and send the information back to the browser or, you know, whatever we're using.
04:19
All right, so we're gonna minimize burp. Sweet. Now we're gonna go back to fire Fox. So let's go ahead and click the Firefox icon. That'll pull that back up for us,
04:27
and we'll go back to our lab documents. So we're here at step 38
04:31
now what we should see on her page in, which is what we do see in the background, we see the contents of the mice equal handler dot PHP page. So I want you to take a look through the information here and just see if you notice any information regarding a database password. Oh,
04:46
well, to scroll down and just see, do we notice any information about a database password, eh? So we see some information. Database host, database, user name will. That's probably not good to see. Oh, boy, look at that database password. So we get some information about potential passwords that might be used in the database.
05:05
If we keep scrolling down, we get information about the database name,
05:10
properties of the objects, etcetera, etcetera. So you could see how an attacker
05:15
may be able to use this information for bad purposes And how it it's not something that you wanna have showing, um, on your systems, right?
05:24
And access control A kind of a high level. We we went in. We used a tool called Bob Sweet after we ran a command on. And then we changed the output. So again we put in my sequel for for
05:36
our Pass or my sequel, Admin for the Path. We sent the information back to our Web application and you'll see that it kicked back the information that we didn't want anyone to see. We're going in the database. So we do see that this particular database is vulnerable for this application is vulnerable to this type of attack,
05:56
which we already know.
05:58
Yes, since we're using this tool to learn about the these different attacks. But if you noticed this, if you ran this particular thing against your web application server, then you may want to get things fixed, right? You might wanna have a security team fix things that they're that they're finding these particular vulnerabilities on.
06:15
So, as I mentioned again in this video, we talked about broken access control and the next module. We're gonna cover security, Miss Kim Figure Asians, which you'll see a lot of security miss configurations out in the media in different avenues. And we'll talk about why it's important to figure things properly, and we'll take a look at some examples in the lab for that module.

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