mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-28 17:34:16 +01: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');
 | 
