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

最新FCKEditor ASP上传绕过漏洞

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-10 10:18:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
exploiut-db:' C1 i8 O! R0 J  F# P( ~

0 x! w3 Y1 V. E$ U3 _, T( F/ G+ ?FCKEditor ASP Version 2.6.8 File Upload Protection Bypass- s2 a. t' ?- i; _. X
! E  l% H* `8 A+ ^1 ?2 _: @/ Y
- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass1 T- M1 Z& q/ v. M6 C& B+ ]" }5 ^8 R
- Credit goes to: Mostafa Azizi, Soroush Dalili, o, y) L, e2 {) f9 S: p
- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/8 Z* b; [, V* ~* G( \: g
- Description:5 R( }( G3 ?) K
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is: b5 N, Q1 w! t& }$ x
dealing with the duplicate files. As a result, it is possible to bypass/ {, w, e* N5 b  ]
the protection and upload a file with any extension." {; _& S, V7 {4 H1 X
- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/. Z& I1 Y, C* V3 ~
- Solution: Please check the provided reference or the vendor website.
- K- ?0 z6 w  [3 q- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720+ Q" I2 W5 c- G0 l8 _! J) R( A
"" P# {4 Y/ ?. o' a! r, s. w7 A* C
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:3 ~" C( J$ @! k) N& R
In “config.asp”, wherever you have:
3 j4 v+ x& R7 f; G$ p+ {3 N      ConfigAllowedExtensions.Add    “File”,”Extensions Here”0 C4 ^9 K% P+ h, N6 |/ g( \! ?
Change it to:
+ l% W/ ^' C  F( Q" m( y      ConfigAllowedExtensions.Add    “File”,”^(Extensions Here)$”
, V+ n' T8 y+ o) z6 Z/ @
' e/ ^$ e# M( r& J
3 g. e" G" J/ O3 T0 {! |+ D( z" W) u9 y! S$ X# ^

2 {) B7 \( r! ~! K; B1 [
, L0 P6 \9 ?- K) X( G7 _php测试无效7 g- W9 r! Y2 A% H  q4 Y# c
asp/aspx测试成功:0 k2 o* n3 Y  U9 j2 [8 d* f3 E
来到/FCKeditor/editor/filemanager/connectors/test.html
% G  o* D: h8 B2 `5 x因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
1 q/ ~6 J5 ?+ N4 b5 m5 |3 v
- g% ?  [+ R3 O( Aburpsuite上传包并修改,repeater$ u/ I; e- Q8 K/ i  g  t4 }
名字改为asd.asp%00txt    然后把%00专为URL编码上传后得到asd(1).asp
4 i) D% b+ Z/ S% T
2 L3 \4 e7 A6 i3 a2 e+ m, L如图,webshell为:http://localhost/userfiles/file/asd(1).asp
6 L  ^% z2 U' F: V" V0 e$ E( ]" g) I( v4 {& H
回复

使用道具 举报

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

本版积分规则

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