I have a situation where I need to exploit the xss vulnerability (For academic purpose - for an assignment)
So all I have to do it, add the javascript or jquery alongside URL and redirect it to some overpage which is there in the same server.
I am struck. I don't know why I am struggling to redirect with:
window.location = " redirect_To_This_URL"
Here are the specific details:
The actual URL:
example.com/xss/index.php?username=Administrator
This has a text input box where the user inputs his password and there is a button.(On successful password entry it takes to example.com/xss/login.php
But
I need to redirect it to example.com/xss/fake.php
Reference:
http://leakybox.cs.hut.fi/xss/index.php?username=Administrator