diff --git a/cypress/integration/other/xss.spec.js b/cypress/integration/other/xss.spec.js index 911acc71e..529eee16d 100644 --- a/cypress/integration/other/xss.spec.js +++ b/cypress/integration/other/xss.spec.js @@ -105,4 +105,9 @@ describe('XSS', () => { cy.wait(1000); cy.get('#the-malware').should('not.exist'); }); + it('should not allow maniplulating antiscript to run javascript iframes in class diagrams', () => { + cy.visit('http://localhost:9000/xss14.html'); + cy.wait(1000); + cy.get('#the-malware').should('not.exist'); + }); }); diff --git a/cypress/platform/xss14.html b/cypress/platform/xss14.html index bc9631a72..f8d1ccb22 100644 --- a/cypress/platform/xss14.html +++ b/cypress/platform/xss14.html @@ -86,7 +86,7 @@ var diagram = "classDiagram\n" diagram += "classA <-- classB :