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

Usage of string for private key #384

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

Usage of string for private key #384

akwick opened this issue Apr 30, 2022 · 0 comments

Comments

@akwick
Copy link

akwick commented Apr 30, 2022

During an empirical study to understand the nature of cryptographic misuses in enterprise-driven projects on GitHub, we randomly inspected a few of the misuses. One of the misuses for which we could confirm as a true positive of the analysis, CogniCryptSAST, is in this project.

  • com.onelogin.saml2.util.Util.java. In the method loadPrivateKey a string (Line 576) is passed as a secret key that is considered insecure. In Java, strings are immutable and stay in memory until collected by Java's garbage collector. Thus, they are longer visible in memory for attackers than necessary and outside of the direct control of the developer.The suggested data types by the JCA are bytes. [JCA Documentation]

We hope that this information will help you and we looking forward to your response.

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