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

ECB Mode is Insecure #60

Closed
zgosalvez opened this issue Jul 5, 2019 · 3 comments
Closed

ECB Mode is Insecure #60

zgosalvez opened this issue Jul 5, 2019 · 3 comments

Comments

@zgosalvez
Copy link

Weak or badly implemented encryption algorithms can endanger data storage and transmission due to RSA/ECB. Reference: https://github.com/jeroentrappers/flutter_keychain/blob/e9734e9481fe341d54163388e83f14fa122b3131/android/src/main/kotlin/be/appmire/flutterkeychain/FlutterKeychainPlugin.kt#L97

Please change the cipher to use AES/GCM to secure data storage. Reference: http://find-sec-bugs.github.io/bugs.htm#ECB_MODE

Since the minimum SDK of the package is 18, AES/GCM is supported. Reference: https://developer.android.com/reference/javax/crypto/Cipher.html

@prprhyt
Copy link

prprhyt commented Jul 25, 2019

Public Key Cryptography such as RSA is not block cipher.
Thus, the common ECB flaw does not apply to RSA.
If you want to know the reason why JCA treat RSA as a block cipher,
you can see: https://cryptosource.de/posts/java_rsa_block_cipher_en.html .

@sylvain101010
Copy link

I've noted other cryptography misuse, you can read the report here: #69

@juliansteenbakker
Copy link
Collaborator

Closing this because of no activity. Feel free to comment you think this shouldn't be closed.

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

4 participants