Skip to main content

Referer-based access control

1

We can login as the admin using the following credentials:

UsernamePassword
administratoradmin

2

Let's go to the admin panel and upgrade the carlos user.

3

Since we are proxying the traffic through Burp Suite, we can go to the Proxy > HTTP History tab to view the request.

4

Notice that the request contains the Refered header set to the following:

https://0ab4000404f019d8885f257200e0002f.web-security-academy.net/admin

That tells the server that the request is coming from the /admin page which can only be accessed by the administrator.

Let's forward this request to the Repeater for further modification.

Next, let's logout and login using the following credentials:

UsernamePassword
wienerpeter

5

We now have to replace the session cookie in the Repeater tab with the wiener user's session cookie and set the username parameter to the following:

wiener

6

Since we included the Referer header, the server upgraded our user.

Let's check in the browser.

7

We have solved the lab.

8