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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:; q4 U: e  C0 O7 h' F8 u4 @' e

, M$ s; Y" }- |/ I4 w  w9 @; dFCKEditor ASP Version 2.6.8 File Upload Protection Bypass" {) \4 y. X1 c' m$ Z- u
- E7 W) g  e; L& m% G
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
  W3 U% q& E! a, M5 b# R, T. }- Credit goes to: Mostafa Azizi, Soroush Dalili8 i4 `+ s4 ~6 f; u6 q
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
6 [6 H1 P$ }/ z8 L  L- Description:' f0 ~. O  X" T* [
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is% y; ~; G4 |1 O4 ]) S
dealing with the duplicate files. As a result, it is possible to bypass) u% ^3 ~2 ~+ D# b4 l2 V$ g
the protection and upload a file with any extension.
1 b- d8 [4 A( A" l7 }; y- i! [- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/7 m1 f  ?: X& W" \
- Solution: Please check the provided reference or the vendor website.
) {" A( R/ u  r- R- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720& l* _' G3 n& y2 i% M  O! R5 W
"
( r9 v8 l; o- I& J( M( @Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
* A1 w* {0 Y2 B* }6 YIn “config.asp”, wherever you have:
5 v  U" D1 b2 k      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
7 S1 r, Y) {' L8 uChange it to:
# d: N7 }6 i: M" o$ K1 U2 V& l      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”- ], Z3 J: b. L5 x9 j- T+ p
% o) U6 ^, W7 e# N

5 W, D% s( Z- D$ z- B2 W" c% W. t2 I# b0 B6 s6 w2 W
5 @* s1 K0 r% Q- C% G# x9 h
3 i, |5 D* R5 F6 }+ t% s
php测试无效; w! c! k: u; S; f$ U! m8 q
asp/aspx测试成功:# ~2 u' B! M2 E, W+ t+ r4 E
来到/FCKeditor/editor/filemanager/connectors/test.html% V; q& K4 ]1 t- r9 W
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt; y% W: B# r; Y+ I( H6 V

2 n7 \, D1 D/ c- u4 kburpsuite上传包并修改,repeater- n2 h/ X# w* P) A
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
) C9 N; d7 X' W
! f! W7 a9 S3 \0 L, F3 M( Z如图,webshell为:http://localhost/userfiles/file/asd(1).asp
1 s0 v9 k' g+ x" E8 F) A8 m/ m+ N" K+ w8 B" P0 {% H! h
回复

使用道具 举报

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

本版积分规则

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