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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:5 e" ]: V' _5 C  H
! {5 k* O: m% t+ |
FCKEditor ASP Version 2.6.8 File Upload Protection Bypass
4 X% @: i( X* ?
4 g6 b# s; E6 ^+ F- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
0 k6 R2 b9 A* c8 ?- Credit goes to: Mostafa Azizi, Soroush Dalili: Q  G# ~1 Y6 x, U# T% T2 h* c
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/: ?: l4 A- j8 n, k
- Description:! G. [5 h" q$ B1 e( \: V
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is" O2 ?" s  `9 J' d3 R( ^
dealing with the duplicate files. As a result, it is possible to bypass: J: i( @3 \# m0 B  Y
the protection and upload a file with any extension.- a# u( j% R2 }" ^" p' P
- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/5 p5 n/ O! f; Q* r' G- m
- Solution: Please check the provided reference or the vendor website.
% |. w- X" k1 f' T$ u! V9 A# D- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
6 U- l6 s: s' ?6 I"
: |& n. v' p5 E% bNote: Quick patch for FCKEditor 2.6.8 File Upload Bypass:0 L9 A  i) s8 H3 T1 O* F6 j0 S
In “config.asp”, wherever you have:! |( x" K( |7 Z& z) E1 J" }7 l
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
" h5 t% q- E1 l& vChange it to:
. f3 h4 x. o8 }      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”
; {; M1 l2 W: j0 V) D: V
* Z: Y0 S6 j- k, c6 ^' w8 H, U- m 9 q" x/ Q( a9 A. O  f
( ]3 Z! t0 i0 ~
0 Y; U$ X2 ^  x! N' X) p

8 n1 H+ M  H& ]* h" w( pphp测试无效  c' K; _5 F( r% Y8 N1 }
asp/aspx测试成功:6 u# [, _8 z/ T. n* B% d9 Y/ e
来到/FCKeditor/editor/filemanager/connectors/test.html
$ X% L* }! x) j$ }& ]7 ^( o* d9 @因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt$ w; D5 B8 d% z
, w( T. ?9 m; G& r  P  a
burpsuite上传包并修改,repeater. k7 v: }7 z9 Z# z) M7 x
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp( Q9 M% {) f. k+ X& l% B

0 `) U* G( X  J+ b, n0 W如图,webshell为:http://localhost/userfiles/file/asd(1).asp
2 f  p4 \+ ~3 I% |
% v% k- \* c3 r
回复

使用道具 举报

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

本版积分规则

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