Skip to content

Commit 48db2b9

Browse files
committed
JS: Add test
1 parent e2ed848 commit 48db2b9

File tree

1 file changed

+5
-0
lines changed
  • javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function t1() {
2+
const elm = document.getElementById("foo");
3+
const e2 = elm.getElementsByTagName("bar")[0];
4+
e2.innerHTML = window.name; // $ MISSING: Alert
5+
}

0 commit comments

Comments
 (0)