Bug 1046305 (CVE-2013-7300, CVE-2013-7301) - CVE-2013-7300 CVE-2013-7301 cantata: internal http server allows to download any file
Summary: CVE-2013-7300 CVE-2013-7301 cantata: internal http server allows to download ...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2013-7300, CVE-2013-7301
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1046306
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-24 12:12 UTC by Ratul Gupta
Modified: 2019-09-29 13:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 08:45:16 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gentoo 495182 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.