-
Notifications
You must be signed in to change notification settings - Fork 241
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
Security issue with cardinal commerce dependency #305
Comments
@calvarez-ov You were 10 minutes faster than me, I was about to write the same issue today 🙏 On a side note, I updated the Braintree SDK to the latest version (3.13.0) and the issue is still happening because the cardinal commerce dependency hasn't been updated, so the secret key is still generated from a statically computed string. Also, a funny thing I found out is that if I submit my app to Google Play Store with ProGuard being disabled (so no code obfuscation), the warning doesn't show up in the developer console 🤷♂️ |
@jcloquell Thanks for the additional info! It's weird, because this is the second release we uploaded with the same versions of the libraries, and I didn't notice a warning on the previous release. Not sure why. Maybe adding a proguard keep rule for cardinalcommerce classes can avoid the warning in the play store console 🤔 |
👋 @calvarez-ov and @jcloquell thanks for bringing this to our attention. We're sending this feedback to our MPI provider CardinalCommerce so they can update their SDK. I don't have an ETA on when we'll get a new version of Cardinal's SDK that resolves this warning, so in the meantime we'll keep this issue open to track updates. |
Hello @scannillo and @sshropshire this issue open is July 30 not any update your side which time is fixed by because client is not wait for your time so this impact your Braintree products. client choose another payment method. |
Hi @keval1040 unfortunately this is a third-party dependency. We have reached out and are awaiting feedback. I believe all of us are experiencing longer than usual wait times with the onset of the COVID-19 pandemic. We will provide an update as soon as possible. Thank you for your patience. |
Is there an open issue tracker with cardinal commerce where this has been reported? |
@calvarez-ov No but they are working on a solution. They are aware of the Google Play store impact. |
@sshropshire Any update on this. can you ask the cardinal team to update asap because our client is waiting for the app to go live. |
@GauravBalbhadra Please add proguard rules cardinal then Play store approved your application this is temporary solution |
Which specific rules did you validate as fixing this problem? Not everyone will want to completely disable proguard for their whole app. |
@keval1040 Thanks.. your suggestion worked. Able to successfully get approval from the play store.
|
@keval1040 In my app, the ProGuard is disabled, yet I am getting warning from the play store side. Any suggestions |
Cardinal provided an update. This should now be fixed in version |
General information
From
./gradlew dependencies
:Issue description
The Google Play console shows a warning about our apk:
From our deobfuscation file, we see that this is related to the cardinal commerce library:
Indeed, if you see this
com.cardinalcommerce.shared.cs.utils.a.a
method in Android Studio, it shows the decompiled code, and it looks exactly like what the google play article is warning about: containing a secret key in the code.The text was updated successfully, but these errors were encountered: