ShopSystems Index.PHP SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1192886 漏洞类型 SQL注入
发布时间 2006-11-15 更新时间 2006-11-16
CVE编号 CVE-2006-5935 CNNVD-ID CNNVD-200611-232
漏洞平台 N/A CVSS评分 7.5
|漏洞来源
https://cxsecurity.com/issue/WLB-2006110074
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200611-232
|漏洞详情
ShopSystems的index.php中存在SQL注入漏洞,远程攻击者可通过sessid参数执行任意SQL命令。
|漏洞EXP
[MajorSecurity Advisory #33]ShopSystems - SQL Injection Issue

Details
=======
Product: ShopSystems
Affected Version: <= 4.0
Immune Version: none
Security-Risk: moderated
Remote-Exploit: yes
Vendor-URL: http://www.shopsystems.biz
Vendor-Status: informed
Advisory-Status: published

Credits
============
Discovered by: David Vieira-Kurz
http://www.majorsecurity.de

Original Advisory:
============
http://www.majorsecurity.de/index_2.php?major_rls=major_rls33

Introduction
============
ShopSystems is a web shop system.

More Details
============
SQL injection:
Input passed directly to the "sessid" parameter in "index.php" is not properly sanitised before being used in a SQL query.
This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

Fix
===
none known

Solution
=============
Edit the source code to ensure that input is properly sanitised.
You should work with the "intval()" and "mysql_real_escape_string()" or "addslashes()" php-function to ensure that sql statements
can't be delivered over the "get" variables.

Example:
$pass = htmlentities($_POST['pass']);
$test = htmlspecialchars($_GET('test'));
$id = intval($_POST['id']);
?>

History/Timeline
================
03.11.2006 discovery of the vulnerability
04.11.2006 additional tests with other versions
04.11.2006 contacted the vendor
11.11.2006 advisory is written
11.11.2006 advisory released

MajorSecurity
=======
MajorSecurity is a German penetration testing and security research project
which consists of only one person at the present time.
I am looking for a sponsor.
You can find more Information on the MajorSecurity Project at
http://www.majorsecurity.de/
|参考资料

来源:XF
名称:shopsystem-index-sql-injection(30219)
链接:http://xforce.iss.net/xforce/xfdb/30219
来源:BID
名称:21005
链接:http://www.securityfocus.com/bid/21005
来源:BUGTRAQ
名称:20061111[MajorSecurityAdvisory#33]ShopSystems-SQLInjectionIssue
链接:http://www.securityfocus.com/archive/1/451315
来源:MISC
链接:http://www.majorsecurity.de/index_2.php?major_rls=major_rls33
来源:SECUNIA
名称:22867
链接:http://secunia.com/advisories/22867
来源:VUPEN
名称:ADV-2006-4511
链接:http://www.frsirt.com/english/advisories/2006/4511
来源:SREASON
名称:1871
链接:http://securityreason.com/securityalert/1871