diff --git a/cypress/integration/other/xss.spec.js b/cypress/integration/other/xss.spec.js index fb052d171..9a07a7ab2 100644 --- a/cypress/integration/other/xss.spec.js +++ b/cypress/integration/other/xss.spec.js @@ -68,5 +68,15 @@ describe('XSS', () => { cy.wait(1000); cy.get('#the-malware').should('not.exist'); }) + it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams with dagre wrapper', () => { + cy.visit('http://localhost:9000/xss8.html'); + cy.wait(1000); + cy.get('#the-malware').should('not.exist'); + }) + it('should not allow maniplulating antiscript to run javascript using onerror in state diagrams with dagre d3', () => { + cy.visit('http://localhost:9000/xss9.html'); + cy.wait(1000); + cy.get('#the-malware').should('not.exist'); + }) }) diff --git a/cypress/platform/xss7.html b/cypress/platform/xss7.html new file mode 100644 index 000000000..454e028b2 --- /dev/null +++ b/cypress/platform/xss7.html @@ -0,0 +1,99 @@ + +
+ + + + + + + +