Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ GLSA 200407-10 ] rsync: Directory traversal in rsync daemon
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index News & Announcements
View previous topic :: View next topic  
Author Message
GLSA
Bodhisattva
Bodhisattva


Joined: 25 Feb 2003
Posts: 3829
Location: Essen, Germany

PostPosted: Mon Jul 12, 2004 2:05 pm    Post subject: [ GLSA 200407-10 ] rsync: Directory traversal in rsync daemo Reply with quote

Gentoo Linux Security Advisory

Title: rsync: Directory traversal in rsync daemon (GLSA 200407-10)
Severity: normal
Exploitable: remote
Date: July 12, 2004
Bug(s): #49534
ID: 200407-10

Synopsis

Under specific conditions, the rsync daemon is vulnerable to a directory traversal allowing to write files outside a sync module.

Background

rsync is a utility that provides fast incremental file transfers. It is used to efficiently synchronize files between hosts and is used by emerge to fetch Gentoo's Portage tree. rsyncd is the rsync daemon, which listens to connections from rsync clients.

Affected Packages

Package: net-misc/rsync
Vulnerable: <= 2.6.0-r1
Unaffected: >= 2.6.0-r2
Architectures: All supported architectures


Description

When rsyncd is used without chroot ("use chroot = false" in the rsyncd.conf file), the paths sent by the client are not checked thoroughly enough. If rsyncd is used with read-write permissions ("read only = false"), this vulnerability can be used to write files anywhere with the rights of the rsyncd daemon. With default Gentoo installations, rsyncd runs in a chroot, without write permissions and with the rights of the "nobody" user.

Impact

On affected configurations and if the rsync daemon runs under a privileged user, a remote client can exploit this vulnerability to completely compromise the host.

Workaround

You should never set the rsync daemon to run with "use chroot = false". If for some reason you have to run rsyncd without a chroot, then you should not set "read only = false".

Resolution

All users should update to the latest version of the rsync package.
Code:
# emerge sync
# emerge -pv ">=net-misc/rsync-2.6.0-r2"
# emerge ">=net-misc/rsync-2.6.0-r2"


References

CAN-2004-0426


Last edited by GLSA on Sun Jul 30, 2006 4:16 am; edited 3 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index News & Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum