Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miss to call clearPassword for PBEKeySpec #289

Open
akwick opened this issue Apr 29, 2022 · 0 comments
Open

Miss to call clearPassword for PBEKeySpec #289

akwick opened this issue Apr 29, 2022 · 0 comments

Comments

@akwick
Copy link

akwick commented Apr 29, 2022

I am reaching out to you as we conducted an empirical study to understand the nature of cryptographic misuses in enterprise-driven projects on GitHub. During our study, we randomly inspected a few of the misuses. One of the misuses for which we could confirm the finding of the analysis, CogniCryptSAST is within this project.

In the class PasswordFactory$PBKDF2Password miss to call the method clearPassword after generating the password. This method (JCA) clears an internal copy of the password from memory. Thus, it should be called to ensure that an attacker can not obtain the password from memory.

We hope that this report helps you and would be glad to get your thoughts on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant