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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
exploiut-db:- C: q: N* I# z% T# f1 [% v

/ T& k! U* i9 Z# jFCKEditor ASP Version 2.6.8 File Upload Protection Bypass
/ }( U0 I8 M, m" i2 N! g& i
8 z7 Y! \3 z* T3 m! X8 G/ Y, a( O5 N- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
6 F9 g: v9 m( c/ F0 V& R- Credit goes to: Mostafa Azizi, Soroush Dalili5 {* F( z1 C8 K. f" y+ i
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/. K$ Y1 D1 n% v7 ]& z% o
- Description:% I% X% @- K6 ~; [8 ^
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is
& }' m8 C. j/ j3 H, Gdealing with the duplicate files. As a result, it is possible to bypass
) U) b  j( l6 g  }% Athe protection and upload a file with any extension.
7 }5 w+ C4 |7 P7 O6 K2 x- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
  r' I! ~3 W; v- E8 U- Solution: Please check the provided reference or the vendor website.
$ {1 Y4 X; R% w# @0 F4 ]% u# l- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
) A. N0 b5 M) O+ E0 H2 v"# B- A( y2 U& O: h, u
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
4 R$ [  a& |9 \* m) r  zIn “config.asp”, wherever you have:) I: _2 m5 K, f# Q
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
" x# K3 m" l$ u( |6 NChange it to:& H4 |+ W  a/ s8 p3 o
      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”
. k, D8 Q; R* e# W: R( T$ o4 O* l( w7 p$ T2 Q: K! y
/ t: m- f) ?7 w/ p7 }
* b$ j: B" n% M; e+ l

/ f+ T. m1 B% g- M- s6 R* Z8 Z1 x4 Y2 e
php测试无效5 W4 Q. ]. ~/ }  D$ u7 d
asp/aspx测试成功:
' j" Z; Y3 h$ K来到/FCKeditor/editor/filemanager/connectors/test.html
5 F& |7 p) `1 L5 Z/ G因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
1 c6 o' S* {1 d( B7 W( i: z+ ]
/ e! u# N$ V' gburpsuite上传包并修改,repeater* y& I6 ?- R) P4 q* _
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
3 l; I4 F7 Z9 r% F) ]
) h# Q4 T% W' b9 R; d" h% R如图,webshell为:http://localhost/userfiles/file/asd(1).asp0 c5 L+ z- M6 o8 y- K% r; D

# |/ {% j* _- O/ t6 m! k
回复

使用道具 举报

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

本版积分规则

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