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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:
# }7 q/ {' \2 D7 s0 }. X6 ?- Q, Z7 ~5 k
FCKEditor ASP Version 2.6.8 File Upload Protection Bypass
" y% B+ _. q' C7 e2 J4 m$ N" J3 l( Z
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
- p9 v" p4 x. b. }! D, M- Credit goes to: Mostafa Azizi, Soroush Dalili3 K* i& v+ Y7 h. d
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/2 D3 u! x% a$ f% R/ ^
- Description:
& u3 {* K* ~. q  n% [There is no validation on the extensions when FCKEditor 2.6.8 ASP version is/ d& S- {2 q7 r& c$ l4 L
dealing with the duplicate files. As a result, it is possible to bypass
. {& v- X& Y5 u# [1 ]' l" g! ^the protection and upload a file with any extension.* E& a, e0 X, \7 u
- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/( y: y* w/ h, ~9 f$ B7 G
- Solution: Please check the provided reference or the vendor website.4 \0 R$ l! B0 j: ?
- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720) v- {& y( p( h3 F2 w; p
"  a' S+ ~: X* H2 @& o. W1 T( {) K
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:( E, |$ r! B7 |+ U" m& J+ H
In “config.asp”, wherever you have:' Y: q) N7 @) _! a7 @" m: N
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”/ A- k/ G  h1 s7 L! }* |
Change it to:3 B; W* x% `  V: B5 F: G: l3 d
      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”
0 n: G% P& B7 G1 H8 v; g. j2 O. P" W8 H0 A! S6 W
! \! n- e/ ^& d; y3 y( b( j7 o$ H
+ Z& Q4 T. K; Y  P) ^
5 ]# T) k( o0 h9 w! H" Q, t

. u5 H( A5 f6 Hphp测试无效, w" u$ G' `. ^
asp/aspx测试成功:/ I+ S3 m6 u7 B$ {8 X- g" `* @
来到/FCKeditor/editor/filemanager/connectors/test.html
8 l% a. a! D: Q+ a& e3 t因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
) }5 d- @" M0 T2 _/ ^+ ]9 D
6 s$ A/ `. a9 f2 Nburpsuite上传包并修改,repeater
8 k$ l" c' d0 B% ^' Y- l$ E名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
# ?4 K# F" i( |( \# J  ]  ]+ c9 R$ s0 y8 o. y/ G& l
如图,webshell为:http://localhost/userfiles/file/asd(1).asp! N7 B; J9 j' S! S# G

. D/ k4 ~  c/ k* i
回复

使用道具 举报

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

本版积分规则

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