portage-ng / portage / app-backup / rsnapshot / 1.4.5-r1
portage-ng glsa
1 advisory reference app-backup/rsnapshot · none place version 1.4.5-r1 in a vulnerable range
▸ GLSA 200504-12 rsnapshot: Local privilege escalation this version unaffected high local 2005-04-13

rsnapshot allows a local user to take ownership of local files, resulting in privilege escalation.

Announced
2005-04-13
Revised
2007-12-30 (revision 5)
Access
local
Bugs
#88681
Advisory
https://security.gentoo.org/glsa/200504-12

Affected packages

PackageArchVulnerableUnaffected
app-backup/rsnapshot*< 1.2.1>= 1.2.1, >= 1.1.7 (revision)

Background

rsnapshot is a filesystem snapshot utility based on rsync, allowing local and remote systems backups.

Description

The copy_symlink() subroutine in rsnapshot follows symlinks when changing file ownership, instead of changing the ownership of the symlink itself.

Impact

Under certain circumstances, local attackers can exploit this vulnerability to take ownership of arbitrary files, resulting in local privilege escalation.

Workaround

The copy_symlink() subroutine is not called if the cmd_cp parameter has been enabled.

Resolution

All rsnapshot users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose app-backup/rsnapshot

References