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

Module SqlInjection

Provides default sources, sinks and sanitizers for detecting “SQL injection” vulnerabilities, as well as extension points for adding your own.

Import path

import semmle.python.security.dataflow.SqlInjectionCustomizations

Classes

RemoteFlowSourceAsSource

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

Sanitizer

A sanitizer for “SQL injection” vulnerabilities.

SanitizerGuard

DEPRECATED: Use Sanitizer instead.

Sink

A data flow sink for “SQL injection” vulnerabilities.

Source

A data flow source for “SQL injection” vulnerabilities.

SqlConstructionAsSink

A SQL statement of a SQL construction, considered as a flow sink.

SqlExecutionAsSink

A SQL statement of a SQL execution, considered as a flow sink.

StringConstCompareAsSanitizerGuard

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