File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
semmle/python/security/dataflow Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ category : minorAnalysis
3+ ---
4+ * Add support for Models as Data for Reflected XSS query
Original file line number Diff line number Diff line change 77private import python
88private import semmle.python.dataflow.new.DataFlow
99private import semmle.python.Concepts
10+ private import semmle.python.frameworks.data.ModelsAsData
1011private import semmle.python.dataflow.new.RemoteFlowSources
1112private import semmle.python.dataflow.new.BarrierGuards
1213
@@ -43,6 +44,15 @@ module ReflectedXss {
4344 */
4445 class RemoteFlowSourceAsSource extends Source , RemoteFlowSource { }
4546
47+ /**
48+ * A data flow sink for "reflected cross-site scripting" vulnerabilities.
49+ */
50+ private class SinkFromModel extends Sink {
51+ SinkFromModel ( ) {
52+ this = ModelOutput:: getASinkNode ( [ "html-injection" , "js-injection" ] ) .asSink ( )
53+ }
54+ }
55+
4656 /**
4757 * The body of a HTTP response that will be returned from a server, considered as a flow sink.
4858 */
You can’t perform that action at this time.
0 commit comments