Fortify has identified a potential vulnerability where the user is redirected to a new site based on their input, opening up the possibility of phishing or other attacks if the URL is manipulated in a certain way. It is crucial to implement proper security measures to prevent such risks. You can find more information on this topic at OWASP.org.
To address this issue, it is recommended to create a whitelist of acceptable parameter values on the server side for the test
parameter. This way, any request with an unrecognized or invalid value for test
can be handled appropriately by the server instead of allowing potentially harmful redirection. While client-side fixes may not be sufficient in this case, implementing regex sanitation could provide some level of protection, although Fortify's response to this approach is uncertain.