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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:
* B) U, s- n1 \9 e
2 M- N1 K3 m5 [2 j; s4 tFCKEditor ASP Version 2.6.8 File Upload Protection Bypass, V( Z* E/ O/ q. t

! e" q& F' {' r/ b8 x- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
5 e( @# R: B5 Q2 p/ K- Credit goes to: Mostafa Azizi, Soroush Dalili
  g0 p8 ~; H" o3 ]" q- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/. b0 v0 `! `& `4 n1 p# t* c* ?: f( T. x
- Description:
$ c; E3 R# I0 A' V' a0 a+ E5 d. YThere is no validation on the extensions when FCKEditor 2.6.8 ASP version is. f  ?5 y+ d4 X3 l! w* e/ t
dealing with the duplicate files. As a result, it is possible to bypass- `! L5 k8 v) y! R3 }8 Y1 x
the protection and upload a file with any extension.
8 c& W- Y3 g5 C: E0 \% m! \, z- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/. S' M4 z' |: g) l
- Solution: Please check the provided reference or the vendor website.
# j* h% b3 i6 H& t- q, y- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
3 q4 ~$ M6 ]' R1 B5 Z"
0 O+ A( z, L4 q0 J: R: ]9 qNote: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
7 R$ E' e& G1 I' L8 Y4 YIn “config.asp”, wherever you have:& c! q; ]/ F& c- T
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”+ q! w0 p! q4 M, Y+ n2 P
Change it to:6 {' d/ g+ [: A5 E- x( o
      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”  P) r  x$ F! f

: W  D7 W. r! v
! d  I  x( ?7 ]: B8 |: {
* m2 D7 q. _) r5 C: }* k ! S- y7 ^- I& m$ T" |; V
. Q1 c! w# x+ x' V  B6 q
php测试无效
$ J1 ]; O  G( \  Q1 masp/aspx测试成功:
* J- ?7 i& q" w5 j! u来到/FCKeditor/editor/filemanager/connectors/test.html
, U& Q1 r0 ?/ v' K9 t因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
( n0 G( V- W) i2 C# H
1 T2 C7 Z' e+ V+ {% a! ~burpsuite上传包并修改,repeater4 P7 Z$ `  Z; x6 b; t$ L4 l
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
& ^5 C* R; f# I( y& J/ W
$ i: A: {' P% Z7 J$ b如图,webshell为:http://localhost/userfiles/file/asd(1).asp% i% V3 h3 A" O2 j9 q. w9 A% ?

4 M5 b2 w% W3 t+ d. F
回复

使用道具 举报

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

本版积分规则

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