Update javascript/ql/src/experimental/Security/CWE-94/ServerSideTemplateInjection.ql

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
monkey-junkie
2020-05-05 12:05:01 +03:00
committed by GitHub
parent 3a4ea82ae2
commit 056566ecc1

View File

@@ -40,9 +40,9 @@ class SSTIPugSink extends ServerSideTemplateInjectionSink {
class SSTIDotSink extends ServerSideTemplateInjectionSink {
SSTIDotSink() {
exists(CallNode compile, Node sink |
exists(CallNode compile |
compile = moduleImport("dot").getAMemberCall("template") and
sink.getStartLine() != sink.getASuccessor().getStartLine() and
exists(compile.getACall()) and
this = compile.getArgument(0)
)
}