exploiut-db:+ P0 X0 p* j0 Q( C
, ?- z) K3 y, W7 i) {FCKEditor ASP Version 2.6.8 File Upload Protection Bypass3 g+ `; ~ s2 X3 H! A( P
* P5 C8 A2 _4 e* D- Title: FCKEditor 2.6.8 ASP Version File Upload Protection bypass
4 M7 n2 n: N$ b- Credit goes to: Mostafa Azizi, Soroush Dalili
$ U. q4 v( R; t5 D0 q/ Z2 h2 I% k- Link:http://sourceforge.net/projects/fckeditor/files/FCKeditor/* }' g5 e5 o$ J0 b5 n0 H
- Description:5 g- g* a @! u& `# i" |
There is no validation on the extensions when FCKEditor 2.6.8 ASP version is
1 x( |# V2 ~- z' g, n! h6 idealing with the duplicate files. As a result, it is possible to bypass
; z) K# A1 d* {" k! p6 Zthe protection and upload a file with any extension.
$ L2 b/ o" d+ r$ S: K0 T- Reference: http://soroush.secproject.com/blog/2012/11/file-in-the-hole/
( m* j, v$ Z7 ]* w- Solution: Please check the provided reference or the vendor website.
- e2 w2 y( [ w S! {2 a$ o- PoC:http://www.youtube.com/v/1VpxlJ5 ... ;rel=0&vq=hd720
6 {+ m2 N8 w$ {! x( e"3 `; l: @3 N) F! I
Note: Quick patch for FCKEditor 2.6.8 File Upload Bypass:: k2 ?! N1 u: U; ?2 P& R2 z
In “config.asp”, wherever you have:
; M- ^- Y& Q1 j4 L! d, c5 B% U ConfigAllowedExtensions.Add “File”,”Extensions Here”
% n9 l% v# p% t( RChange it to:
9 m+ b3 Y: ?9 B! w ConfigAllowedExtensions.Add “File”,”^(Extensions Here)$”$ K3 y" C/ z5 \+ }% O
8 i7 u7 h( \# y1 O & B2 @7 X0 Z& }" O/ n9 y3 F
/ h! ` `& n# H6 L, N; E+ v! [
3 e: f. ~/ c v" G- u1 f( e# ]. a) ?4 K( z3 i
php测试无效
/ R) E) n8 C1 _* c1 `* easp/aspx测试成功:. L8 L& x' a$ y. d7 P
来到/FCKeditor/editor/filemanager/connectors/test.html
" e+ M- k. M: ^& g1 x% q因为结合了之前二次上传的漏洞,所以先上传任意内容的文件:asd.asp.txt
" y* q8 r7 O9 T3 R& B, C7 ^! w E& @" P# l# F3 M& {
burpsuite上传包并修改,repeater
$ t' a0 h3 M" G/ B' e名字改为asd.asp%00txt 然后把%00专为URL编码上传后得到asd(1).asp7 j/ Q2 r- O+ I- R
0 A7 |' I9 J: d0 H% K! q如图,webshell为:http://localhost/userfiles/file/asd(1).asp. U6 {" C- @$ E) G0 k. c! \$ S
& E0 K6 R; |1 Q# \7 I0 T; h2 B
|