Skip to content

Commit 834e3a2

Browse files
committed
JS: Mark a missing alert
1 parent 4977feb commit 834e3a2

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/test/query-tests/Security/CWE-915/PrototypePollutingAssignment

1 file changed

+1
-1
lines changed

javascript/ql/test/query-tests/Security/CWE-915/PrototypePollutingAssignment/lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Foo {
6767
const obj = this.obj;
6868
const path = this.path;
6969
const value = this.value;
70-
return (obj[path[0]][path[1]] = value); // $ Alert
70+
return (obj[path[0]][path[1]] = value); // $ MISSING: Alert - lacking local field step
7171
}
7272

7373
safe() {

0 commit comments

Comments
 (0)