Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B287F200C85 for ; Tue, 16 May 2017 05:36:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B1257160BCE; Tue, 16 May 2017 03:36:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0560C160BC2 for ; Tue, 16 May 2017 05:36:09 +0200 (CEST) Received: (qmail 50229 invoked by uid 500); 16 May 2017 03:36:09 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 50062 invoked by uid 99); 16 May 2017 03:36:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 May 2017 03:36:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9FA641A0705 for ; Tue, 16 May 2017 03:36:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id moWDo-j2JhXA for ; Tue, 16 May 2017 03:36:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C88A95FC3A for ; Tue, 16 May 2017 03:36:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EBFB2E0D4E for ; Tue, 16 May 2017 03:36:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 55FA921940 for ; Tue, 16 May 2017 03:36:04 +0000 (UTC) Date: Tue, 16 May 2017 03:36:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12809) Google Play Blocker: Unsafe SSL TrustManager Defined MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 16 May 2017 03:36:10 -0000 [ https://issues.apache.org/jira/browse/CB-12809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16011684#comment-16011684 ] ASF GitHub Bot commented on CB-12809: ------------------------------------- Github user amovsesy closed the pull request at: https://github.com/apache/cordova-plugin-file-transfer/pull/179 > Google Play Blocker: Unsafe SSL TrustManager Defined > ---------------------------------------------------- > > Key: CB-12809 > URL: https://issues.apache.org/jira/browse/CB-12809 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-file-transfer > Affects Versions: 1.6.1 > Reporter: Aleksandr Movsesyan > Priority: Critical > Labels: android > > We are using a security tool that reported this issue. > The following Java classes defined within the App define a custom (https://developer.android.com/reference/javax/net/ssl/X509TrustManager.html) X509TrustManager that does not validate SSL certificates: > org.apache.cordova.filetransfer.FileTransfer$3 > The affected classes define an empty checkServerTrusted() method, thereby disabling SSL validation and hence accepting any SSL certificate as valid, if the class is used when connecting to a server over SSL/TLS. > Regardless of whether affected classes are used or not at runtime, Google Play is blocking any App that defines such an insecure X509TrustManager as detailed on Google's support page(https://support.google.com/faqs/answer/6346016): > "Beginning May 17, 2016, Google Play will block publishing of any new apps or updates containing the unsafe implementation of the interface X509TrustManager." > Additionally, Google's presentation at the Black Hat 2016 conference (https://www.blackhat.com/docs/us-16/materials/us-16-Kralevich-The-Art-Of-Defense-How-Vulnerabilities-Help-Shape-Security-Features-And-Mitigations-In-Android.pdf) details (on slide 45) the vulnerable code found in the vulnerable classes, that Google Play will ban: > // Dangerous code: do not do this! > SLContext ctx = SSLContext.getInstance("TLS"); > ctx.init(null, new TrustManager[] { > new X509TrustManager() { > public void checkClientTrusted(X509Certificate[] chain, String authType) {} > public void checkServerTrusted(X509Certificate[] chain, String authType) {} > public X509Certificate[] getAcceptedIssuers() {return new X509Certificate[]{}; } } }, null); > HttpsURLConnection.setDefaultSSLSocketFactory(ctx.getSocketFactory()); > Lastly, a list of Apps that have already been blocked by Google Play because of this issue can be found here(https://stackoverflow.com/search?q=%5Bandroid-security%5D+checkServerTrusted). -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org