发布时间 :2001-07-02 00:00:00
修订时间 :2008-09-05 16:24:01

[原文]Samba before 2.2.0 allows local attackers to overwrite arbitrary files via a symlink attack using (1) a printer queue query, (2) the more command in smbclient, or (3) the mput command in smbclient.


        Samba 2.2.0之前版本存在漏洞。本地攻击者可以借助使用(1)打印机队列查询 , (2)smbclient中的更多命令,或 (3)smbclient中的mput命令的链接攻击覆盖任意文件。

- CVSS (基础分值)

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

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


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


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

- 其它链接及资源
(VENDOR_ADVISORY)  BUGTRAQ  20010418 PROGENY-SA-2001-05: Samba /tmp vulnerabilities
(VENDOR_ADVISORY)  BUGTRAQ  20010418 TSLSA-#2001-0005 - samba
(VENDOR_ADVISORY)  BUGTRAQ  20010417 Samba 2.0.8 security fix
(UNKNOWN)  BID  2617

- 漏洞信息

低危 访问验证错误
2001-07-02 00:00:00 2005-10-20 00:00:00
        Samba 2.2.0之前版本存在漏洞。本地攻击者可以借助使用(1)打印机队列查询 , (2)smbclient中的更多命令,或 (3)smbclient中的mput命令的链接攻击覆盖任意文件。

- 公告与补丁

        Available fixes:
        HP CIFS/9000 Server A.01.06
        Samba Samba 2.0.4
        Samba Samba 2.0.5
        Samba Samba 2.0.6
        Samba Samba 2.0.7

- 漏洞信息 (20776)

Samba 2.0.x Insecure TMP file Symbolic Link Vulnerability (EDBID:20776)
linux local
2001-04-17 Verified
0 Gabriel Maggiotti
N/A [点击下载]

Samba is a flexible file sharing packaged maintained by the Samba development group. It provides interoperatability between UNIX and Microsoft Windows systems, permitting the sharing of files and printing services.

A problem in the package could make it possible to deny service to legitimate users. Due to the insecure creation of files in the /tmp file system, it is possible for a user to create a symbolic link to other files owned by privileged users in the system, such as system device files, and write data to the files.

This vulnerability makes it possible for a local user to deny service to other users of the system, and potentially gain elevated privileges. 

 * Samba Server r00t exploit
 * Scope: Local (this exploit) and posible remote if conditions are given.
 * Vuln:
 *      RedHat 5.1
 *      RedHat 5.2
 *      RedHat 6.0
 *      RedHat 6.1
 *      RedHat 6.2
 *      RedHat 7.0
 *      RedHat 7.1
 *      I don't know if other versions are vulnerable too.
 * Run this exploit and then take a look at your passwd file.
 * Run: ./samba-exp user
 * Author:      Gabriel Maggiotti
 * Email:
 * Webpage:

#include <stdio.h>
#include <string.h>

int main(int argc,char *argv[])
char inject1[]=
char inject2[]=
char inject3a[100]=
char inject3b[]=

        fprintf(stderr,"usage: %s <user>\n",*argv);
        return 1;
system(inject1, 0);
system(inject2, 0);
system(inject3a, 0);

return 0;


- 漏洞信息

Samba Printer Queue Query Symlink Arbitrary File Overwrite
Local Access Required Race Condition

- 漏洞描述

Unknown or Incomplete

- 时间线

2001-04-17 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete