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

Module WeakSensitiveDataHashingQuery

Provides a taint-tracking configuration for detecting use of a broken or weak cryptographic hashing algorithm on sensitive data.

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

Import path

import semmle.python.security.dataflow.WeakSensitiveDataHashingQuery

Predicates

computationallyExpensiveHashFunctionFlowPath

Holds if data can flow from source to sink with ComputationallyExpensiveHashFunction::Flow.

normalHashFunctionFlowPath

Holds if data can flow from source to sink with NormalHashFunction::Flow.

Modules

ComputationallyExpensiveHashFunction

Provides a taint-tracking configuration for detecting use of a broken or weak cryptographic hashing algorithm on passwords.

NormalHashFunction

Provides a taint-tracking configuration for detecting use of a broken or weak cryptographic hash function on sensitive data, that does NOT require a computationally expensive hash function.

Aliases

WeakSensitiveDataHashingFlow

Global taint-tracking for detecting both variants of “use of a broken or weak cryptographic hashing algorithm on sensitive data” vulnerabilities.