diff --git a/test4.html b/test4.html new file mode 100644 index 0000000..25405eb --- /dev/null +++ b/test4.html @@ -0,0 +1,67 @@ + + +
+ + + +postMessage without Origin Validation (VULNERABLE)This page intentionally demonstrates an insecure message event listener that does not validate event.origin and blindly injects received content into the DOM.
Status
+Last message origin: (none)
+example.com):
+ window.open('https://example.com', 'attacker');
+ window.opener.postMessage('<img src=x onerror=alert(\'Injected via \n\' + location.origin + \n\' — NO ORIGIN CHECK!\')>', '*');
+ You should see an alert on the vulnerable page and the DOM content updated.
+