1 CONSOLE ERROR: line 1: Uncaught SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a frame with origin "http://localhost:8000". Protocols, domains, and ports must match.
2 This page opens a window to "", injects malicious code, and then navigates its opener to the victim. The opened window then tries to scripts its opener after document.writeing a new document.
3 Code injected into window:
4 <script>document.write('<script>function write(target, message) { target.document.body.innerHTML = message; }setTimeout(function() {write(window.opener, \'FAIL: XSS was allowed.\');}, 100);setTimeout(function() {write(window.opener.top.frames[1], \'SUCCESS: Window remained in original SecurityOrigin.\');}, 200);setTimeout(function() { window.opener.top.postMessage(\'done\', \'*\'); }, 300);<\/script>');</script>
8 Frame: '<!--framePath //<!--frame0-->-->'
10 This page doesn't do anything special.
13 Frame: '<!--framePath //<!--frame1-->-->'
15 SUCCESS: Window remained in original SecurityOrigin.