Bug 726954 - rpcbind should drop supplemental groups
Summary: rpcbind should drop supplemental groups
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rpcbind
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Eryu Guan
URL:
Whiteboard:
Depends On:
Blocks: 767187
TreeView+ depends on / blocked
 
Reported: 2011-07-31 12:45 UTC by Steve Grubb
Modified: 2012-06-20 15:12 UTC (History)
2 users (show)

Fixed In Version: rpcbind-0.2.0-9.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 15:12:29 UTC
Target Upstream Version:


Attachments (Terms of Use)
Patch to fix the problem (640 bytes, patch)
2011-07-31 12:45 UTC, Steve Grubb
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0974 0 normal SHIPPED_LIVE rpcbind enhancement update 2012-06-19 21:11:54 UTC

Description Steve Grubb 2011-07-31 12:45:50 UTC
Created attachment 516008 [details]
Patch to fix the problem

Description of problem:
After doing some tests, I found that rpcbind is not dropping supplemental groups when it probably should.

Version-Release number of selected component (if applicable):
0.2.0

How reproducible:
service rpcbind restart
cat /proc/<pid>/status | grep 'Groups'

Comment 2 Steve Dickson 2012-03-07 21:05:09 UTC
(In reply to comment #0)
> Created attachment 516008 [details]
> Patch to fix the problem
> 
> Description of problem:
> After doing some tests, I found that rpcbind is not dropping supplemental
> groups when it probably should.
>
Why?

Comment 3 Steve Grubb 2012-03-07 22:27:23 UTC
Because if you don't drop the supplemental groups, the program has the ability to write to any file that is group root writable or read any file with group root. Since it changed uid/gid, its clear that the intent was to drop any and all privileges.

Comment 7 errata-xmlrpc 2012-06-20 15:12:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-0974.html


Note You need to log in before you can comment on or make changes to this bug.