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

Module PathInjectionQuery

Provides taint-tracking configurations for detecting “path injection” vulnerabilities.

Note, for performance reasons: only import this file if PathInjection::Configuration is needed, otherwise PathInjectionCustomizations should be imported instead.

Import path

import semmle.python.security.dataflow.PathInjectionQuery

Imports

DataFlow

Provides a library for local (intra-procedural) and global (inter-procedural) data flow analysis: deciding whether data can flow from a source to a sink.

PathInjection

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

TaintTracking

Provides classes for performing local (intra-procedural) and global (inter-procedural) taint-tracking analyses.

Classes

Configuration

A taint-tracking configuration for detecting “path injection” vulnerabilities.

NormalizedUnchecked

A state signifying that the file path has been normalized, but not checked.

NotNormalized

A state signifying that the file path has not been normalized.