Skip to content

Commit d9d5623

Browse files
committed
Python: Fix SSTI query by importing UntrustedStringKind
Without a concrete ExternalStringKind class, there will be no flow for ExternalStringKind by default.
1 parent d6b3ccd commit d9d5623

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ql/src/experimental/CWE-074/TemplateInjection.ql

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import semmle.python.security.Paths
1515
import semmle.python.web.HttpRequest
1616
/* Sinks */
1717
import experimental.semmle.python.templates.Ssti
18+
/* Flow */
19+
import semmle.python.security.strings.Untrusted
1820

1921
class TemplateInjectionConfiguration extends TaintTracking::Configuration {
2022
TemplateInjectionConfiguration() { this = "Template injection configuration" }

0 commit comments

Comments
 (0)