Bug 958002 - (CVE-2013-4214) CVE-2013-4214 Nagios core: html/rss-newsfeed.php insecure temporary file usage
CVE-2013-4214 Nagios core: html/rss-newsfeed.php insecure temporary file usage
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All All
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 994762 994764 994779 994780
Blocks: 958515
  Show dependency treegraph
Reported: 2013-04-30 01:41 EDT by Kurt Seifried
Modified: 2016-09-16 01:15 EDT (History)
14 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 957481
: CVE-2013-2029 (view as bug list)
Last Closed: 2014-03-06 21:15:48 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kurt Seifried 2013-04-30 01:41:43 EDT
+++ 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 14:35:03 EDT
This has been reported upstream: http://tracker.nagios.org/view.php?id=450
Comment 4 Kurt Seifried 2013-08-07 21:48:17 EDT
Created nagios tracking bugs for this issue:

Affects: fedora-all [bug 994779]
Affects: epel-6 [bug 994780]
Comment 5 Lon Hohberger 2013-10-23 15:59:38 EDT
This is not fixed by nagios 3.5.1.
Comment 6 Lon Hohberger 2013-10-23 17:49:21 EDT
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 12:02:58 EST

This issue was discovered by Grant Murphy of the Red Hat Product Security Team.
Comment 8 errata-xmlrpc 2013-11-18 14:25:43 EST
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 15:30:26 EST
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.