CodeQL library for Python
codeql/python-all 0.11.15-dev (changelog, source)
Search

Module ReflectedXss

Provides default sources, sinks and sanitizers for detecting “reflected server-side cross-site scripting” vulnerabilities, as well as extension points for adding your own.

Import path

import semmle.python.security.dataflow.ReflectedXSSCustomizations

Classes

HtmlEscapingAsSanitizer

An HTML escaping, considered as a sanitizer.

RemoteFlowSourceAsSource

A source of remote user input, considered as a flow source.

Sanitizer

A sanitizer for “reflected server-side cross-site scripting” vulnerabilities.

ServerHttpResponseBodyAsSink

The body of a HTTP response that will be returned from a server, considered as a flow sink.

Sink

A data flow sink for “reflected server-side cross-site scripting” vulnerabilities.

Source

A data flow source for “reflected server-side cross-site scripting” vulnerabilities.

StringConstCompareAsSanitizerGuard

A comparison with a constant string, considered as a sanitizer-guard.