File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
python/ql/src/experimental/semmle/python/security/dataflow Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import semmle.python.dataflow.new.TaintTracking
9
9
import semmle.python.dataflow.new.RemoteFlowSources
10
10
import semmle.python.dataflow.new.BarrierGuards
11
11
import experimental.semmle.python.Concepts
12
+ import semmle.python.Concepts
12
13
import semmle.python.ApiGraphs
13
14
14
15
/**
@@ -26,6 +27,10 @@ class ReflectedXssConfiguration extends TaintTracking::Configuration {
26
27
guard instanceof StringConstCompare
27
28
}
28
29
30
+ override predicate isSanitizer ( DataFlow:: Node sanitizer ) {
31
+ sanitizer = any ( HtmlEscaping esc ) .getOutput ( )
32
+ }
33
+
29
34
override predicate isAdditionalTaintStep ( DataFlow:: Node nodeFrom , DataFlow:: Node nodeTo ) {
30
35
exists ( DataFlow:: CallCfgNode htmlContentCall |
31
36
htmlContentCall =
You can’t perform that action at this time.
0 commit comments