linux包含文件漏洞,GitLab本地文件包含漏洞(CVE-2013-4582)

发布日期:2014-05-12

更新日期:2014-05-14

受影响系统:

GitLab GitLab 6.x

描述:

--------------------------------------------------------------------------------

CVE(CAN) ID: CVE-2013-4582

GitLab,是一个利用Ruby on Rails 开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。

GitLab 5.4.2, Community Edition 6.2.4, Enterprise Edition 6.2.1, gitlab-shell 1.7.8之前版本存在安全漏洞,远程攻击者可通过GitLab Web接口,利用此漏洞包含服务器上Git库元数据内的本地文件。

建议:

--------------------------------------------------------------------------------

临时解决方法:

如果您不能立刻安装补丁或者升级,NSFOCUS建议您在/home/git/gitlab-shell内运用下面补丁以降低威胁:

--- a/lib/gitlab_projects.rb

+++ b/lib/gitlab_projects.rb

@@ -48,7 +48,7 @@ class GitlabProjects

def create_branch

branch_name = ARGV.shift

ref = ARGV.shift || "HEAD"

-    cmd = %W(git --git-dir=#{full_path} branch #{branch_name} #{ref})

+    cmd = %W(git --git-dir=#{full_path} branch -- #{branch_name} #{ref})

system(*cmd)

end

@@ -61,7 +61,7 @@ class GitlabProjects

def create_tag

tag_name = ARGV.shift

ref = ARGV.shift || "HEAD"

-    cmd = %W(git --git-dir=#{full_path} tag #{tag_name} #{ref})

+    cmd = %W(git --git-dir=#{full_path} tag -- #{tag_name} #{ref})

system(*cmd)

end

@@ -94,7 +94,7 @@ class GitlabProjects

def import_project

@source = ARGV.shift

$logger.info "Importing project #{@project_name} from to ."

-    cmd = %W(git clone --bare #{@source} #{full_path})

+    cmd = %W(git clone --bare -- #{@source} #{full_path})

system(*cmd) && create_hooks(full_path)

end

@@ -156,7 +156,7 @@ class GitlabProjects

end

$logger.info "Forking project from to ."

-    cmd = %W(git clone --bare #{full_path} #{full_destination_path})

+    cmd = %W(git clone --bare -- #{full_path} #{full_destination_path})

system(*cmd) && create_hooks(full_destination_path)

end

厂商补丁:

GitLab

------

目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:

https://www.gitlab.com/

https://gitlab.com/gitlab-org/gitlab-ce

https://github.com/gitlabhq/gitlabhq

GitLab 的详细介绍:请点这里

GitLab 的下载地址:请点这里

0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值