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 7
7
private import python
8
8
private import semmle.python.dataflow.new.DataFlow
9
9
private import semmle.python.Concepts
10
+ private import semmle.python.frameworks.data.ModelsAsData
10
11
private import semmle.python.dataflow.new.RemoteFlowSources
11
12
private import semmle.python.dataflow.new.BarrierGuards
12
13
@@ -43,6 +44,15 @@ module ReflectedXss {
43
44
*/
44
45
class RemoteFlowSourceAsSource extends Source , RemoteFlowSource { }
45
46
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
+
46
56
/**
47
57
* The body of a HTTP response that will be returned from a server, considered as a flow sink.
48
58
*/
You can’t perform that action at this time.
0 commit comments