Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 26978 invoked from network); 11 Feb 2011 20:24:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 20:24:21 -0000 Received: (qmail 67493 invoked by uid 500); 11 Feb 2011 20:24:21 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 67372 invoked by uid 500); 11 Feb 2011 20:24:21 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 67358 invoked by uid 99); 11 Feb 2011 20:24:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 20:24:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 20:24:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4FCCA1A06A0 for ; Fri, 11 Feb 2011 20:23:58 +0000 (UTC) Date: Fri, 11 Feb 2011 20:23:58 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1481314209.11448.1297455838323.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <31616103.92741289269207798.JavaMail.jira@thor> Subject: [jira] Updated: (MAPREDUCE-2178) Race condition in LinuxTaskController permissions handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-2178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon updated MAPREDUCE-2178: ----------------------------------- Attachment: mr-2178-y20-sortof.patch Attaching a patch for this extracted from Arun's patch on HADOOP-7108. This isn't a complete patch nor does it apply to any ASF branch, but useful for discussion. > Race condition in LinuxTaskController permissions handling > ---------------------------------------------------------- > > Key: MAPREDUCE-2178 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2178 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: security, task-controller > Affects Versions: 0.22.0 > Reporter: Todd Lipcon > Priority: Blocker > Fix For: 0.22.0 > > Attachments: mr-2178-y20-sortof.patch > > > The linux-task-controller executable currently traverses a directory heirarchy and calls chown/chmod on the files inside. There is a race condition here which can be exploited by an attacker, causing the task-controller to improprly chown an arbitrary target file (via a symlink) to the user running a MR job. This can be exploited to escalate to root. > [this issue was raised and discussed on the security@ list over the last couple of months] -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira