We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unescape
1 parent 40903a9 commit 37bed83Copy full SHA for 37bed83
javascript/ql/test/query-tests/Security/CWE-079/DomBasedXss/tst.js
@@ -493,3 +493,13 @@ function nonGlobalSanitizer() {
493
$("#foo").html(target.replace(new RegExp("<|>", unknownFlags()), '')); // OK - most likely good. We don't know what the flags are.
494
$("#foo").html(target.replace(new RegExp("<|>", "g"), ''));
495
}
496
+
497
+function FooBar() {
498
+ this.foo = document;
499
+ var obj = {
500
+ bar: function() {
501
+ this.foo.body.innerHTML = unescape(window.location.hash); // $ MISSING: Alert
502
+ }
503
+ };
504
+ Object.assign(this, obj);
505
+}
0 commit comments