Added matchAll test which is not marked as vulnurability by CodeQL

This commit is contained in:
Napalys
2024-11-07 13:09:15 +01:00
parent 514375dbf9
commit a4fe728af2

View File

@@ -116,4 +116,10 @@ const server4 = http.createServer((req, res) => {
});
server.start();
}
});
});
const serverMatchAll = http.createServer((req, res) => {
let username = url.parse(req.url, true).query.username;
let otherStr = username.matchAll(/.*/g)[0]; // BAD - this is suppose to be cought by Taint Tracking, works for match but not matchAll
console.log(otherStr);
});