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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:
7 ~# ?7 C+ X; `4 n. t, e3 X6 F) i
7 l. o. a* k+ ^  n2 h: MFCKEditor ASP Version 2.6.8 File Upload Protection Bypass
0 Y5 N2 o" O* }* C. h0 t' S* f
/ k% |* p4 Z4 c1 n+ R& y3 `* W$ a( D- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
3 i, u; V. z8 c& ?9 N" i- Credit goes to: Mostafa Azizi, Soroush Dalili( i7 s, s, X. N; m) P, F7 M" o
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
) J. x+ A; o9 @- Description:
( I2 H% B% I! X" t% C, w! EThere is no validation on the extensions when FCKEditor 2.6.8 ASP version is/ H+ h  a. L# h) n% x+ h; x
dealing with the duplicate files. As a result, it is possible to bypass- s  E+ H8 Q4 n' ^9 Z8 _% E# W
the protection and upload a file with any extension.) `: {4 g$ B  n1 k6 E
- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
. ?  W& u6 Z% q+ e* Y- Solution: Please check the provided reference or the vendor website.
' [! [: q( H  `& T9 d7 Y* ^- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
$ m; E6 V4 R3 E0 S"
# o9 I: u7 u$ @, y1 C# a/ K- lNote: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
& ]1 ^- O& h7 B8 uIn “config.asp”, wherever you have:
: m  w7 O- ]; Y' X3 B$ k      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
, g5 R! k& x0 \8 V$ i' u- cChange it to:& |( X) t+ Z7 ]5 P/ t
      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”. t6 B% G( `; u! `- v* `: G
) |3 I# ]' m/ D$ ]' o9 x
5 J; M& Y( G. b' b, l( Y0 @3 T& |
1 T+ d. }, E- b9 c8 f
$ Z( _- L. |3 b+ Q+ b# S1 l: ?& i
5 t! x  l' \/ E* b1 W
php测试无效1 Q. a$ T4 x8 O0 Q; b9 ?8 O
asp/aspx测试成功:
8 X! h9 s( ~" _' E' Z- E来到/FCKeditor/editor/filemanager/connectors/test.html
5 \+ E) I3 m0 v+ `因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt% a& w3 `8 I5 z' Y9 y5 Y, F0 Z* ?
3 O5 X# F, N) f/ x, w  W7 D7 u" E
burpsuite上传包并修改,repeater
9 k/ M' s9 |# Y6 C名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
9 }5 t2 s9 X3 w1 g) Q' B$ |1 I
' {/ U' M& f6 z/ Q# l/ C2 p如图,webshell为:http://localhost/userfiles/file/asd(1).asp6 N7 ^1 u, b, p/ p$ L/ N/ C6 C9 x
- |' v9 ~$ |* g" d' ]  \8 C) J  e
回复

使用道具 举报

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

本版积分规则

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