I'm able to edit a parameter which is then reflected inside a link. I'd like to know how and if it's possible to cause a redirect. In shorts when i edit the parameter example
like this example=/test.com
that value is reflected in generated link like: www.example.com/test.com
but when i open the link the browser loads www.example.com
- Is it possible to make it load test.com
instead?
I tried using @test.com
but that generates a 500 error message. It seems that there's a check in place that blocks everything if you don't use the slash symbol first. For example /@test.com
is accepted but not @test.com
- How can i inject in a way that once the link is clicked i get a redirect to test.com
?
Breaking down the request/responses:
For /@test
I receive a 500:
{
"statusCode":500,
"error":"Internal Server Error",
"message":"An internal server error occurred"
}
And if I try with /@test.com
I get this:
{
"success":true,
"link":"https://www.example.com/@test.com"
}
curl
to retrieve it). Also note that you aren't trying to cause a redirect - you are simply trying to change a URL. A redirect would make the browser go to the new URL without any action from the user.[email protected]
, the problem is that it only acceptswww.example.com/@test.com
. I'm trying to add something afterwww.example.com/
to redirect totest.com
once the link is clicked. I tried withhtml
code too but looks filtered.a
tag in question.@test.com
the response is the following:{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}
While if i try with/@test.com
i get this:{"success":true,"link":"https://www.example.com/@test.com"}