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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:# j8 e- I1 A/ i& q5 Q
+ [! s! S2 g% h* `
FCKEditor ASP Version 2.6.8 File Upload Protection Bypass
: Y2 x1 x1 I2 G/ |4 Q5 }1 O$ A# ^0 G' B  z/ I: E
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass, }4 a9 t5 ]& s; ~+ s/ Z7 a  ?1 x
- Credit goes to: Mostafa Azizi, Soroush Dalili
- w; ~; L6 B4 O" a7 {# {& E4 B- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
! t* K- K, V! K% G8 L* P. i- Description:( E5 t/ c# U* p7 m5 W% n, x! e! `
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is9 {0 \; M/ O# h+ _5 ~7 I' y/ ]" O
dealing with the duplicate files. As a result, it is possible to bypass
0 m3 c- D1 e2 h6 }  B6 Kthe protection and upload a file with any extension.
( R( R2 \1 J' n3 z8 u% d3 g* `8 E- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
- K1 Q1 W. t$ D$ I& q! T# U% q5 }- Solution: Please check the provided reference or the vendor website.6 g& R2 Q% C" r7 _# I) }5 G. _
- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
- N( i  @6 s# D6 v4 b"" M' W6 A0 P2 }/ e8 _, x' o
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
5 V* ]6 z6 G3 o5 jIn “config.asp”, wherever you have:  w+ L4 ?1 m  S$ r7 \% B! l7 Z
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
) a7 l; t3 `$ m- I# c" x1 NChange it to:3 Q. v. z2 Q: `. {/ L, Q
      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”0 T# u, B, }! ^: R4 {# [$ @
% |+ o, `* R/ h, N! M% N' o

' X( g2 M# R, ~' X' Y  a- V1 p9 z& ]) _4 U3 z  F5 F7 D, `: Q0 b

' G! Q% U8 W6 G1 h- H6 L# `4 g- u' V8 P0 T
php测试无效% Y7 ^* m% f( \! j( N, \! G0 d
asp/aspx测试成功:
5 N9 z. e, u! h- A+ s来到/FCKeditor/editor/filemanager/connectors/test.html9 G% h* @2 q% f8 e" q
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
8 S! r: z5 O: h  t6 a
! d6 `" S+ I5 \. [; k4 X+ A8 p) {# oburpsuite上传包并修改,repeater) g& H6 N% ~5 F
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp! `& J+ o3 l# ?( U5 S4 W& ~
8 n* f/ T/ V& g$ Y8 }/ r
如图,webshell为:http://localhost/userfiles/file/asd(1).asp
" A; s/ s& g8 w% L) v1 J1 \' E! o% @3 j2 Z4 j9 t7 C- ]5 @# ^: {
回复

使用道具 举报

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

本版积分规则

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