feat: add MaD to XSS query

This commit is contained in:
Mathew Payne
2023-07-14 12:25:54 +01:00
parent cafc67e3be
commit c292984338

View File

@@ -7,6 +7,7 @@
private import python
private import semmle.python.dataflow.new.DataFlow
private import semmle.python.Concepts
private import semmle.python.frameworks.data.ModelsAsData
private import semmle.python.dataflow.new.RemoteFlowSources
private import semmle.python.dataflow.new.BarrierGuards
@@ -43,6 +44,13 @@ module ReflectedXss {
*/
class RemoteFlowSourceAsSource extends Source, RemoteFlowSource { }
/**
* A data flow sink for "reflected cross-site scripting" vulnerabilities.
*/
private class DefaultReflectedXss extends Sink {
DefaultReflectedXss() { this = ModelOutput::getASourceNode(["html-injection", "js-injection"]).asSource() }
}
/**
* The body of a HTTP response that will be returned from a server, considered as a flow sink.
*/