Module PathInjection
Provides default sources, and sinks for detecting “path injection” vulnerabilities, as well as extension points for adding your own.
Since the path-injection configuration setup is rather complicated, we do not
expose a Sanitizer
class, and instead you should extend
Path::PathNormalization::Range
and Path::SafeAccessCheck::Range
from
semmle.python.Concepts
instead.
Import path
import semmle.python.security.dataflow.PathInjectionCustomizations
Classes
ConstCompareAsSanitizerGuard | A comparison with a constant, considered as a sanitizer-guard. |
FileSystemAccessAsSink | A file system access, considered as a flow sink. |
RemoteFlowSourceAsSource | DEPRECATED: Use |
Sanitizer | A sanitizer for “path injection” vulnerabilities. |
Sink | A data flow sink for “path injection” vulnerabilities. Such as a file system access. |
Source | A data flow source for “path injection” vulnerabilities. |
Aliases
StringConstCompareAsSanitizerGuard | DEPRECATED: Use ConstCompareAsSanitizerGuard instead. |