Security alert on our production app on google play console
ashishdimi09 opened this issue · 6 comments
Hi,
We are seeing a warning on our production app on google play console. The warning states:
Security alert
Your app contains unsafe cryptographic encryption patterns. Please see this Google Help Center article for details.
Vulnerable classes: com.xxx.xxx.android.AesCbcWithIntegrity
Affects APK version 10819.
The article the warning is referring to https://support.google.com/faqs/answer/9450925
Remediation
for Unsafe Cryptographic Encryption - Google HelpThis information is intended for developers with app(s) that contain unsafe cryptographic encryption patterns. That is, a ciphertext is generated with a statically computed secret key, salt, or initiasupport.google.com
Can someone help me to resolve this Security alert warning?
Working directly with reporter in private email to examine use of Tozny's library.
Based on my review of the reporter's code, I see a hard-coded password sent through several layers of constructors, eventually into the code that generates a key from a password. I also see a hard-coded salt instead of our random salt generator. Will confirm with reporter. If this is the case, it indicates an error in the use of the library, not an error in the library.
I updated the readme with more specific examples.
Since I haven't heard back from the reporter, and this looks like a but in their application, I'm going to close this report. If you have further issues, or you think it's a bug in the Tozny library, please re-open. Thanks!
@SyntaxPolice hi, We were having a similar problem, but we tried to search for the class that google warning sent us but it didn't. I wonder if you can help us.