mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
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:
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user