Skip to content

Commit

Permalink
Added matchAll test which is not marked as vulnurability by CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Napalys committed Nov 7, 2024
1 parent 514375d commit a96f9fc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ const server = http.createServer((req, res) => {
console.error(`[ERROR] Error: "${error}"`);
}
});

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);
});

0 comments on commit a96f9fc

Please sign in to comment.