Linux rsync allows files to be written outside a module`s path
| rsync-write-files (16014) |
Description:
rsync could allow a remote attacker to write files outside of the directory. When running non-read-only rsync without enabling chroot, a remote attacker can send a path to the rsync daemon to write files to directories outside a module's path.
Platforms Affected:
- Conectiva, Linux 10
- Conectiva, Linux 9.0
- Debian, Debian Linux 3.0
- Gentoo, Linux
- MandrakeSoft, Mandrake Linux 10.0
- MandrakeSoft, Mandrake Linux 9.1
- MandrakeSoft, Mandrake Linux 9.2
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- MandrakeSoft, Mandrake Multi Network Firewall 8.2
- OpenPKG, OpenPKG 1.3
- OpenPKG, OpenPKG 2.0
- OpenPKG, OpenPKG CURRENT
- RedHat, Enterprise Linux 2.1 AW
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 AS
- RedHat, Linux Advanced Workstation 2.1 Itanium
- Samba, Rsync prior to 2.6.1
- Slackware, Slackware Linux 8.1
- Slackware, Slackware Linux 9.0
- Slackware, Slackware Linux 9.1
- Slackware, Slackware Linux current
- Trustix, Secure Enterprise Linux 2.0
- Trustix, Secure Linux 1.5
- Trustix, Secure Linux 2.0
- Trustix, Secure Linux 2.1
Remedy:
Upgrade to the latest version of rsync (2.6.1 or later), available from the rsync download Web page. See References.
For Debian GNU/Linux 3.0 (woody):
Upgrade to the latest rsync package (2.5.5-0.4 or later), as listed in DSA-499-1. See References.
For Trustix Secure Linux:
Upgrade to the latest rsync package, as listed below. Refer to Trustix Secure Linux Security Advisory #2004-0024 for more information. See References.
Trustix Secure Linux 1.5 and 2.0: 2.6.1-0.1tr or later
Trustix Secure Linux 2.1 and Enterprise Linux 2: 2.6.1-1tr or later
For Mandrake Linux:
Upgrade to the latest rsync package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:042 : rsync for more information. See References.
Mandrake Linux 9.1: 2.5.7-0.2.91mdk or later
Mandrake Linux 9.2: 2.5.7-0.2.92mdk or later
Mandrake Linux Multi Network Firewall 8.2: 2.5.4-2.2.M82mdk or later
Mandrake Linux Corporate Server 2.1: 2.5.5-5.2.C21mdk or later
Mandrake Linux 10.0: 2.6.0-1.1.100mdk or later
For Slackware Linux:
Upgrade to the latest rsync package, as listed below. Refer to slackware-security Mailing List, Mon, 3 May 2004 13:06:08 -0700 (PDT) for more information. See References.
Slackware Linux 8.1 and 9.0: 2.6.2-i386-1 or later
Slackware Linux 9.1 and -current: 2.6.2-i486-1 or later
For Red Hat Linux:
Upgrade to the latest rsync package, as listed below. Refer to RHSA-2004:192-06 for more information. See References.
Red Hat Enterprise Linux AS (v. 2.1), ES (v. 2.1), WS (v. 2.1), and Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor: 2.5.7-3.21AS or later
Red Hat Enterprise Linux AS (v. 3), ES (v. 3), WS (v. 3), Desktop: 2.5.7-4.3E.x86_64 or later
For Gentoo Linux:
Upgrade to the latest version of rsync (2.6.0-r2 or later), as listed in GLSA 200407-10. See References.
For Conectiva Linux:
Upgrade to the latest rsync package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:881 for more information. See References.
Conectiva Linux 9: 2.5.7-13508U90_2cl or later
For OpenPKG:
Refer to OpenPKG Security Advisory OpenPKG-SA-2004.025 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
File Manipulation
References:
- CIAC Information Bulletin O-134, Debian rsync at http://www.ciac.org/ciac/bulletins/o-134.shtml.
- CIAC Information Bulletin O-212, Apple Security Update at http://www.ciac.org/ciac/bulletins/o-212.shtml.
- Conectiva Linux Security Announcement CLSA-2004:881, Fix for path sanitation vulnerabilities at http://distro.conectiva.com.br/atualizacoes/index.php?id=a&anuncio=000881.
- rsync download Web page, rsync at http://samba.org/rsync/download.html.
- Samba Web site, http://samba.org/ftp/rsync/NEWS at http://samba.org/ftp/rsync/NEWS.
- slackware-security Mailing List, Mon, 3 May 2004 13:06:08 -0700 (PDT), rsync update (SSA:2004-124-01) at http://www.slackware.org/security/viewer.php?l=slackware-security&y=2004&m=slackware-security.403462.
- Trustix Secure Linux Security Advisory #2004-0024, rsync at http://www.linuxsecurity.com/content/view/106003/109/. (From LinuxSecurity archive)
- BID-10247: RSync Configured Module Path Escaping Vulnerability
- CVE-2004-0426: rsync before 2.6.1 does not properly sanitize paths when running a read/write daemon without using chroot, which allows remote attackers to write files outside of the module's path.
- DSA-499: rsync -- directory traversal
- GLSA-200407-10: rsync: Directory traversal in rsync daemon
- OpenPKG-SA-2004.025: Rsync
- RHSA-2004-192: rsync security update
- SA11514: rsync Allows Writing Files Outside the Intended Directory
Reported:
Apr 30, 2004
The information within this database may change without notice. 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. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
