天天看點

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Lab Intro

A local police department has hired you to pentest their website. They had a new website created by a web development company and they want to make sure that everything is secure and in order.

In this lab you will practice with Burp Suite, configuring the scope of the engagement, intercepting the communications with a webserver and spidering a target web application. You can access the target web application at the following address 10.100.13.5.

Goal

The goal of this lab is to test the given web application in order to find a hidden path that contains a restricted area. Once the hidden path is discovered, your goal will be to bypass the authentication exploiting a “feature” left over by the developers while “debugging” the area.

Solution

Burp

Examine the webapp. The home page is like this.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Click around, try to build the site map. And add the host to scope per request of the task.

Right click on the domain and select

add to scope

.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Click on the filter and choose

show only in scope

.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Let’s check if there’s a

robots.txt

file.

Yes, there is.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Let’s visit the path in the file. It’s a login page. And the backend is php.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Try to login as admin:admin shows error.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

There’s nothing in the home page’s source.

Let’s use repeater to check the login page again. Try to login, and intercept the request.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Press

Ctrl + R

to send the request to repeater.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

After sending a request to the server, I got a message on the bottom of the response.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Requesting with the parameter shows the restricted area on the server.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

ZAP

Set ZAP to intercept requests by clicking the dot.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Make a request.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Now, the target is in sites panel.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Let’s right click the site and select

Attack -> Spider

. Click

Start Scan

.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

After a while, the path has been discovered.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

In

Messages

tab, find the URL and open it in browser.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

The login page shows up.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

ZAP hub provides live view of the requests and response. But it’s not too user friendly cause there’s no syntax highlighting.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Back to ZAP, I got the same message.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

Task completed.

Time elapsed, one and half hours.

Road to Pentester - INE Lab - BurpSuiteLab IntroGoalSolution

繼續閱讀