中国网络渗透测试联盟

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

作者: admin    时间: 2012-12-10 10:18
标题: 最新FCKEditor ASP上传绕过漏洞
exploiut-db:
6 P/ g6 {# I! o' f
1 @+ d) p  x! p% `# p! uFCKEditor ASP Version 2.6.8 File Upload Protection Bypass+ b8 W4 v+ u' z* b4 X
9 }4 \; ?( D" Z  g2 H
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass, {+ @; q/ O7 J, |
- Credit goes to: Mostafa Azizi, Soroush Dalili8 t5 l+ q& c9 ~$ S( v# N
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/
2 o  L# d6 h8 c4 D6 i: W6 m, I- Description:
: T3 H# y! P# L3 D) h; s$ }, PThere is no validation on the extensions when FCKEditor 2.6.8 ASP version is
' E, y, V" F7 }$ Ldealing with the duplicate files. As a result, it is possible to bypass6 o% D( v; v1 \: U# p
the protection and upload a file with any extension.
( ]$ n4 }" {5 |6 w- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
$ H- X" a! w# r- ^; H- Solution: Please check the provided reference or the vendor website.
+ L; U( J; ?" }0 o- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
, _* t* k7 O; F% R$ K; m/ C! K- x"9 j8 E2 o" I# ^+ B1 U- C
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:
' O+ o: `# w* ]: ~$ \0 z, VIn “config.asp”, wherever you have:5 W" E5 g" n4 u9 V# j
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”8 a1 R: J8 `- {' k$ l
Change it to:
5 G: O9 d; ~  G; j0 W4 }* ^      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”
1 u; V( J7 Q' t! L) Q' C, D+ a+ s: j5 S3 M- x
  y" J# N: Z& m; U

( a1 j+ Y" T! e6 m - u7 P- P( A+ u5 C: u/ U# Q
4 f9 [* S# ]1 P( y" V
php测试无效
$ W7 r4 V0 A: ~2 iasp/aspx测试成功:; b: T0 B4 \; [7 F+ p
来到/FCKeditor/editor/filemanager/connectors/test.html' \3 ?, b9 Q% n1 ]& j! b& G
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt/ o7 Z4 P3 u6 Z0 W3 p* i% G

; R% i3 `9 \1 ]7 Iburpsuite上传包并修改,repeater9 K5 X0 l% P* d1 [6 o$ M
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
, o1 r% @! p& u5 j% s
: A0 V4 o6 O9 C! |9 e如图,webshell为:http://localhost/userfiles/file/asd(1).asp
) {4 d  l% P8 n- `  B4 C. b" q4 d4 l





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