mirror of
https://github.com/github/codeql.git
synced 2026-02-09 19:51:07 +01:00
Be precise when checking for Cipher.ENCRYPT_MODE
This commit is contained in:
@@ -102,7 +102,11 @@ private class EncryptionModeConfig extends TaintTracking2::Configuration {
|
||||
EncryptionModeConfig() { this = "EncryptionModeConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) {
|
||||
source.asExpr().(VarAccess).getVariable().hasName("ENCRYPT_MODE")
|
||||
source
|
||||
.asExpr()
|
||||
.(FieldRead)
|
||||
.getField()
|
||||
.hasQualifiedName("javax.crypto", "Cipher", "ENCRYPT_MODE")
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
|
||||
Reference in New Issue
Block a user