Vulnerabilities > CVE-2009-0022 - Improper Input Validation vulnerability in Samba
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Samba 3.2.0 through 3.2.6, when registry shares are enabled, allows remote authenticated users to access the root filesystem via a crafted connection request that specifies a blank share name.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 7 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Server Side Include (SSI) Injection An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
- Cross Zone Scripting An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
- Cross Site Scripting through Log Files An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
- Command Line Execution through SQL Injection An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2009-0268.NASL description Security fix for CVE-2009-0022 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 35395 published 2009-01-16 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/35395 title Fedora 9 : samba-3.2.7-0.23.fc9 (2009-0268) NASL family Misc. NASL id SAMBA_3_2_7.NASL description According to its banner, the version of the Samba server on the remote host is between 3.2.0 and 3.2.6 inclusive. Such versions reportedly allow an authenticated, remote user to gain access to the root filesystem, subject to his or her privileges, by making a request for a share called last seen 2020-06-01 modified 2020-06-02 plugin id 35298 published 2009-01-06 reporter This script is Copyright (C) 2009-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/35298 title Samba 3.2.0 - 3.2.6 Unauthorized Access NASL family SuSE Local Security Checks NASL id SUSE_11_1_CIFS-MOUNT-090108.NASL description This update fixes a bug that allowed the client to retrieve arbitrary memory content from the server process. (CVE-2008-4314) Additionally another bug was fixed that affects environments that enabled registry shares by setting last seen 2020-06-01 modified 2020-06-02 plugin id 40197 published 2009-07-21 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/40197 title openSUSE Security Update : cifs-mount (cifs-mount-410) NASL family Fedora Local Security Checks NASL id FEDORA_2009-0160.NASL description Security fix for CVE-2009-0022 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 37912 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/37912 title Fedora 10 : samba-3.2.7-0.25.fc10 (2009-0160) NASL family Slackware Local Security Checks NASL id SLACKWARE_SSA_2009-005-01.NASL description New samba packages are available for Slackware 12.2 and -current to fix a security issue. last seen 2020-06-01 modified 2020-06-02 plugin id 35292 published 2009-01-06 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/35292 title Slackware 12.2 / current : samba (SSA:2009-005-01) NASL family SuSE Local Security Checks NASL id SUSE_11_0_CIFS-MOUNT-090108.NASL description This update fixes a bug that allowed the client to retrieve arbitrary memory content from the server process. (CVE-2008-4314) Additionally another bug was fixed that affects environments that enabled registry shares by setting last seen 2020-06-01 modified 2020-06-02 plugin id 39927 published 2009-07-21 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/39927 title openSUSE Security Update : cifs-mount (cifs-mount-406) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2009-042.NASL description Samba 3.2.0 through 3.2.6, when registry shares are enabled, allows remote authenticated users to access the root filesystem via a crafted connection request that specifies a blank share name (CVE-2009-0022). This update provides samba 3.2.7 to address this issue. last seen 2020-06-01 modified 2020-06-02 plugin id 37415 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/37415 title Mandriva Linux Security Advisory : samba (MDVSA-2009:042) NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-702-1.NASL description Gunter Hockel discovered that Samba with registry shares enabled did not properly validate share names. An authenticated user could gain access to the root filesystem by using an older version of smbclient and specifying an empty string as a share name. This is only an issue if registry shares are enabled on the server by setting last seen 2020-06-01 modified 2020-06-02 plugin id 37362 published 2009-04-23 reporter Ubuntu Security Notice (C) 2009-2019 Canonical, Inc. / NASL script (C) 2009-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/37362 title Ubuntu 8.10 : samba vulnerability (USN-702-1)
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 33118 CVE(CAN) ID: CVE-2009-0022 Samba是一套实现SMB(Server Messages Block)协议、跨平台进行文件共享和打印共享服务的程序。 启用了注册表共享的Samba没有正确地验证共享名,通过认证的攻击者可以通过使用较老版本的smbclient并指定空字符串为共享名(如smbclient //server/ -U user%pass)来访问root文件系统。 Samba 3.2.0 - 3.2.6 临时解决方法: * 通过registry shares = no禁用注册表共享。 厂商补丁: Samba ----- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=http://www.samba.org/samba/security/ target=_blank rel=external nofollow>http://www.samba.org/samba/security/</a> |
id | SSV:4626 |
last seen | 2017-11-19 |
modified | 2009-01-06 |
published | 2009-01-06 |
reporter | Root |
title | Samba注册表共享名非授权访问漏洞 |
Statements
contributor | Tomas Hoger |
lastmodified | 2009-01-07 |
organization | Red Hat |
statement | Not vulnerable. This issue did not affect the versions of samba as shipped with Red Hat Enterprise Linux 2.1, 3, 4, or 5. |
References
- http://master.samba.org/samba/ftp/patches/security/samba-3.2.6-CVE-2009-0022.patch
- http://master.samba.org/samba/ftp/patches/security/samba-3.2.6-CVE-2009-0022.patch
- http://osvdb.org/51152
- http://osvdb.org/51152
- http://secunia.com/advisories/33379
- http://secunia.com/advisories/33379
- http://secunia.com/advisories/33392
- http://secunia.com/advisories/33392
- http://secunia.com/advisories/33431
- http://secunia.com/advisories/33431
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:042
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:042
- http://www.samba.org/samba/security/CVE-2009-0022.html
- http://www.samba.org/samba/security/CVE-2009-0022.html
- http://www.securityfocus.com/bid/33118
- http://www.securityfocus.com/bid/33118
- http://www.securitytracker.com/id?1021513
- http://www.securitytracker.com/id?1021513
- http://www.vupen.com/english/advisories/2009/0017
- http://www.vupen.com/english/advisories/2009/0017
- https://exchange.xforce.ibmcloud.com/vulnerabilities/47733
- https://exchange.xforce.ibmcloud.com/vulnerabilities/47733
- https://usn.ubuntu.com/702-1/
- https://usn.ubuntu.com/702-1/
- https://www.redhat.com/archives/fedora-package-announce/2009-January/msg00309.html
- https://www.redhat.com/archives/fedora-package-announce/2009-January/msg00309.html