mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 20:39:38 +02:00
#2111 Handling 'false' as false
This commit is contained in:
6
cypress/platform/exploit.js
Normal file
6
cypress/platform/exploit.js
Normal file
@@ -0,0 +1,6 @@
|
||||
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 Succeded');
|
Reference in New Issue
Block a user