Skip to content

Commit

Permalink
Merge branch 'HEAD' into 2541
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed Dec 7, 2021
2 parents f69f770 + 89ce930 commit 8311100
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cypress/integration/other/xss.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
2 changes: 1 addition & 1 deletion cypress/platform/xss14.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
var diagram = "classDiagram\n"
diagram += "classA <-- classB : <ifr";
diagram += "ame/srcdoc='<scr";
diagram += "ipt>alert(`XSS`)</";
diagram += "ipt>parent.xssAttack(`XSS`)</";
diagram += "script>'>";

// var diagram = "stateDiagram-v2\n";
Expand Down

0 comments on commit 8311100

Please sign in to comment.