From common-issues-return-146540-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Jan 9 01:29:06 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 29406180607 for ; Tue, 9 Jan 2018 01:29:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 18E9D160C3E; Tue, 9 Jan 2018 00:29:06 +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 5DD30160C2C for ; Tue, 9 Jan 2018 01:29:05 +0100 (CET) Received: (qmail 97843 invoked by uid 500); 9 Jan 2018 00:29:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 97832 invoked by uid 99); 9 Jan 2018 00:29:04 -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, 09 Jan 2018 00:29:04 +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 CBD291A0CFB for ; Tue, 9 Jan 2018 00:29:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.911 X-Spam-Level: X-Spam-Status: No, score=-99.911 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id D32qp8lZv9Kn for ; Tue, 9 Jan 2018 00:29:03 +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 D89AD5FB1F for ; Tue, 9 Jan 2018 00:29:02 +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 9241CE2582 for ; Tue, 9 Jan 2018 00:29:01 +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 8A851240F6 for ; Tue, 9 Jan 2018 00:29:00 +0000 (UTC) Date: Tue, 9 Jan 2018 00:29:00 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-15162) UserGroupInformation.createRemoteUser hardcode authentication method to SIMPLE 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/HADOOP-15162?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 317414#comment-16317414 ]=20 Daryn Sharp commented on HADOOP-15162: -------------------------------------- bq. In summary, proxy user ACL should be checked for simple security instea= d of reliance on isSecurityEnabled(). As stated earlier, proxy privs are always checked for non-token connections= . bq. isSecurityEnabled( gives a false sense that proxy user ACL shouldn't be= checked which leading to use of UserGroupInformation.createRemoteUser(remo= teUser) in server code, which is a bad practice for not verifying the crede= ntial of current server user. It's not bad practice for a server to use createRemoteUser =E2=80=93=C2=A0t= hat's why it exists. What does "verifying the credential of current server= user" mean when security is disabled and there are no credentials? > UserGroupInformation.createRemoteUser hardcode authentication method to S= IMPLE > -------------------------------------------------------------------------= ----- > > Key: HADOOP-15162 > URL: https://issues.apache.org/jira/browse/HADOOP-15162 > Project: Hadoop Common > Issue Type: Bug > Components: security > Reporter: Eric Yang > > {{UserGroupInformation.createRemoteUser(String user)}} is hard coded Auth= entication method to SIMPLE by HADOOP-10683. This by passed proxyuser ACL = check, isSecurityEnabled check, and allow caller to impersonate as anyone. = This method could be abused in the main code base, which can cause part of= Hadoop to become insecure without proxyuser check for both SIMPLE or Kerbe= ros enabled environment. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org