mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Remove initialization vectors from SensitiveApi
This commit is contained in:
@@ -32,13 +32,6 @@ class CryptoKeySink extends CredentialsSinkNode {
|
||||
CryptoKeySink() { sinkNode(this, "credentials-key") }
|
||||
}
|
||||
|
||||
/**
|
||||
* A node representing a cryptographic initialization vector being passed to a method.
|
||||
*/
|
||||
class InitializationVectorSink extends DataFlow::Node {
|
||||
InitializationVectorSink() { sinkNode(this, "encryption-iv") }
|
||||
}
|
||||
|
||||
/**
|
||||
* DEPRECATED: Use the `PasswordSink` class instead.
|
||||
* Holds if callable `c` from a standard Java API expects a password parameter at index `i`.
|
||||
@@ -73,8 +66,4 @@ deprecated predicate javaApiCallableCryptoKeyParam(Callable c, int i) {
|
||||
* DEPRECATED: Use the `CredentialsSinkNode` class instead.
|
||||
* Holds if callable `c` from a known API expects a credential parameter at index `i`.
|
||||
*/
|
||||
deprecated predicate otherApiCallableCredentialParam(Callable c, int i) {
|
||||
exists(InitializationVectorSink sink, MethodAccess ma |
|
||||
sink.asExpr() = ma.getArgument(i) and c = ma.getCallee()
|
||||
)
|
||||
}
|
||||
deprecated predicate otherApiCallableCredentialParam(Callable c, int i) { none() }
|
||||
|
||||
Reference in New Issue
Block a user