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.
1 parent 8502939 commit 94e864eCopy full SHA for 94e864e
javascript/ql/test/query-tests/Security/CWE-915/PrototypePollutingAssignment/sublib/other.js
@@ -0,0 +1,11 @@
1
+(function () {
2
+ function Foobar() {}
3
+
4
+ Foobar.prototype = {
5
+ method: function (obj, path, value) {
6
+ obj[path[0]][path[1]] = value; // NOT OK - but not flagged [INCONSISTENCY]
7
+ },
8
+ };
9
10
+ module.exports.foobar = Foobar;
11
+})();
javascript/ql/test/query-tests/Security/CWE-915/PrototypePollutingAssignment/sublib/sub.js
@@ -1,3 +1,6 @@
module.exports.set = function (obj, path, value) {
obj[path[0]][path[1]] = value; // NOT OK
-}
+}
+var other = require('./other')
+exports.foobar = other.foobar;
0 commit comments