Simple Machines Forum 'ManageBoards.php'SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1193610 漏洞类型 SQL注入
发布时间 2006-09-05 更新时间 2006-09-05
CVE编号 CVE-2006-4564 CNNVD-ID CNNVD-200609-048
漏洞平台 N/A CVSS评分 5.1
|漏洞来源
https://www.securityfocus.com/bid/83692
https://cxsecurity.com/issue/WLB-2006090034
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200609-048
|漏洞详情
SimpleMachinesForum1.1RC3的Sources/ManageBoards.php中存在SQL注入漏洞,远程攻击者通过cur_cat参数执行任意SQL命令。
|漏洞EXP
Hi,
There is a sql injection in SMF 1.1 RC3, in admin section :
When an administrator is going to add a new board, the "cur_cat" parameter
is not checked properly :

File /Sources/ManageBoards.php, Line 609 :
:: // Create a new board...
:: if (isset($_POST['add']))
:: {
:: 	// New boards by default go to the bottom of the category.
:: 	if (empty($_POST['new_cat']))
<span class="quotelev2">>> 		$boardOptions['target_category'] = $_POST['cur_cat'];
</span>
:: 	if (!isset($boardOptions['move_to']))
:: 		$boardOptions['move_to'] = 'bottom';
:: 
<span class="quotelev2">>> 	createBoard($boardOptions);
</span>
:: }

And in "createBoard()" function :

File /Sources/Subs-Boards.php, Line 1095 :
:: // Insert a board, the settings are dealt with later.
:: db_query("
:: 	INSERT INTO {$db_prefix}boards
:: 		(ID_CAT, name, description, boardOrder, memberGroups)
<span class="quotelev2">>> 	VALUES ($boardOptions[target_category], SUBSTRING('$boardOptions[board_name]', 1, 255), '', 0, '-1,0')", __FILE__, __LINE__);
</span>
This is in administration section, so it doesnt seem to be critical.

- Omid
|受影响的产品
Simplemachines Smf 1.1 RC3
|参考资料

来源:XF
名称:smf-manageboards-sql-injection(28716)
链接:http://xforce.iss.net/xforce/xfdb/28716
来源:VUPEN
名称:ADV-2006-3435
链接:http://www.frsirt.com/english/advisories/2006/3435
来源:SECUNIA
名称:21740
链接:http://secunia.com/advisories/21740
来源:BUGTRAQ
名称:20060901SqlinjectioninSMF[Adminsection]
链接:http://archives.neohapsis.com/archives/bugtraq/2006-09/0009.html
来源:SREASON
名称:1506
链接:http://securityreason.com/securityalert/1506