If the current URL is not edited, you may be exposed
- XSS (cookie theft, injection scripts)
- Response Header Separation
etc.
If you know that the current URL is constant and has no parameters, this is not so risky. As soon as you add parameters or create a URL based on user input, complexity arises.
Trivial XSS Example:
Say your url may have a query string entered through user input. then what prevents them from talking
redirectUrl = "yoursite.jsp somevariable =" warning ('malicious') "); or redirectUrl =" yoursite.jsp somevariable =? "alerts (document.cookies)");
And steal your cookies or execute another evil java script.
. , CRLF, .
Wikipedia - , HTTP.
, , URL-, , , , , .. , , -
redirectURL = "http://myfakebank.com"
, , : ", "