DOM based open redirection
Description
This lab contains a DOM-based open-redirection vulnerability. To solve this lab, exploit this vulnerability and redirect the victim to the exploit server.
Approach
After visiting the lab and navigating through it with the FoxyProxy extension enabled to proxy all requests through BurpSuite, I noticed an interesting link in the blog post request response:
The main issue lies in the fact that the code does not verify the safety or origin of the URL found by the regex. This means I can craft a malicious URL that includes a url
parameter pointing to a site I control.
To exploit this vulnerability, I will craft a URL that includes a url
parameter pointing to my exploit server. This will redirect the user to my malicious site when they click the "Back to Blog" link. Here is the request I will send:
by sending that request i can see that the lab is solved.