找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2692|回复: 0
打印 上一主题 下一主题

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:
; S: f4 ?; p2 {* e& L3 n) a0 Z( k& Z
FCKEditor ASP Version 2.6.8 File Upload Protection Bypass
/ n; o3 Z, Y, ?3 M
' l( {9 W# }4 ^$ @4 I* j* k9 B- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
0 }; ~) {+ v4 h/ M. |- Credit goes to: Mostafa Azizi, Soroush Dalili$ L6 w3 k  J  _5 W: A' g  K
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
$ m8 l5 g) ^3 z& b/ p- Description:
) ~9 U* i- x7 o" P3 bThere is no validation on the extensions when FCKEditor 2.6.8 ASP version is/ O' X+ T% E/ b  g" \
dealing with the duplicate files. As a result, it is possible to bypass
8 K: }" q0 o8 bthe protection and upload a file with any extension.
# [0 D2 O; D+ H4 h% `- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/% _& ?% q( F% M
- Solution: Please check the provided reference or the vendor website.! M9 p& `6 W# O4 V3 b! e
- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd7200 i1 L: O  b5 ^7 y
"9 I! w" Y3 G2 q+ [- ?
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:( k  \  d. Y$ J+ c, W* @9 t
In “config.asp”, wherever you have:: B& x9 x7 U9 v2 G: o6 ~2 h6 t2 n
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”0 T  t- e$ p9 h1 ?1 Z- S  y# u% T
Change it to:
. T! u  V5 E2 B5 ?* U9 T' R      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”/ p0 [4 x) }; J/ l2 K$ _" \' ?

* {2 M8 N5 }- R( ~
8 d. ~, q2 N4 w9 U1 h  |7 d2 |, k& c* x  C9 X) H$ M
7 \& l* K. A  ]" J

4 ?4 b6 @1 k- K5 t" r; Ophp测试无效
* S0 i# F% j0 K: k0 T* nasp/aspx测试成功:
6 h2 E% E5 R) s- q% [来到/FCKeditor/editor/filemanager/connectors/test.html
+ s# I; P0 i3 B因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
9 l' }9 z, M# T0 x+ l/ b0 Y% |3 f
burpsuite上传包并修改,repeater1 N% C3 P) V2 z
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp1 |% V' V" f1 |# N

6 ~4 n+ A) f3 E如图,webshell为:http://localhost/userfiles/file/asd(1).asp& G& r/ |: u- m, v; w; q

8 \- ?% Y% `+ v
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表