diff --git a/t3sts/semgrep_rules/nodejs-insecure-url-parse.js b/t3sts/semgrep_rules/nodejs-insecure-url-parse.js index 9c377d44..e9d421d0 100644 --- a/t3sts/semgrep_rules/nodejs-insecure-url-parse.js +++ b/t3sts/semgrep_rules/nodejs-insecure-url-parse.js @@ -1,2 +1,17 @@ // ruleid: nodejs-insecure-url-parse url.parse("here lies dragons"); +// ruleid: nodejs-insecure-url-parse +require('url').parse("here lies dragons"); + +var uparser = require('url'); + +// ruleid: nodejs-insecure-url-parse +uparser.parse("here lies dragons"); + +function() { + // ruleid: nodejs-insecure-url-parse + uparser.parse("here lies dragons"); +} + +// ruleid: nodejs-insecure-url-parse +setTimeout(()=> uparser.parse("here lies dragons"), 1000);