mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
7 lines
234 B
JavaScript
7 lines
234 B
JavaScript
const div = parent.document.createElement('div');
|
|
div.id = 'the-malware';
|
|
div.className = 'malware';
|
|
div.innerHTML = 'XSS Succeeded';
|
|
parent.document.getElementsByTagName('body')[0].appendChild(div);
|
|
throw new Error('XSS Succeeded');
|