安全中国首页 > 文章中心 > 黑客编程
 
Fckeditor <=2.4.2 For php 任意上传文件漏洞
更新时间:2008-3-7 0:32:13
责任编辑:阿loosen
热 点:
Infos: Fckeditor <=2.4.2 For php 任意上传文件漏洞
Author: Maple-x
Date: 18/12/2007

FCKeditor是一款非常优秀的HTML在线编辑器。在处理PHP上传的地方存在严重的安全漏洞
导致用户可以上传任意文件

在fckeditor/editor/filemanager/upload/php/upload.php 61行

$sType = isset(  Fckeditor <=2.4.2 For php 任意上传文件漏洞 _ 安全中国www.anqn.com _ 全球最大中文黑客门户
 
 
安全中国首页 > 文章中心 > 黑客编程
 
Fckeditor <=2.4.2 For php 任意上传文件漏洞
更新时间:2008-3-7 0:32:13
责任编辑:阿loosen
热 点:
$Content$
 
相关文章
48小时热门文章
 
一日一软件
一日一动画
 
GET[’Type’] ) ?  Fckeditor <=2.4.2 For php 任意上传文件漏洞 _ 安全中国www.anqn.com _ 全球最大中文黑客门户
 
 
安全中国首页 > 文章中心 > 黑客编程
 
Fckeditor <=2.4.2 For php 任意上传文件漏洞
更新时间:2008-3-7 0:32:13
责任编辑:阿loosen
热 点:
$Content$
 
相关文章
48小时热门文章
 
一日一软件
一日一动画
 
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] ;

// Check if it is an allowed extension.
if ( ( count($arAllowed) > 0 && !in_array( $sExtension, $arAllowed ) )
|| ( count($arDenied) > 0 && in_array( $sExtension,
$arDenied ) ) )
SendResults( ’202’ ) ;

程序从 Fckeditor <=2.4.2 For php 任意上传文件漏洞 _ 安全中国www.anqn.com _ 全球最大中文黑客门户
 
 
安全中国首页 > 文章中心 > 黑客编程
 
Fckeditor <=2.4.2 For php 任意上传文件漏洞
更新时间:2008-3-7 0:32:13
责任编辑:阿loosen
热 点:
$Content$
 
相关文章
48小时热门文章
 
一日一软件
一日一动画
 
GET数组中获取Type变量,然后通过in_array进行类型判断。
但在config配置文件中

$Config[’ForceSingleExtension’] = true ;

$Config[’AllowedExtensions’][’File’] = array() ;
$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’) ;

$Config[’AllowedExtensions’][’Image’] =
array(’jpg’,’gif’,’jpeg’,’png’) ;
$Config[’DeniedExtensions’][’Image’] = array() ;

$Config[’AllowedExtensions’][’Flash’] = array(’swf’,’fla’) ;
$Config[’DeniedExtensions’][’Flash’] = array() ;

并未对Media类型进行上传文件类型的控制,导致用户上传任意文件

 
相关文章
48小时热门文章
 
一日一软件
一日一动画