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

Class TaintSource

A source of taintedness. Users of the taint tracking library should override this class to provide their own sources.

Import path

import semmle.python.dataflow.old.TaintTracking

Direct supertypes

Predicates

flowsToSink

Holds if taint can flow from this source to taint sink sink

flowsToSink

Holds if taint can flow from this source to sink sink

getATaintNode

Gets a TaintedNode for this taint source

getLocation
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

isSourceOf

Holds if this is a source of taint kind kind

isSourceOf

Holds if this is a source of taint kind kind for the given context. Generally, this should not need to be overridden; overriding isSourceOf(kind) should be sufficient.

toString

Gets a textual representation of this element.