Hi, I'm new to elasticsearch, and when I was browsing the code I found some potential risks.
The iteration count for PBEKeySpec is only 1024 which is not sufficiently high to protect against brute-force attacks here.
PBEKeySpec keySpec = new PBEKeySpec(hashedPassphrase, salt, 1024, 128);
Similar to the previous statement, the iteration count for KDF should be at least 600,000. But in the source code there is only 10,000 here. You can refer to KDF Algorithms | Bitwarden Help Center here for more information.
private static final int KDF_ITERATION_COUNT = 10000;
The broken algorithms SHA1 and 3DES are still in use here. SHA1 and 3DES have long been considered to be vulnerable, and it's insecure to use them.
Hi, I'm new to elasticsearch, and when I was browsing the code I found some potential risks.
I sincerely think these suggestions can help make elasticsearch better.