mermaid/cypress/platform/exploit.js

7 lines
234 B
JavaScript
Raw Permalink Normal View History

2021-06-03 20:47:24 +02:00
const div = parent.document.createElement('div');
div.id = 'the-malware';
div.className = 'malware';
div.innerHTML = 'XSS Succeeded';
parent.document.getElementsByTagName('body')[0].appendChild(div);
2022-06-27 05:29:50 +02:00
throw new Error('XSS Succeeded');