Bug 958002 (CVE-2013-4214) - CVE-2013-4214 Nagios core: html/rss-newsfeed.php insecure temporary file usage
Summary: CVE-2013-4214 Nagios core: html/rss-newsfeed.php insecure temporary file usage
Alias: CVE-2013-4214
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: All
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 994762 994764 994779 994780
Blocks: 958515
TreeView+ depends on / blocked
Reported: 2013-04-30 05:41 UTC by Kurt Seifried
Modified: 2023-05-12 22:20 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 957481
: CVE-2013-2029 (view as bug list)
Last Closed: 2014-03-07 02:15:48 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:1526 0 normal SHIPPED_LIVE Moderate: nagios security update 2013-11-19 00:23:30 UTC

Description Kurt Seifried 2013-04-30 05:41:43 UTC
+++ This bug was initially created as a clone of Bug #957481 +++

Some potential issues discovered whilst auditing openstack & dependencies for tempfile vulnerabilities.

Warning: nagios-3.4.4-1.el6ost/nagios/html/rss-newsfeed.php

    define('MAGPIE_CACHE_DIR', '/tmp/magpie_cache');

    Magpie RSS cache dir is set to a fixed location in /tmp. The cached RSS 
    content is then used to build html content that could be served to
    an end user.

Comment 3 Kurt Seifried 2013-04-30 18:35:03 UTC
This has been reported upstream: http://tracker.nagios.org/view.php?id=450

Comment 4 Kurt Seifried 2013-08-08 01:48:17 UTC
Created nagios tracking bugs for this issue:

Affects: fedora-all [bug 994779]
Affects: epel-6 [bug 994780]

Comment 5 Lon Hohberger 2013-10-23 19:59:38 UTC
This is not fixed by nagios 3.5.1.

Comment 6 Lon Hohberger 2013-10-23 21:49:21 UTC
define('MAGPIE_DIR', './includes/rss/');
define('MAGPIE_CACHE_ON', 0);
define('MAGPIE_CACHE_AGE', 0);
define('MAGPIE_CACHE_DIR', '/tmp/magpie_cache');

Defining MAGPIE_CACHE_ON to 1 is required in order for MAGPIE_CACHE_DIR to be used.

rss_newsfeed.php disables the cache, so this directory is not used without editing the PHP code (note: *not* a configuration file).

As it is unused without editing the rss-newsfeed.php file, I will simply comment the line out *and* replace it with a usage comment.

Comment 7 Martin Prpič 2013-11-14 17:02:58 UTC

This issue was discovered by Grant Murphy of the Red Hat Product Security Team.

Comment 8 errata-xmlrpc 2013-11-18 19:25:43 UTC
This issue has been addressed in following products:

  OpenStack 3 for RHEL 6

Via RHSA-2013:1526 https://rhn.redhat.com/errata/RHSA-2013-1526.html

Comment 9 Fedora Update System 2015-12-05 20:30:26 UTC
nagios-4.0.8-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

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