Referer-based access control
This lab controls access to certain admin functionality based on the Referer header. You can familiarize yourself with the admin panel by logging in using the credentials administrator:admin
.
Upon gaining access with administrator credentials (administrator:admin), I explored the admin panel functionalities and identified the "upgrade" feature for elevating user roles. I initiated the upgrade process for the user "carlos" and observed the request in Burp Repeater:
Subsequently, when attempting to perform the same upgrade as the user "wiener" by replacing the session cookie, I encountered an "unauthorized" response. To circumvent this, I added the "Referer" header with the value "/admin" to indicate that the upgrade request originated from the "/admin" page, which is considered trustworthy by the server. The modified request was:
By providing the proper Referer header, I successfully upgraded the "wiener" user to admin and solved the lab.
Last updated