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 A6A0F200C00 for ; Wed, 18 Jan 2017 09:24:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A52A7160B44; Wed, 18 Jan 2017 08:24:04 +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 E9AD1160B3A for ; Wed, 18 Jan 2017 09:24:03 +0100 (CET) Received: (qmail 86568 invoked by uid 500); 18 Jan 2017 08:24:03 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 86557 invoked by uid 99); 18 Jan 2017 08:24:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2017 08:24:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 81FC1C0333 for ; Wed, 18 Jan 2017 08:24:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id smfVLL5oxGQe for ; Wed, 18 Jan 2017 08:24:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 633B55F4A9 for ; Wed, 18 Jan 2017 08:24:01 +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 AE7E0E0870 for ; Wed, 18 Jan 2017 08:23:27 +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 7AFB925284 for ; Wed, 18 Jan 2017 08:23:26 +0000 (UTC) Date: Wed, 18 Jan 2017 08:23:26 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HTTPCLIENT-1802) RFC violations in hostname checking MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 Jan 2017 08:24:04 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski updated HTTPCLIENT-1802: ------------------------------------------ Assignee: Oleg Kalnichevski Fix Version/s: 5.0 Alpha2 4.5.3 > RFC violations in hostname checking > ----------------------------------- > > Key: HTTPCLIENT-1802 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1802 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (classic) > Affects Versions: 4.5.2 > Reporter: Suphannee Sivakorn > Assignee: Oleg Kalnichevski > Priority: Minor > Fix For: 4.5.3, 5.0 Alpha2 > > Attachments: 1_1_1_1.pem, s_google_com.pem > > > 1. Matching commonName in case sensitive manner when wildcard presents > (violation of RFC 6125 and RFC 5280) > HttpClient matches certificate commonName in the case sensitive manner > when there is a wildcard presents in the certificate commonName, for > example, given commonName as "*.google.com", HttpClient matches > "foo.google.com", it however does not match "foo.Google.com". We found > that this behavior is inconsistent with section 6.4.4 of RFC 6125 > specification -- "If the client chooses to compare a reference > identifier of type CN-ID against that string, it MUST follow the > comparison rules for the DNS domain name portion of an identifier of > type DNS-ID, SRV-ID, or URI-ID". Note that matching DNS-ID, SRV-ID and > URI-ID all are in case insensitive manner (RFC 5280). > Testing certificate attached: s_google_com.pem > Testing hostname: foo.Google.com > Expected behavior: match > 2. Attempting to match commonName when SubjectAltName identifier presents > Section 6.3 of RFC 6125 prohibits clients from attempting to match > certificate CN if the presented identifiers include a DNS-ID, SRV-ID, > URI-ID, or any application-specific identifier types supported by the > client. We found that HttpClient violates this requirement as it > attempts to match CN even when there is a subjectAltName identifier > presents e.g., IP address. However, the library does not attempt to > match certificate CN when certificate subjectAltName DNS presents. > Testing certificate attached: 1_1_1_1.pem > Testing hostname: dummy-value.com > Expected behavior: no match -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org