add process.env and process.argv etc. as source for js/regex-injection

This commit is contained in:
erik-krogh
2023-02-13 21:13:44 +01:00
parent 2f8c9a5a2c
commit 36478124ae
5 changed files with 48 additions and 2 deletions

View File

@@ -20,4 +20,4 @@ import DataFlow::PathGraph
from Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
where cfg.hasFlowPath(source, sink)
select sink.getNode(), source, sink, "This regular expression is constructed from a $@.",
source.getNode(), "user-provided value"
source.getNode(), source.getNode().(Source).describe()