JPORTAL资源整合SQL注射漏洞

基本字段

漏洞编号:
SSV-93898
披露/发现时间:
2015-02-05
提交时间:
2015-02-05
漏洞等级:
漏洞类别:
其他类型
影响组件:
JCMS(Hanweb)
漏洞作者:
路人甲
提交者:
Knownsec
CVE-ID:
补充
CNNVD-ID:
补充
CNVD-ID:
补充
ZoomEye Dork:
补充

来源

漏洞详情

贡献者 Knownsec 共获得  0KB

简要描述:

JPORTAL资源整合SQL注射漏洞

详细说明:

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

}else if("DO".equals(opr)){
    if (!type.equals("11")||url.trim().length()==0||paperTitle.trim().length()==0){
        out.clear();
        out.print("false");
        return;
    }

    ArrayList<Pertool_CollectionEntity> list = fblf.getCollectionListEntityByUserId(userid,"",0,0);
    String title = paperTitle;
    for(int i=0; i<list.size(); i++){
        Pertool_CollectionEntity e = list.get(i);
        if(title.equals(e.getVc_title())){
            out.clear();
            out.println("true");
            fblf.delAllCollectionById(e.getI_id());
            //减分,取消推荐算5分
            Pertool_Score ps = new Pertool_Score();
            ps.decScore(infoid, 5);
            break;
        }
    }

getCollectionListEntityByUserId函数的userid参数存在注入 (opr必须为DO,type必须为11) http://www.simt.com.cn/pertool_subsite/read/favo_ajax_for_gen.jsp?opr=DO&uid=1&type=1&url=1&title=1

1.jpg

http://portal.jinan.gov.cn/pertool_subsite/read/favo_ajax_for_gen.jsp?opr=DO&uid=1&type=11&url=1&title=1

11.jpg

sqlmap 可以直接跑出数据: http://www.simt.com.cn/pertool_subsite/read/favo_ajax_for_gen.jsp?opr=DO&uid=1&type=1&url=1&title=1

2.jpg

5个案例: http://www.simt.com.cn/pertool_subsite/read/favo_ajax_for_gen.jsp?opr=DO&uid=1&type=11&url=1&title=1 http://portal.jinan.gov.cn/pertool_subsite/read/favo_ajax_for_gen.jsp?opr=DO&uid=1&type=11&url=1&title=1 http://www.zj.gov.cn/pertool_subsite/read/favo_ajax_for_gen.jsp?opr=DO&uid=1&type=11&url=1&title=1 http://inb.ningbo.gov.cn/pertool_subsite/read/favo_ajax_for_gen.jsp?opr=DO&uid=1&type=11&url=1&title=1 http://pertool.sdds.gov.cn/pertool_subsite/read/favo_ajax_for_gen.jsp?opr=DO&uid=1&type=11&url=1&title=1

漏洞证明:

数据:

2.jpg

共 0  兑换了

PoC

暂无 PoC

参考链接

解决方案

临时解决方案

暂无临时解决方案

官方解决方案

暂无官方解决方案

防护方案

暂无防护方案

人气 1134
评论前需绑定手机 现在绑定

暂无评论

※本站提供的任何内容、代码与服务仅供学习,请勿用于非法用途,否则后果自负