-
Notifications
You must be signed in to change notification settings - Fork 227
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
Issues reported by Security Scan App on Java stack #241
Comments
Thanks for the notes! The first one means we use SHA-1. It's in the createThumbprint method, which is used to identify the certificates - not to create any cryptographic signatures. SHA-1 is also in the OPC UA specifications and the respective policies are deprecated. But, of course, we need to implement those policies still. Anyway, this note is not about those, I think. The second one, I don't understand. Do you have more information, why it's wrong? The third one is related to the algorithm ("AES/CBC/PKCS5Padding") used to store the private key secretly. I guess, it refers to a possible padding oracle, but this is only related to storing the key in a file (data at rest), so there is no way to use the oracle for it. See the following answer, for example: |
Hi @jouniaro , Further details on the issue reported is as below
src/main/java/org/opcfoundation/ua/transport/security/PrivKey.java
src/main/java/org/opcfoundation/ua/transport/security/BcCryptoProvider.java To my assumption the scan tool is talking about signer.init(forSigning, params) which is invoked before the update method in Kindly share your feedback on these matters—do you consider them noise or genuine issues that need to be addressed? Additionally, we have raised PRs for some of the issues identified by the scan tool. Please review and approve the PRs. |
Yeah, I guess the 'signer.update' note is due to the initialisation being done in 'getAsymmetricSigner' method, instead of here. The 'cipher.init' note I don't understand, since the key is initialized in the method. |
Below Issues were reported by Security Scan App on the Java Stack
<style> </style>The text was updated successfully, but these errors were encountered: