Affects Version/s: None
Fix Version/s: None
We are a security research team at Virginia Tech. We are doing an empirical study about the usefulness of the existing security vulnerability detection tools. The following is a reported vulnerability by certain tools. We'll so appreciate it if you can give any feedback on it.
in file kafka/clients/src/main/java/org/apache/kafka/common/security/scram/internals/ScramFormatter.java line 58 and 76, new SecretKeySpec(key, algorithm) is invoked with hard-code key, which is defined in file kafka/clients/src/main/java/org/apache/kafka/common/security/scram/internals/ScramSaslClient.java line 127 -> 189.
Cryptographic keys should not be kept in the source code. The source code can be widely shared in an enterprise environment and is certainly shared in open source. The use of a hard-coded cryptographic key significantly increases the possibility that encrypted data may be recovered.
To be managed safely, passwords and secret keys should be stored in separate configuration files.
Please share with us your opinions/comments if there is any:
Is the bug report helpful?