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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
exploiut-db:, r0 [1 m4 Z% g' w3 b

$ ~8 U$ y0 Y: h  F7 MFCKEditor ASP Version 2.6.8 File Upload Protection Bypass7 [" m; M7 K( r% Q! f, d  _

) M+ N. q5 b* K+ N$ z$ N- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass  x4 r& I5 k  @8 l% E7 y' T
- Credit goes to: Mostafa Azizi, Soroush Dalili" b3 ]/ H! C$ h. w
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/6 X3 g) i/ J5 x- ]7 K
- Description:' h6 V3 A& N! s. S9 b
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is
5 d+ s' m5 S* d- W# cdealing with the duplicate files. As a result, it is possible to bypass
+ F! ?" M% `8 ~: J3 }: L" e# Lthe protection and upload a file with any extension.
2 V6 I3 L* `" Z/ v- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
* o" u; T( e) q* L. h- Solution: Please check the provided reference or the vendor website.+ P$ ]( ?1 Q; s$ N( Q
- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
2 |: h8 L2 {. a! i6 j4 x+ ~"
. b" f* F  b1 p1 h/ f* e4 t, g! hNote: Quick patch for FCKEditor 2.6.8 File Upload Bypass:2 i6 A4 H" H% m) T! L0 I; l1 Q7 z
In “config.asp”, wherever you have:  }# e6 z/ r- t1 A
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”& O; E, V  T, P: `" d5 ^
Change it to:
3 b0 Q4 X6 J/ b8 L      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”2 Z# w  f0 O8 l# \

( s, E; O/ [! \! ~7 h
2 i7 y% Y. d" ]/ k  @
, @& c, `+ }( R! R' F  k/ _, ^
: l" j3 z! ]" u% f5 ?# Z' q, Z, o/ }& l2 S
php测试无效# p; S4 M1 D* k
asp/aspx测试成功:
! U/ M; R# q  Z/ E% n0 X  V来到/FCKeditor/editor/filemanager/connectors/test.html
" x/ G5 C9 m/ k3 G& D, e- j因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
6 G+ d. q6 s+ M
8 y5 o) q( _+ s2 @, R- Uburpsuite上传包并修改,repeater' @8 |, f  _! p6 j, J  g
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp- F4 f7 ]- W. p0 A& e
/ q) w5 G6 O) Y0 b+ r
如图,webshell为:http://localhost/userfiles/file/asd(1).asp
3 [" a% `3 Z. M7 [( p  ?$ R* j9 S5 B
回复

使用道具 举报

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

本版积分规则

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