中国网络渗透测试联盟

标题: 最新FCKEditor ASP上传绕过漏洞 [打印本页]

作者: admin    时间: 2012-12-10 10:18
标题: 最新FCKEditor ASP上传绕过漏洞
exploiut-db:( q4 e, n6 p4 J! h( i
! q0 m, W4 v8 Y: V
FCKEditor ASP Version 2.6.8 File Upload Protection Bypass- |; J2 ?) b$ `. z# H! F

4 F% T/ E# M; R# `# R& H- ~- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass# L% V, p3 T! D  Q
- Credit goes to: Mostafa Azizi, Soroush Dalili
! N& q4 _1 q) L4 D% a# e( t- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/8 V, M6 e; X! n+ _" n. d% r& s9 z
- Description:, Y( {3 D$ K8 Y; }- D, L
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is
- |2 n3 `# M' {/ {% K8 {. M% j, Mdealing with the duplicate files. As a result, it is possible to bypass9 a7 j0 E3 ?" A9 k
the protection and upload a file with any extension.
4 F4 N: d) c2 w% I3 Z- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
+ m2 Q$ R) c. \- Solution: Please check the provided reference or the vendor website.
* l! j- q. R" }) n- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd7207 Y/ w# Z9 ^8 w% ?' ?, n$ y% p
"  l3 h( L8 |. F0 X6 n* [
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
6 }  f8 b" U; L  b, mIn “config.asp”, wherever you have:0 I1 `0 Z& l. D; p. _# d3 X
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”) ]' K# L, K6 C* R& U$ ]) Q
Change it to:' ~7 R# S( I7 n' r: d
      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”
5 g- K* Q2 b6 H2 S# O0 u; T) K. h* v9 O6 C

  |  v1 x5 [' |# {) U/ N" Z4 q7 d# m+ ~' g! g6 [) f! S

) ^5 F5 i! c9 Z( M
/ ^1 D1 e8 m9 o8 Tphp测试无效* T$ K7 V" t4 I
asp/aspx测试成功:
, V" [) z0 v% H6 D0 ~) q) l0 A4 x2 J  I( p来到/FCKeditor/editor/filemanager/connectors/test.html4 s& K+ h/ q9 D1 Q. P5 g- R
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
" o1 n/ ^, o0 t2 g5 Z( m, s" |9 [& k; M( l+ S
burpsuite上传包并修改,repeater
& U& d! x  w9 {5 Z! P名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp/ w5 z! w/ d2 f" N

/ ]6 l8 n9 l5 u, Z( G; a如图,webshell为:http://localhost/userfiles/file/asd(1).asp
. {: J& J$ f2 y8 Q, l' x! x$ X5 @! _7 Y9 v5 ~- F





欢迎光临 中国网络渗透测试联盟 (https://cobjon.com/) Powered by Discuz! X3.2