Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 480350 (CVE-2013-4215)

Summary: net-analyzer/nagios-plugins: IPXPING_COMMAND uses fixed location in /tmp (CVE-2013-4215)
Product: Gentoo Security Reporter: Agostino Sarubbo <ago>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED INVALID    
Severity: minor CC: mjo, sysadmin
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=957482
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2013-08-09 12:30:15 UTC
From ${URL} :

Found during an audit of openstack and all its dependencies.


Error: nagios-plugins-1.4.16-6.el6ost/nagios-plugins-1.4.16/contrib/check_ipxping.c

    #define IPXPING_COMMAND "/tmp/ipxping/ipxping"

    The IPXPING_COMMAND is used to build command line that is executed 
    later on using execv. As this is a predictable location in a public area
    a local attacker may place their own file in that location or symlink to   
    another command. AFAICT little or no checks are made about the file 
    permissions or ownership.


@maintainer(s): after the bump, in case we need to stabilize the package, please say explicitly if it is ready for the stabilization or not.
Comment 1 GLSAMaker/CVETool Bot gentoo-dev 2014-08-19 23:03:20 UTC
CVE-2013-4215 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2013-4215):
  The IPXPING_COMMAND in contrib/check_ipxping.c in Nagios Plugins 1.4.16
  allows local users to gain privileges via a symlink attack on
  /tmp/ipxping/ipxping.
Comment 2 Michael Orlitzky gentoo-dev 2014-11-26 14:55:57 UTC
I'm pretty sure this is INVALID for us. We don't even build the check_ipxping plugin; both 1.4.x ebuilds immediately delete the check_ipxping.c file:

  cd contrib/
  dodoc *README*

  # remove stuff that is way too broken to fix, or for which the USE
  # flag has been removed.
  rm -r tarballs aix \
	check_compaq_insight.pl *.c *README* \
	$(usex !jabber nagios_sendim.pl) \
	$(usex !smart check_smart.pl)
Comment 3 Michael Orlitzky gentoo-dev 2015-08-31 14:34:29 UTC
The 2.x series of nagios-plugins is now stable anyway, and the 1.4.x series is gone. So this is taken-care-of either way.
Comment 4 Kristian Fiskerstrand (RETIRED) gentoo-dev 2016-11-22 17:09:12 UTC
(In reply to Michael Orlitzky from comment #2)
> I'm pretty sure this is INVALID for us. We don't even build the
> check_ipxping plugin; both 1.4.x ebuilds immediately delete the
> check_ipxping.c file:
> 

Thanks, this can indeed be closed INVALID