odnoklassniki / ok-unity3d-sdk

Unity3D SDK for OK
Apache License 2.0
3 stars 6 forks source link

Android. Unity SDK. WebViewClient.onReceivedSslError? #30

Closed AreYouReal closed 8 years ago

AreYouReal commented 8 years ago

Здравствуйте! При добавлении SDK для юнити в проект и попытке публикации приложени яна Google Play. Магазин отвергает приложение из-за следующей ошибки:

Security alert Your application has an unsafe implementation of the WebViewClient.onReceivedSslError handler. Specifically, the implementation ignores all SSL certificate validation errors, making your app vulnerable to man-in-the-middle attacks. An attacker could change the affected WebView's content, read transmitted data (such as login credentials), and execute code inside the app using JavaScript. To properly handle SSL certificate validation, change your code to invoke SslErrorHandler.proceed() whenever the certificate presented by the server meets your expectations, and invoke SslErrorHandler.cancel() otherwise. An email alert containing the affected app(s) and class(es) has been sent to your developer account address. Please address this vulnerability as soon as possible and increment the version number of the upgraded APK. For more information about the SSL error handler, please see our documentation in the Developer Help Center. For other technical questions, you can post to https://www.stackoverflow.com/questions and use the tags “android-security” and “SslErrorHandler.” If you are using a 3rd party library that’s responsible for this, please notify the 3rd party and work with them to address the issue.

Если удалить SDK Одноклассников - то магазин принимает приложение.