File tree Expand file tree Collapse file tree
python/ql/src/experimental/semmle/python/security/dataflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import semmle.python.dataflow.new.TaintTracking
99import semmle.python.dataflow.new.RemoteFlowSources
1010import semmle.python.dataflow.new.BarrierGuards
1111import experimental.semmle.python.Concepts
12+ import semmle.python.Concepts
1213import semmle.python.ApiGraphs
1314
1415/**
@@ -26,6 +27,10 @@ class ReflectedXssConfiguration extends TaintTracking::Configuration {
2627 guard instanceof StringConstCompare
2728 }
2829
30+ override predicate isSanitizer ( DataFlow:: Node sanitizer ) {
31+ sanitizer = any ( HtmlEscaping esc ) .getOutput ( )
32+ }
33+
2934 override predicate isAdditionalTaintStep ( DataFlow:: Node nodeFrom , DataFlow:: Node nodeTo ) {
3035 exists ( DataFlow:: CallCfgNode htmlContentCall |
3136 htmlContentCall =
You can’t perform that action at this time.
0 commit comments