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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:1 c7 X0 X5 I* c

0 p( a: U* Y6 I  p) T7 z5 R3 oFCKEditor ASP Version 2.6.8 File Upload Protection Bypass" f/ y* U& T+ G1 K6 {

- E0 Z6 o( R2 C/ D! Q0 p5 p- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass9 ~0 D4 Z: S6 |1 H8 A  ]3 S
- Credit goes to: Mostafa Azizi, Soroush Dalili
4 z* i6 E% e9 I5 ?6 \- n- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
6 ~2 G5 [' o3 o4 D- Description:3 \! Y6 Y, ~- X2 \  f
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is
0 u# n5 L; M: G9 F/ g1 {; ^dealing with the duplicate files. As a result, it is possible to bypass
  ?& o$ x2 b3 J- ?the protection and upload a file with any extension.
/ m1 u( U/ Q9 g5 @7 f0 J! S, V- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/+ Y  X0 F3 c. q6 w# ^
- Solution: Please check the provided reference or the vendor website.
9 s& D2 g; w6 M( n* t! m5 q% d- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
  P+ j# s$ L' x& A# F! Y& B/ [5 j"( Y7 q+ n+ |/ U
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:; }& Y& N6 z4 a+ k
In “config.asp”, wherever you have:% X4 S5 _+ p  v. h: p
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”' i. w- M& J/ Q% g
Change it to:
6 r$ R, L* F# P. U+ s6 Q- s      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”0 _1 t$ |. i# u( g
7 G; {+ {# a9 t1 q$ O* L
3 J/ S. z3 }0 L' @

( |% @) b% \8 G8 B, C
% ^6 P; m( f3 Q7 _
7 w8 B4 j% W$ n- z+ G# p7 h& ophp测试无效
: z* D- N4 a3 _- u8 z# n5 `asp/aspx测试成功:
  _- g' W% c/ Q# N& r& J来到/FCKeditor/editor/filemanager/connectors/test.html5 K# `7 n# s9 q/ I2 @
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
& B9 T/ Q3 @" e! [  x  j
- G; J  X6 |( d8 Oburpsuite上传包并修改,repeater& H0 E( C* ~6 Q9 P% U
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
) ?9 o. O7 Q9 c( r. }# c. h9 L- @
如图,webshell为:http://localhost/userfiles/file/asd(1).asp" ~6 |  I" G! H) H) T9 _1 E
9 F+ }$ t( i: b( W# f
回复

使用道具 举报

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

本版积分规则

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