CVE-2005-1916
CVSS2.1
发布时间 :2005-07-06 00:00:00
修订时间 :2016-10-17 23:23:15
NMCOPS    

[原文]linki.py in ekg 2005-06-05 and earlier allows local users to overwrite or create arbitrary files via a symlink attack on temporary files.


[CNNVD]EKG linki.py 文件覆盖漏洞 (CNNVD-200507-073)

        ekg是一款支持Gadu-Gadu的即时通讯客户端程序。
        ekg 2005-06-05及之前版本中存在文件覆盖漏洞。
        本地用户通过符号链接攻击的方式,利用linki.py的临时文件,可覆盖或创建任意文件。

- CVSS (基础分值)

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

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

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

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=112060146011122&w=2
(UNKNOWN)  BUGTRAQ  20050705 ekg insecure temporary file creation and arbitrary code execution
http://marc.info/?l=bugtraq&m=112198499417250&w=2
(UNKNOWN)  BUGTRAQ  20050721 Multiple vulnerabilities in libgadu and ekg package
http://www.debian.org/security/2005/dsa-760
(UNKNOWN)  DEBIAN  DSA-760
http://www.zataz.net/adviso/ekg-06062005.txt
(VENDOR_ADVISORY)  MISC  http://www.zataz.net/adviso/ekg-06062005.txt

- 漏洞信息

EKG linki.py 文件覆盖漏洞
低危 设计错误
2005-07-06 00:00:00 2005-10-20 00:00:00
本地  
        ekg是一款支持Gadu-Gadu的即时通讯客户端程序。
        ekg 2005-06-05及之前版本中存在文件覆盖漏洞。
        本地用户通过符号链接攻击的方式,利用linki.py的临时文件,可覆盖或创建任意文件。

- 公告与补丁

        目前厂商已经发布了升级补丁以修复这个安全问题,补丁下载链接:
        http://dev.null.pl/ekg/

- 漏洞信息 (F38501)

ekg.insecure.txt (PacketStormID:F38501)
2005-07-07 00:00:00
Eric Romang  
advisory,arbitrary,code execution
CVE-2005-1916
[点击下载]

ekg versions 2005-06-05 and below suffer from a temporary file creation vulnerability that can lead to arbitrary code execution.

#########################################################

ekg insecure temporary file creation and arbitrary code execution

Vendor: http://dev.null.pl/ekg/
Advisory: http://www.zataz.net/adviso/ekg-06062005.txt
Vendor informed: yes
Exploit available: no
Impact : high
Exploitation : high

#########################################################

The vulnerabilities are caused due to temporary file being created 
insecurely.
This can be exploited via symlink attacks in combination  to create and 
overwrite
arbitrary files with the privileges of the user running the affected 
script and
also arbitrary command possible by spiking the temporary file.

##########
Versions:
##########

ekg <= 2005-06-05 22:03

##########
Solution:
##########

For the symlink attack use kernel patch such as grsecurity

#########
Timeline:
#########

Discovered : 2005-05-27
Vendor notified : 2005-06-06
Vendor response : no response
Vendor fix : no fix
Vendor Sec report (vendor-sec@lst.de) : 2005-06-27
Disclosure : 2005-07-04

#####################
Technical details :
#####################

Vulnerable code :
-----------------

In contrib/scripts/linki.py

95 def czyjest ():
96     if os.path.exists('/tmp/rmrmg_ekg_url'):
97         wejsc= open ('/tmp/rmrmg_ekg_url')
98         file = wejsc.readlines()
99         dlug=len(file)
100         wejsc.close()
101         #ekg.printf("generic", "liczno    

- 漏洞信息

17722
ekg linki.py Add-on Symlink Arbitrary File Manipulation
Local Access Required Race Condition
Loss of Integrity
Exploit Public Vendor Verified

- 漏洞描述

Eksperymentalny Klient Gadu-Gadu (EKG) contains a flaw that may allow a malicious local user to overwrite or create arbitrary files on the system. The issue is due to the czyjest and handle_keypress() functions in the contrib/scripts/linki.py script creating temporary files insecurely. It is possible for a user to use a symlink style attack from a critical EKG file to the /tmp/rmrmg_ekg_url file. When EKG is run, the temporary symlink file is activated with the privileges of the user running EKG, resulting in a loss of integrity.

- 时间线

2005-07-05 2005-05-27
2005-07-05 Unknow

- 解决方案

Currently, there are no known upgrades, patches, or workarounds available to correct this issue.

- 相关参考

- 漏洞作者

- 漏洞信息

EKG Insecure Temporary File Creation Vulnerability
Design Error 14146
No Yes
2005-07-05 12:00:00 2009-07-12 04:06:00
Discovery is credited to Eric Romang of zataz.

- 受影响的程序版本

Ubuntu Ubuntu Linux 5.0 4 powerpc
Ubuntu Ubuntu Linux 5.0 4 i386
Ubuntu Ubuntu Linux 5.0 4 amd64
Log4sh Log4sh 1.2.5
Log4sh Log4sh 1.2.4
Log4sh Log4sh 1.2.3
ekg ekg 2005-06-05 22:03
ekg ekg 2005-04-11
+ Debian Linux 3.1 sparc
+ Debian Linux 3.1 s/390
+ Debian Linux 3.1 ppc
+ Debian Linux 3.1 mipsel
+ Debian Linux 3.1 mips
+ Debian Linux 3.1 m68k
+ Debian Linux 3.1 ia-64
+ Debian Linux 3.1 ia-32
+ Debian Linux 3.1 hppa
+ Debian Linux 3.1 arm
+ Debian Linux 3.1 amd64
+ Debian Linux 3.1 alpha
+ Debian Linux 3.1
Debian Linux 3.1 sparc
Debian Linux 3.1 s/390
Debian Linux 3.1 ppc
Debian Linux 3.1 mipsel
Debian Linux 3.1 mips
Debian Linux 3.1 m68k
Debian Linux 3.1 ia-64
Debian Linux 3.1 ia-32
Debian Linux 3.1 hppa
Debian Linux 3.1 arm
Debian Linux 3.1 alpha
Debian Linux 3.1
Log4sh Log4sh 1.2.6
ekg ekg 1.6 rc3
ekg ekg 1.6 rc2

- 不受影响的程序版本

Log4sh Log4sh 1.2.6
ekg ekg 1.6 rc3
ekg ekg 1.6 rc2

- 漏洞讨论

ekg creates temporary files in an insecure manner. An attacker will local access could potentially exploit this issue to overwrite files in the context of the application.

Exploitation would most likely result in loss of data or a denial of service if critical files are overwritten in the attack. There is also an unconfirmed potential for privilege escalation if the attacker can write custom data in the attack.

- 漏洞利用

There is no exploit required.

- 解决方案

Debian has released advisory DSA 760-1 to address this issue. Please see the referenced advisory for more information.

Ubuntu Linux has released advisory USN-162-1, along with fixes to address various issues. Please see the referenced advisory for further information.

Debian has released security advisory DSA 773-1 addressing several issues for their AMD64 port of the operating system. Please see the referenced advisory for further information.

The vendor has addressed this and other issues in ekg version 1.6rc2 and later:


ekg ekg 2005-04-11

ekg ekg 2005-06-05 22:03

Log4sh Log4sh 1.2.3

Log4sh Log4sh 1.2.4

Log4sh Log4sh 1.2.5

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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