Bug 915410 (CVE-2014-9512) - VUL-0: CVE-2014-9512: rsync: path spoofing attack vulnerability
Summary: VUL-0: CVE-2014-9512: rsync: path spoofing attack vulnerability
Status: RESOLVED FIXED
: 960191 (view as bug list)
Alias: CVE-2014-9512
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Deadline: 2016-01-22
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/113239/
Whiteboard: CVSSv2:SUSE:CVE-2014-9512:6.1:(AV:N/A...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-29 15:21 UTC by Victor Pereira
Modified: 2019-04-26 09:31 UTC (History)
6 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Pereira 2015-01-29 15:21:01 UTC
CVE-2014-9512

n newest version rsync(3.1.1),directly modify the file path into absolute path is
not hijack succeed due to the security checks,but using symbolic links still can bypass
security checks and spoofing client.When a client uses parameter -a to synchronize
files of the server-side(default),for example:

	
rsync -avzP  127.0.0.1::share   /tmp/share

Rsync recursive synchronous all files,An attacker can hijack the file path by modifying
the code of the server-side,allows remote servers to write to arbitrary files, and
consequently execute arbitrary code .

References:
http://xteam.baidu.com/?p=169 (original bug report)
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-9512
http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-9512.html
Comment 1 Swamp Workflow Management 2015-01-29 23:01:30 UTC
bugbot adjusting priority
Comment 2 Bernhard Wiedemann 2015-02-02 19:00:39 UTC
This is an autogenerated message for OBS integration:
This bug (915410) was mentioned in
https://build.opensuse.org/request/show/283800 13.2+13.1 / rsync
Comment 3 Vítězslav Čížek 2015-02-02 19:01:13 UTC
Only 13.2 and Factory affected.
Other distributions have rsync <= 3.1.0.

Back to security-team.
Comment 4 Swamp Workflow Management 2015-02-10 15:05:19 UTC
openSUSE-SU-2015:0249-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 915410
CVE References: CVE-2014-9512
Sources used:
openSUSE 13.2 (src):    rsync-3.1.1-2.4.1
openSUSE 13.1 (src):    rsync-3.1.0-21.12.1
Comment 5 Marcus Meissner 2015-02-10 15:09:46 UTC
released
Comment 6 Vítězslav Čížek 2016-01-07 13:21:58 UTC
Reopening.
We will backport the countermeasures against malicious servers.

rsync 3.1.1 introduced a filtering measure to prevent malicious servers from sending invalid files from outside of the specified directory:
https://git.samba.org/?p=rsync.git;a=commitdiff;h=4cad402ea8a91031f86c53961d78bb7f4f174790
The feature was incomplete and missed the attack vector that uses symlink to traverse directories.
This was assigned CVE-2014-9512.

The symlink trick is fixed by:
https://git.samba.org/rsync.git/?p=rsync.git;a=commit;h=962f8b90045ab331fc04c9e65f80f1a53e68243b
Comment 7 Vítězslav Čížek 2016-01-07 13:22:41 UTC
*** Bug 960191 has been marked as a duplicate of this bug. ***
Comment 9 Swamp Workflow Management 2016-01-08 10:09:08 UTC
An update workflow for this issue was started.
This issue was rated as moderate.
Please submit fixed packages until 2016-01-22.
When done, reassign the bug to security-team@suse.de.
https://swamp.suse.de/webswamp/wf/62416
Comment 10 SMASH SMASH 2016-01-08 10:09:40 UTC
An update workflow for this issue was started.

This issue was rated as "important".
Please submit fixed packages until "Jan. 15, 2016".

When done, reassign the bug to "security-team@suse.de".
/update/62416/.
Comment 12 Vítězslav Čížek 2016-01-11 17:54:34 UTC
The fix for the symlink issue is still incomplete.
The countermeasure was implemented for the new incremental recursive algorithm (inc-recurse) only.
The new algorithm is used by the default since rsync 3.0.
However both server and client must support protocol >= 30.

A malicious server can bypass the symlink check by negotiating a protocol version < 30.
Thus it can still overwrite arbitrary files (although with \0 bytes it seems, needs more investigation)
Comment 13 Marcus Meissner 2016-01-19 11:40:24 UTC
http://xteam.baidu.com/?p=169 has
Comment 15 Swamp Workflow Management 2016-01-19 23:11:44 UTC
SUSE-SU-2016:0173-1: An update that solves two vulnerabilities and has two fixes is now available.

Category: security (moderate)
Bug References: 898513,900914,915410,922710
CVE References: CVE-2014-8242,CVE-2014-9512
Sources used:
SUSE Linux Enterprise Server 12-SP1 (src):    rsync-3.1.0-6.1
SUSE Linux Enterprise Server 12 (src):    rsync-3.1.0-6.1
SUSE Linux Enterprise Desktop 12-SP1 (src):    rsync-3.1.0-6.1
SUSE Linux Enterprise Desktop 12 (src):    rsync-3.1.0-6.1
Comment 16 Swamp Workflow Management 2016-01-20 12:12:22 UTC
SUSE-SU-2016:0176-1: An update that fixes two vulnerabilities is now available.

Category: security (moderate)
Bug References: 900914,915410
CVE References: CVE-2014-8242,CVE-2014-9512
Sources used:
SUSE Linux Enterprise Server for VMWare 11-SP3 (src):    rsync-3.0.4-2.49.1
SUSE Linux Enterprise Server 11-SP4 (src):    rsync-3.0.4-2.49.1
SUSE Linux Enterprise Server 11-SP3 (src):    rsync-3.0.4-2.49.1
SUSE Linux Enterprise Desktop 11-SP4 (src):    rsync-3.0.4-2.49.1
SUSE Linux Enterprise Desktop 11-SP3 (src):    rsync-3.0.4-2.49.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    rsync-3.0.4-2.49.1
SUSE Linux Enterprise Debuginfo 11-SP3 (src):    rsync-3.0.4-2.49.1
Comment 17 Vítězslav Čížek 2016-06-03 12:03:59 UTC
The symlink attack using protocol downgrade was reported upstream:
https://bugzilla.samba.org/show_bug.cgi?id=11949
Comment 18 Vítězslav Čížek 2016-06-06 09:17:16 UTC
The old recursive algorithm is fixed in https://git.samba.org/rsync.git/?p=rsync.git;a=commit;h=e12a6c087ca1eecdb8eae5977be239c24f4dd3d9
Comment 22 Bernhard Wiedemann 2016-06-16 16:00:32 UTC
This is an autogenerated message for OBS integration:
This bug (915410) was mentioned in
https://build.opensuse.org/request/show/402744 42.1 / rsync
https://build.opensuse.org/request/show/402745 13.2 / rsync
Comment 23 Swamp Workflow Management 2016-06-24 14:09:35 UTC
openSUSE-SU-2016:1671-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 915410
CVE References: CVE-2014-9512
Sources used:
openSUSE Leap 42.1 (src):    rsync-3.1.0-6.1
Comment 24 Swamp Workflow Management 2016-06-28 13:07:51 UTC
openSUSE-SU-2016:1695-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 915410
CVE References: CVE-2014-9512
Sources used:
openSUSE 13.2 (src):    rsync-3.1.1-2.10.2
Comment 25 Swamp Workflow Management 2016-07-25 13:09:18 UTC
SUSE-SU-2016:1866-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 915410
CVE References: CVE-2014-9512
Sources used:
SUSE Linux Enterprise Server 11-SP4 (src):    rsync-3.0.4-2.52.1
SUSE Linux Enterprise Debuginfo 11-SP4 (src):    rsync-3.0.4-2.52.1
Comment 29 Swamp Workflow Management 2016-08-24 17:08:59 UTC
SUSE-SU-2016:2151-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 915410
CVE References: CVE-2014-9512
Sources used:
SUSE Linux Enterprise Server 12-SP1 (src):    rsync-3.1.0-9.3
SUSE Linux Enterprise Desktop 12-SP1 (src):    rsync-3.1.0-9.3
Comment 32 Marcus Meissner 2016-12-22 12:30:39 UTC
released
Comment 33 Swamp Workflow Management 2018-01-10 12:10:25 UTC
This is an autogenerated message for OBS integration:
This bug (915410) was mentioned in
https://build.opensuse.org/request/show/563269 42.3 / rsync
Comment 34 Swamp Workflow Management 2018-01-15 14:18:43 UTC
openSUSE-SU-2018:0101-1: An update that solves four vulnerabilities and has three fixes is now available.

Category: security (moderate)
Bug References: 1028842,1062063,1066644,1071459,1071460,915410,999847
CVE References: CVE-2014-9512,CVE-2017-16548,CVE-2017-17433,CVE-2017-17434
Sources used:
openSUSE Leap 42.3 (src):    rsync-3.1.0-10.1
openSUSE Leap 42.2 (src):    rsync-3.1.0-7.3.1
Comment 35 Swamp Workflow Management 2019-04-26 09:31:50 UTC
This is an autogenerated message for OBS integration:
This bug (915410) was mentioned in
https://build.opensuse.org/request/show/698102 15.1 / rsync