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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:
' c& A6 ?& L& \* I0 h
. x  Y: S+ c& l% O* wFCKEditor ASP Version 2.6.8 File Upload Protection Bypass
2 S" w7 p9 m) \& O
0 T! k" g3 x* r- f- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
  {8 C& x: ^( v" O- Credit goes to: Mostafa Azizi, Soroush Dalili
3 c6 a; s2 W* y8 a0 ]- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
6 ~) H* d. @) s, w. o- Description:
! M  I% L. ?5 P9 i7 J6 pThere is no validation on the extensions when FCKEditor 2.6.8 ASP version is7 i) W2 U- [1 s( q. a
dealing with the duplicate files. As a result, it is possible to bypass
. B$ J3 t% K7 i8 C: i# Uthe protection and upload a file with any extension.
0 y! V# y: r  T$ ~3 F" z' U( q- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
' I- B( p2 p9 l8 a+ ?; c4 f- Solution: Please check the provided reference or the vendor website." E' J4 l- ~- F- O9 v8 L" |
- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd7209 S4 S; f+ }4 d  |, k  i  g! F2 x' J
": |; h$ c+ b- {4 v6 o3 K# K
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
. B7 L" p) N/ [1 s) PIn “config.asp”, wherever you have:6 }6 ]; z: I; {7 b1 J* f$ }6 h- H
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”
7 ]: K/ i" x# pChange it to:
4 I( i  S% L( b% w$ y3 V9 L      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”2 ]6 j" Y7 x& D& F$ x

2 ?+ Z# C6 ?/ b/ T 7 [7 v( B$ z; d2 w9 Y1 q

) R% m9 i. c0 _9 R# w3 |; V9 S
' A& P8 y' m) \" o5 m; `% F6 D4 `5 r% N+ Q, h+ E
php测试无效
9 f* r: s, ^1 G) e0 \% ]asp/aspx测试成功:4 n3 n7 z1 ], z
来到/FCKeditor/editor/filemanager/connectors/test.html" {1 [. f0 g/ v( a2 `& {0 W
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
& E( {  q. u" C7 r& [# f3 W( a) F: K# F6 z$ ^% q3 ]
burpsuite上传包并修改,repeater: `" G$ T( S# I) y8 l
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp& L3 N, Y: P, C

4 a# Z- q6 g3 j$ n9 B6 T; y, J, D) ]如图,webshell为:http://localhost/userfiles/file/asd(1).asp
6 b4 m8 o/ s! R% i6 k. Q' f. q  }4 u  F- G  i+ t
回复

使用道具 举报

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

本版积分规则

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