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

App uses the encryption mode CBC with PKCS5/PKCS7 padding #759

Closed
ftopacho opened this issue Jul 23, 2024 · 1 comment
Closed

App uses the encryption mode CBC with PKCS5/PKCS7 padding #759

ftopacho opened this issue Jul 23, 2024 · 1 comment

Comments

@ftopacho
Copy link

I have also been flagged for vulnerable padding being used in my Huawei proprietary libraries and using. I would like to understand if upgrading the Huawei library will help remediate this vulnerability?

code snippet
Cipher cipher = Cipher.getInstance("AES/CBC/PKS5Padding")

Recommendation

Incorporate a secure checksum known as a Message Authentication Code. This MAC is typically produced by a secure "keyed hash", using the same key that encrypted the message. The message is first encrypted, and then the ciphertext, along with information about how it was encrypted such as the cipher algorithm, cipher mode, key size, block size and IV, is hashed using the MAC algorithm and the same key.

@juliansteenbakker
Copy link
Owner

Hi, a possible fix for this issue will be discussed in #769

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

2 participants