Portswigger: URL-based access control can be circumvented Writeup

This website has an unauthenticated admin panel at /admin, but a front-end system has been configured to block external access to that path. However, the back-end application is built on a framework that supports the X-Original-URL header.

To solve the lab, access the admin panel and delete the user carlos.

Lab link.

We try to access the /admin URL. We can’t access and we are blocked.

We send the request to the repeater. We clear the Get request URL and add the “X-Original-URL: /admin” parameter to the request.

We delete user Carlos and the lab is solved.

Aleyna Doğan
Aleyna Doğan

I'm Aleyna Doğan, a Senior Cyber Threat Intelligence Analyst specializing in cyber threat intelligence, OSINT investigations, and digital risk monitoring. This blog is where I share hands-on cybersecurity content, including TryHackMe writeups, PortSwigger labs, and practical learning resources.

Articles: 151

Leave a Reply

Your email address will not be published. Required fields are marked *