-
Notifications
You must be signed in to change notification settings - Fork 389
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
Asymmetric cipher with insecure padding used #672
Comments
The code you threw is most likely obtained after OWASP security analysis in the web application appsweep:
This code was obtained during reverse engineering and it matches the code in the library file (RSACipher18Implementation.java):
The getRSAChiper method is used in only two places in the file (RSACipher18Implementation.java) of the RSACipher18Implementation class:
Further if we trace where the RSACipher18Implementation class is used we will see enum:
This enum is used in the StorageCipherFactory class:
NOTE THERE IS A METHOD getFromOptionsWithDefault which is involved in selecting the enum value:
ConclusionYes, there is indeed a warning "Asymmetric cipher with insecure addition is used" on the piece of code that you threw. Well you should realise that from API version greater than 23 the good encryption algorithm RSA_ECB_OAEPwithSHA_256andMGF1Padding will be used. This can also be set manually when declaring SecureStorage:
Or it is easier via encryptedSharedPreferences: true, because when true, keyCipherAlgorithm will not be passed the default parameter of the old encryption algorithm:
Comment from the documentation for the keyCipherAlgorithm parameter:
|
I'm sorry, but I'm having this problem with my app as well. |
This issue is stale because it has been open for 60 days with no activity. |
This issue will be tracked in #769 |
Hi Team, a security audit flagged this issue on our app. May I request for more info on this.
flutter_secure_storage: ^4.2.0
The text was updated successfully, but these errors were encountered: