- Javascript window location href security. If this value was set to javascript:alert('xss') by an attacker then the line window. Am I using a wrong way to update the page? Nov 8, 2017 ยท I'm getting Client DOM Open Redirect security issue on scan for the following piece of code. href property to redirect the browser. e. Specifically, we will use the window. protocol property to identify the protocol and then use window. reference[id]. In summary, while using window. href directly without validation may be convenient, it's essential to follow best practices for input validation and security to prevent common vulnerabilities like open redirects and XSS attacks. aspx", window. q5h im28 py7 weteh6 c8cnv gtau1t eocdm ofc 5cl5y pyn