Bug 1046305 (CVE-2013-7300, CVE-2013-7301)

Summary: CVE-2013-7300 CVE-2013-7301 cantata: internal http server allows to download any file
Product: [Other] Security Response Reporter: Ratul Gupta <ratulg>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: i, rdieter
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 08:45:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1046306    
Bug Blocks:    

Description Ratul Gupta 2013-12-24 12:12:57 UTC
Cantata, a client for Music Player Daemon, was found to have a security flaw, where it allows attacker to download any readable file on the system.

It starts internal http server on external network interface by default, and it's not possible to disable http server, it was found that cantata checks for two things:

1. User-Agent in http/httpsocket.cpp:
	if (str.startsWith("User-Agent:") && str.contains("Music Player Daemon")) {
            return true;
        }

2. 'cantata=song' in url in http/httpserver.cpp:
	if (q.hasQueryItem("cantata") && q.queryItemValue("cantata")=="song")

So, anyone can craft a simple command based on these two criterias and can download any file targeted, which cantata allows.

References:
https://bugs.gentoo.org/show_bug.cgi?id=495182

Comment 1 Ratul Gupta 2013-12-24 12:13:49 UTC
Created cantata tracking bugs for this issue:

Affects: fedora-all [bug 1046306]

Comment 2 Vincent Danen 2013-12-24 15:55:42 UTC
Also note the upstream bug that was also filed:

https://code.google.com/p/cantata/issues/detail?id=356

As well, the default firewall rules would prevent external users from accessing this web server unless the user explicitly allowed it or turned the firewall off.

There is currently no patch available.

Comment 3 Fedora Update System 2014-01-20 03:01:45 UTC
cantata-1.2.2-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2014-01-20 03:08:12 UTC
cantata-1.2.2-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Ratul Gupta 2014-01-20 11:06:23 UTC
CVE Request:
http://seclists.org/oss-sec/2014/q1/121

Comment 6 Christopher Meng 2014-01-21 06:13:39 UTC
You can close this now.