Skip to content

Commit 91e6222

Browse files
RasmusWLPorcupiney Hairs
authored andcommitted
Python: Fix SSTI query by importing UntrustedStringKind
Without a concrete ExternalStringKind class, there will be no flow for ExternalStringKind by default.
1 parent 9dbd280 commit 91e6222

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
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)