安全研究

安全漏洞
Mercurial patch.py文件目录遍历漏洞

发布日期:2008-07-03
更新日期:2008-07-17

受影响系统:
Mercurial Mercurial 1.0.1
描述:
BUGTRAQ  ID: 30072
CVE(CAN) ID: CVE-2008-2942

Mercurial是分布式的源码管理控制系统。

Mercurial的mercurial/patch.py文件中没有正确地过滤对applydiff()函数的输入参数,如果远程攻击者提交了恶意请求的话,就可以通过目录遍历攻击重新命名代码库外任意文件的名称。

<*来源:Jakub Wilk
  
  链接:http://secunia.com/advisories/31108/
        http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=230193
        http://security.gentoo.org/glsa/glsa-200807-09.xml
*>

建议:
厂商补丁:

Gentoo
------
Gentoo已经为此发布了一个安全公告(GLSA-200807-09)以及相应补丁:
GLSA-200807-09:Mercurial: Directory traversal
链接:http://security.gentoo.org/glsa/glsa-200807-09.xml

所有Mercurial用户都应升级到最新版本:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=3Ddev-util/mercurial-1.0.1-r2"

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

http://www.selenic.com/hg/rev/87c704ac92d4

浏览次数:2327
严重程度:0(网友投票)
本安全漏洞由绿盟科技翻译整理,版权所有,未经许可,不得转载
绿盟科技给您安全的保障