[VulnWatch] iDEFENSE Security Advisory 06.22.05: Multiple Vendor Cacti config_settings.php Remote Code Execution Vulnerability
From: iDEFENSE Labs (labs-no-reply_at_idefense.com)
Date: Wed, 22 Jun 2005 09:54:13 -0400 To: <email@example.com>, <firstname.lastname@example.org>, <email@example.com>
Multiple Vendor Cacti config_settings.php Remote Code Execution
iDEFENSE Security Advisory 06.22.05
June 22, 2005
Cacti is a round-robin database (RRD) tool that helps create graphs from
database information and is available on multiple Linux distributions.
Cacti contains an input validation error in the config_settings.php
script which allows an attacker to include arbitrary PHP code from
remote sites. This in effect allows arbitrary code execution with the
privileges of the web server. The vulnerability specifically exists due
to the script trusting a user supplied include_path variable. The
following example demonstrates how this might be exploited:
In this way the file "http://attackersite.com/config_arrays.php" will be
included and executed on the vulnerable server with the privileges of
the web server.
Successful exploitation of this vulnerability allows a remote attacker
to gain shell access with the privileges of the web server. An attacker
can then attempt to escalate privileges using local exploits, possibly
allowing a full root compromise.
iDEFENSE has confirmed the existence of this vulnerability on Cacti
0.8.6c. Earlier versions are suspected vulnerable. The following vendors
include susceptible Cacti packages within their respective operating
The Debian Project
The FreeBSD Project
Novell Inc. (SuSE)
Require authentication to access the Cacti installation. Restrict access
to web servers using Cacti to only trusted hosts.
VI. VENDOR RESPONSE
Cacti 0.8.6e has been released to address this vulnerability and is
available for download at:
Release notes for Cacti 0.8.6e can be found at:
VII. CVE INFORMATION
The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CAN-2005-1526 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org), which standardizes names for
VIII. DISCLOSURE TIMELINE
05/12/2005 Initial vendor notification
05/15/2005 Initial vendor response
06/22/2005 Coordinated public disclosure
Maciej Piotr Falkiewicz is credited with this discovery.
Get paid for vulnerability research
Free tools, research and upcoming events
X. LEGAL NOTICES
Copyright (c) 2005 iDEFENSE, Inc.
Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email firstname.lastname@example.org for permission.
Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,