Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6A8F17D05 for ; Thu, 19 Mar 2015 19:04:15 +0000 (UTC) Received: (qmail 20273 invoked by uid 500); 19 Mar 2015 19:03:41 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 20114 invoked by uid 500); 19 Mar 2015 19:03:41 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 19970 invoked by uid 99); 19 Mar 2015 19:03:41 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2015 19:03:41 +0000 Date: Thu, 19 Mar 2015 19:03:41 +0000 (UTC) From: "Lefty Leverenz (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9934) Vulnerability in LdapAuthenticationProviderImpl enables HiveServer2 client to degrade the authentication mechanism to "none", allowing authentication without password MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-9934?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14369= 918#comment-14369918 ]=20 Lefty Leverenz commented on HIVE-9934: -------------------------------------- What documentation does this need? > Vulnerability in LdapAuthenticationProviderImpl enables HiveServer2 clien= t to degrade the authentication mechanism to "none", allowing authenticatio= n without password > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ------------------ > > Key: HIVE-9934 > URL: https://issues.apache.org/jira/browse/HIVE-9934 > Project: Hive > Issue Type: Bug > Components: Security > Affects Versions: 1.1.0 > Reporter: Chao > Assignee: Chao > Fix For: 1.2.0 > > Attachments: HIVE-9934.1.patch, HIVE-9934.2.patch, HIVE-9934.3.pa= tch, HIVE-9934.3.patch > > > Vulnerability in LdapAuthenticationProviderImpl enables HiveServer2 clien= t to degrade the authentication mechanism to "none", allowing authenticatio= n without password. > See: http://docs.oracle.com/javase/jndi/tutorial/ldap/security/simple.htm= l > =E2=80=9CIf you supply an empty string, an empty byte/char array, or null= to the Context.SECURITY_CREDENTIALS environment property, then the authent= ication mechanism will be "none". This is because the LDAP requires the pas= sword to be nonempty for simple authentication. The protocol automatically = converts the authentication to "none" if a password is not supplied.=E2=80= =9D > =20 > Since the LdapAuthenticationProviderImpl.Authenticate method is relying o= n a NamingException being thrown during creation of initial context, it doe= s not fail when the context result is an =E2=80=9Cunauthenticated=E2=80=9D = positive response from the LDAP server. The end result is, one can authenti= cate with HiveServer2 using the LdapAuthenticationProviderImpl with only a = user name and an empty password. -- This message was sent by Atlassian JIRA (v6.3.4#6332)