We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4ea82 commit 056566eCopy full SHA for 056566e
javascript/ql/src/experimental/Security/CWE-94/ServerSideTemplateInjection.ql
@@ -40,9 +40,9 @@ class SSTIPugSink extends ServerSideTemplateInjectionSink {
40
41
class SSTIDotSink extends ServerSideTemplateInjectionSink {
42
SSTIDotSink() {
43
- exists(CallNode compile, Node sink |
+ exists(CallNode compile |
44
compile = moduleImport("dot").getAMemberCall("template") and
45
- sink.getStartLine() != sink.getASuccessor().getStartLine() and
+ exists(compile.getACall()) and
46
this = compile.getArgument(0)
47
)
48
}
0 commit comments