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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:4 h9 z! C, w2 h4 z& s/ r# _6 m, L
/ r# G- e  l# E0 z
FCKEditor ASP Version 2.6.8 File Upload Protection Bypass
9 R9 l7 ^# D9 Z" ^/ x0 n6 p3 J2 d- }" O- @' |$ m
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
4 E3 \6 V! _) b) b* c: h5 u  M- Credit goes to: Mostafa Azizi, Soroush Dalili9 Y9 w: F1 ^4 B5 M" n$ e5 ?) r
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/$ r/ m9 H1 @# C* ]& |
- Description:
, A% Z1 }3 Q- f. B0 X9 _There is no validation on the extensions when FCKEditor 2.6.8 ASP version is( n4 x- k. `6 C
dealing with the duplicate files. As a result, it is possible to bypass) _9 r. f/ z9 U4 @: E& a( P
the protection and upload a file with any extension.
( D( w' r! r8 t2 E. k6 S& d- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
7 _0 a4 {# ]9 A- Solution: Please check the provided reference or the vendor website.
8 x0 F* f0 g) Y) F* [- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
$ s$ f  K9 J% h  m" f- R"1 J' T  W. x2 C. l- b* O! @
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
; D  ^0 U( r' e+ hIn “config.asp”, wherever you have:
% T( D( ~/ p( ]      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
  B* _3 z- ~! t  F: K" UChange it to:' N- Q7 A2 ^# y, s, F# E7 w/ t3 C
      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”/ m# P$ X) W6 ^; K& w$ e" V, `
& t  ]; S  [! J. x' k
& _- X( P( N0 Y/ F7 n" D
+ L3 Z# ^% ]' O3 v+ p6 v2 t
0 K$ |) O: }3 K. B! D/ _
' y# A2 {- N" u8 T$ c( S" i2 h7 q
php测试无效! z6 \7 [9 g- y% Y1 v, A
asp/aspx测试成功:
$ ~/ q6 z; z# j5 x: y/ W& E: h  Q$ N来到/FCKeditor/editor/filemanager/connectors/test.html
, H/ w$ v( L4 D7 G& K3 W因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
6 X- }- K  ?! {! ^: e+ H  b. q2 O, v2 y8 c" W/ ]
burpsuite上传包并修改,repeater) ^) ?( G, m" W1 i7 Y' _# d/ w5 u# A6 z
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp7 [4 E8 G0 M! D

) c4 x6 Q1 |5 n$ `如图,webshell为:http://localhost/userfiles/file/asd(1).asp+ _: w( I: {3 s9 N! }, k0 l
+ ]8 K1 P# s* Y' ?6 x# g
回复

使用道具 举报

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

本版积分规则

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