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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:$ @) i' Y# ?: ?6 o% ], L" b

: b9 F4 P* f7 EFCKEditor ASP Version 2.6.8 File Upload Protection Bypass. z+ A" s# e+ {6 T6 L- o8 f
+ J0 ^0 {; ]! C- C  ~) R  l
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass, @  }3 Z' N( ^& p3 L
- Credit goes to: Mostafa Azizi, Soroush Dalili
7 ?" X& x" p0 T; J8 t- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
- G6 Y2 [6 d5 @' ?  r* _& w- Description:' |% Y1 x' ], F/ x
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is
0 D4 {" q+ ~4 F3 N! f" Cdealing with the duplicate files. As a result, it is possible to bypass6 [1 X0 y+ y" w2 C
the protection and upload a file with any extension." `8 z( B' G& V) K$ J+ O1 T
- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/9 ~" f5 f/ k5 Z, x5 }3 |# c
- Solution: Please check the provided reference or the vendor website.2 {% e! X6 l4 O/ B/ g* i& J5 j
- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720, B: E6 e  a. e  _% u9 c
"! Q8 L# G4 I# u6 G0 {
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
* Y8 ~# ^  P5 F6 K! WIn “config.asp”, wherever you have:+ ~2 J1 j9 N0 B/ C, Q3 X3 Z6 r2 A/ T
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
1 D. }9 K/ n5 tChange it to:
" ?: C2 O$ d7 p) R. D      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”
! Q5 S5 [9 x: z5 }* u7 g; ^0 u! I2 O* i# i

# h8 ~; v4 p7 y
+ Y- K% S" T; ~( x/ Z2 v# q
3 f" Q! ^& k; A" Z* z  {. T& p. B' b$ @) T1 s/ o3 P
php测试无效) p" b- F) A4 e1 F' I5 b
asp/aspx测试成功:) a& d. r, r& R
来到/FCKeditor/editor/filemanager/connectors/test.html# N# g, q/ ?; o: `& k' p. q
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
# n5 S' p4 m/ y+ n! @7 X0 M4 @
) I2 o* b2 }; q' O" D; c# [* zburpsuite上传包并修改,repeater
6 K8 \6 {( @9 V' m+ b! Z名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp7 O  ~% |/ {& |
, c4 p- ]3 s: R; a/ M* h: F  T
如图,webshell为:http://localhost/userfiles/file/asd(1).asp
, r5 x, Q- ?$ O6 h: q1 L: G( V4 v6 G0 S# I2 ?1 m. V5 ?
回复

使用道具 举报

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

本版积分规则

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