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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
exploiut-db:! p: o+ T% ?4 k

! @) I1 c8 \; n6 {/ FFCKEditor ASP Version 2.6.8 File Upload Protection Bypass
  d$ J$ g9 V/ ?( k, E$ a5 P4 i2 `  l# E- ?/ |
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
; Z3 d5 @2 t7 K% Q1 D6 R- Credit goes to: Mostafa Azizi, Soroush Dalili: B$ K9 P: [4 ^5 B; {, ]) f
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/  R; w  O  O& L( F3 a' R
- Description:) G, @' U: K( t  P. Z
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is9 F! K) M/ C+ d5 ]; u
dealing with the duplicate files. As a result, it is possible to bypass
8 u' ^4 p2 `$ A9 }3 ?' \( R( Zthe protection and upload a file with any extension./ o5 m2 h& E& k: F7 e: ~
- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/8 s# b  Q, H+ G# R7 N5 [- G
- Solution: Please check the provided reference or the vendor website.
* d9 e5 b' N, V) O% T* y- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720* @* _1 _( i" y; V0 V" K
"
& c7 V# M. d8 l9 lNote: Quick patch for FCKEditor 2.6.8 File Upload Bypass:" P4 X9 K3 Q/ S: {4 t# X6 P
In “config.asp”, wherever you have:8 P6 N) T% O3 R4 \& U& R/ v3 j
      ConfigAllowedExtensions.Add    “File”,”Extensions Here”8 [( @# T) ~) O: ]# @
Change it to:
* s; j' G3 H3 q+ _* q7 c* [$ L      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”
0 T2 O+ h) I  B. _# F
( y) i. ^3 L) C) H' X$ e * s4 v8 }/ A0 P/ e! W' `
( t" o5 _4 Z" b

3 I3 }4 w$ v* X8 f  l6 B' Y. U- T5 Y* Z  ^1 R
php测试无效
0 Q' o9 }$ A4 |+ f/ `asp/aspx测试成功:. G8 E9 \1 Q! C. E, s
来到/FCKeditor/editor/filemanager/connectors/test.html3 _& q  @7 l- c4 L: m) K6 T# i2 j; a
因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
( N  K2 ^: ~: Z3 U1 B: s3 y, E  G% R' F7 k$ L( N0 O3 A  }0 M, d
burpsuite上传包并修改,repeater* W( C  f$ x  ^$ a! X
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
7 w# c' }9 }- s# y
' E1 r3 C6 {# d6 x+ h  S如图,webshell为:http://localhost/userfiles/file/asd(1).asp: }7 s9 S: u0 x. P( S) W: b8 a
8 l; T: Q# A# X2 R) U1 e
回复

使用道具 举报

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

本版积分规则

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