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

Potential CWE-327 #293

Open
OleksandrShkurat opened this issue Nov 27, 2023 · 0 comments
Open

Potential CWE-327 #293

OleksandrShkurat opened this issue Nov 27, 2023 · 0 comments

Comments

@OleksandrShkurat
Copy link

Hello guys.
Time-to-time we perform a Veracode security scan of our project compiled artifacts.
In addition to our code analysis, it also checks used 3rd-party libraries as well.
The latest scan has identified several security issues related to pubnub-gson-6.4.1.jar
I would be grateful for your opinion on this.

Here is the list of findings:

CWE-327, Use of a Broken or Risky Cryptographic Algorithm (Medium severity):

  • com.pubnub.api.crypto.cryptor.AesCbcCryptor.kt:91
  • com.pubnub.api.crypto.cryptor.LegacyCryptor.kt:203

Looks like both lines instantiate the class IvParameterSpec which is considered unsafe.

I would be glad to know what you think of it.

Thank you in advance.

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