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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:
( q7 T; T, g% V& }% E, F1 g, c; d' A4 i* X/ Q# P$ x" n! m
FCKEditor ASP Version 2.6.8 File Upload Protection Bypass9 ]9 Y$ \, I, w% h6 e# N
1 s$ \' V: Z" R+ q% t1 E  u) R. v
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass* z+ s6 ]" S0 Z$ {8 e
- Credit goes to: Mostafa Azizi, Soroush Dalili
# p3 X- N# F( m* O" p) s: q$ W- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
9 }& [$ h+ C1 I. b; E, h1 E4 r/ F4 c- Description:
9 G4 [7 N* R2 Z% H" L& J: rThere is no validation on the extensions when FCKEditor 2.6.8 ASP version is6 w$ ~, y  T6 F
dealing with the duplicate files. As a result, it is possible to bypass
" g3 Q: t. J9 K9 Q# c3 a# t) mthe protection and upload a file with any extension.' I/ f8 s$ T# i. E
- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/+ m- ]) \$ [! \
- Solution: Please check the provided reference or the vendor website.
6 I$ E4 G9 y+ g- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
) Q2 E2 b" x9 {/ l8 R". G0 t2 K; A' M- |4 r
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:( Z: o* _7 I- s9 P  V: r8 P1 Z
In “config.asp”, wherever you have:
! l7 e. J$ B3 F2 G, d" U- C      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
8 v9 _- k# u1 ^( y/ `( ~Change it to:, W) ?, a: N7 D% A5 A
      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”$ v  Y, p4 t6 c. Y* H
, l6 ^; o" l) E8 k  q! O

, B+ G$ X8 H/ N1 {$ |/ w
. @9 [3 H9 R* K; D4 d  t
9 M6 J- ~. V/ N  E7 C( w  M  D( E8 N; Y1 I$ f% g* b
php测试无效/ V& y/ q6 j5 n0 N6 t: s% \
asp/aspx测试成功:
7 J1 x& Y0 j" W3 I. n- W: {来到/FCKeditor/editor/filemanager/connectors/test.html" P8 t/ Z, c3 }7 A  D: Y% R9 l
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
& P' P, y& ?1 k! f& w7 T% y" X" {' C3 ]7 _% W
burpsuite上传包并修改,repeater* d. i7 |6 S  F; @8 |
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
! \% k/ G' E9 e& w5 C) o
1 m& Y7 N& |* S; _如图,webshell为:http://localhost/userfiles/file/asd(1).asp
5 M3 c1 G9 e  p# z" n
4 W% M9 g. |6 A' R
回复

使用道具 举报

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

本版积分规则

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