[UNIX] Samba SAMR Change Password Command Injection Vulnerability



The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



Samba SAMR Change Password Command Injection Vulnerability
------------------------------------------------------------------------


SUMMARY

<http://samba.org/samba/ > Samba is "a Unix server application used to
implement Windows file sharing and domain controlling functionality. SAMR
is the named pipe used to access the SAM, security accounts manager,
database. This database stores login credentials on NT based systems".

Remote exploitation of a command injection vulnerability within Samba
Project's Samba could allow an attacker to execute arbitrary code with
nobody privileges.

DETAILS

Vulnerable Systems:
* Samba version 3.0.24.
* Previous versions of Samba release 3 may be vulnerable.
* Release version 2 and below did not have this feature.

The vulnerability exists within the code responsible for updating a user's
password in the SAM database. Unfiltered user input is passed to
"/bin/sh". This allows an attacker to execute arbitrary shell commands
with the privileges of the nobody user.

Successful exploitation of this vulnerability allows an attacker to run
arbitrary shell commands with the privileges of the nobody user.

An important mitigating factor is that this vulnerability occurs within a
non-default configuration of Samba. Specifically, the 'username map
script' option must be defined in the smb.conf file.

Valid credentials are not needed to exploit this vulnerability. In order
to successfully change a password, it is necessary to provide the original
password. However, the vulnerability can still be triggered regardless of
whether or not the change password attempt fails.

Workaround:
Removing the 'username map script' option from the smb.conf file will
prevent this vulnerability from being triggered.

CVE Information:
<http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2447>
CVE-2007-2447

Disclosure Timeline:
* 05/07/2007 Initial vendor notification
* 05/07/2007 Initial vendor response
* 05/14/2007 Coordinated public disclosure


ADDITIONAL INFORMATION

The information has been provided by iDefense.
The original article can be found at:

<http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=534>
http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=534



========================================


This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx


====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • [UNIX] Trend Micro VirusWall Buffer Overflow in VSAPI Library
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... buffer overflow vulnerability in VSAPI library allows arbitrary code ... is called "vscan" which is set suid root by default. ... permissions and thus granted all local users the privilege to execute the ...
    (Securiteam)
  • [UNIX] SCO Multiple Local Buffer Overflow
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Local exploitation of a buffer overflow vulnerability in the ppp binary, ... allows attackers to gain root privileges. ...
    (Securiteam)
  • [NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WordPad is "a word processing application that uses the MFC rich edit ... Remote exploitation of a buffer overflow vulnerability in Microsoft ... Microsoft Word format files into the Rich Text Format natively handled by ...
    (Securiteam)
  • [UNIX] Tikiwiki Command Injection and Arbitrary File Exposure Vulnerabilities
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Two security vulnerabilities have been recently discovered in Tikiwiki, ... Remote exploitation of an input validation vulnerability in Tikiwiki ... allows attackers to gain access to arbitrary files on the vulnerable ...
    (Securiteam)
  • [NT] Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, Collaboration Suite SMTP Format
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, ... Collaboration Suite SMTP Format String) ... Remote exploitation of a denial of service vulnerability in Ipswitch ...
    (Securiteam)