发布时间 :2002-12-31 00:00:00
修订时间 :2008-09-05 16:31:12

[原文]pkg_add in FreeBSD 4.2 through 4.4 creates a temporary directory with world-searchable permissions, which may allow local users to modify world-writable parts of the package during installation.

[CNNVD]FreeBSD Package添加不安全临时文件目录创建漏洞(CNNVD-200212-456)

        FreeBSD 4.2至4.4版本的pkg_add创建具有全域可搜索权限的临时目录,本地用户利用该漏洞在安装期间修改包的全域可写部分。

- CVSS (基础分值)

CVSS分值: 2.1 [轻微(LOW)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: NONE [对系统可用性无影响]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/o:freebsd:freebsd:4.2FreeBSD 4.2
cpe:/o:freebsd:freebsd:4.4FreeBSD 4.4
cpe:/o:freebsd:freebsd:4.3FreeBSD 4.3

- OVAL (用于检测的技术细节)


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(PATCH)  XF  freebsd-pkgadd-insecure-directory(7852)
(PATCH)  BID  3819

- 漏洞信息

FreeBSD Package添加不安全临时文件目录创建漏洞
低危 访问验证错误
2002-12-31 00:00:00 2005-10-20 00:00:00
        FreeBSD 4.2至4.4版本的pkg_add创建具有全域可搜索权限的临时目录,本地用户利用该漏洞在安装期间修改包的全域可写部分。

- 公告与补丁

        Fixes available:
        FreeBSD FreeBSD 4.2
        FreeBSD FreeBSD 4.3
        FreeBSD FreeBSD 4.4

- 漏洞信息

FreeBSD pkg_add Temp Directory Permission Weakness
Local Access Required Misconfiguration
Loss of Integrity
Exploit Public

- 漏洞描述

FreeBSD contains a flaw that may allow a malicious user to gain access to unauthorized privileges. The issue is triggered when pkg_add extracts the contents of a package to a temporary directory in /var/tmp with world writable permissions. This flaw may lead to a loss of integrity.

- 时间线

2002-01-04 Unknow
2002-01-04 Unknow

- 解决方案

Upgrade to version 4.4-STABLE, or the RELENG_4_4 or RELENG_4_3 security branches dated after the respective correction dates, as it has been reported to fix this vulnerability. In addition, FreeBSD has released a patch for some older versions. It is also possible to correct the flaw by implementing the following workaround: create a secure temporary directory (such as /var/tmp/inst) and secure the directory permissions (chmod 700 /var/tmp/inst). Set the TMPDIR environment variable to this directory before running pkg_add.

- 相关参考

- 漏洞作者