Users login

Create an account »

JOIN XATRIX

Users login

Home » Hacking News » OpenPKG SA-2003.021: samba remote root compromise

OpenPKG SA-2003.021: samba remote root compromise

by Nikola Strahija on March 21st, 2003 A buffer overrun has been found in all versions of Samba from 2.0.* to 2.2.7a inclusive. This allows a remote attacker to gain root privileges on a samba server.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

________________________________________________________________________

OpenPKG Security Advisory The OpenPKG Project
http://www.openpkg.org/security.html http://www.openpkg.org
[email protected] [email protected]
OpenPKG-SA-2003.021 18-Mar-2003
________________________________________________________________________

Package: samba
Vulnerability: remote root exploit / chown race condition
OpenPKG Specific: no

Affected Releases: Affected Packages: Corrected Packages:
OpenPKG CURRENT <= samba-2.2.7a-20030207 >= samba-2.2.8-20030316
OpenPKG 1.2 <= samba-2.2.7a-1.2.0 >= samba-2.2.7a-1.2.1
OpenPKG 1.1 <= samba-2.2.5-1.1.1 >= samba-2.2.5-1.1.2

Dependent Packages: none

Description:
Sebastian Krahmer, SuSE Security Team, [0] has alerted the Samba Team
to two serious vulnerabilities in all versions of Samba [1] up to and
including version 2.2.7a. We have backported the security relevant
pieces of the 2.2.8 vendor changes into releases used by OpenPKG.

If exploited correctly, it could lead to an anonymous user gaining
root access on a Samba serving system. All versions of Samba up to
and including Samba 2.2.7a are vulnerable. The Common Vulnerabilities
and Exposures (CVE) project assigned the id CAN-2003-0085 [2] to the
problem.

In addition he pointed out a chown(2) race condition which could
allow overwriting of critical system files if exploited. The
Common Vulnerabilities and Exposures (CVE) project assigned the id
CAN-2003-0086 [3] to the problem.

Please check whether you are affected by running "/bin/rpm -q
samba". If you have the "samba" package installed and its version is
affected (see above), we recommend that you immediately upgrade it
(see Solution). [4][5]

Solution:
Select the updated source RPM appropriate for your OpenPKG release
[6][7], fetch it from the OpenPKG FTP service [8][9] or a mirror
location, verify its integrity [10], build a corresponding binary
RPM from it [4] and update your OpenPKG installation by applying the
binary RPM [5]. For the current release OpenPKG 1.2, perform the
following operations to permanently fix the security problem (for
other releases adjust accordingly).

$ ftp ftp.openpkg.org
ftp> bin
ftp> cd release/1.2/UPD
ftp> get samba-2.2.7a-1.2.1.src.rpm
ftp> bye
$ /bin/rpm -v --checksig samba-2.2.7a-1.2.1.src.rpm
$ /bin/rpm --rebuild samba-2.2.7a-1.2.1.src.rpm
$ su -
# /bin/rpm -Fvh /RPM/PKG/samba-2.2.7a-1.2.1.*.rpm
________________________________________________________________________

References:
[0] http://www.suse.de/de/security/
[1] http://www.samba.org/
[2] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0085
[3] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0086
[4] http://www.openpkg.org/tutorial.html#regular-source
[5] http://www.openpkg.org/tutorial.html#regular-binary
[6] ftp://ftp.openpkg.org/release/1.1/UPD/samba-2.2.5-1.1.2.src.rpm
[7] ftp://ftp.openpkg.org/release/1.2/UPD/samba-2.2.7a-1.2.1.src.rpm
[8] ftp://ftp.openpkg.org/release/1.1/UPD/
[9] ftp://ftp.openpkg.org/release/1.2/UPD/
[10] http://www.openpkg.org/security.html#signature
________________________________________________________________________

For security reasons, this advisory was digitally signed with
the OpenPGP public key "OpenPKG " (ID 63C4CB9F)
of the OpenPKG project which you can find under the official URL
http://www.openpkg.org/openpkg.pgp or on http://keyserver.pgp.com/. To
check the integrity of this advisory, verify its digital signature by
using GnuPG (http://www.gnupg.org/). For instance, pipe this message to
the command "gpg --verify --keyserver keyserver.pgp.com".
________________________________________________________________________

-----BEGIN PGP SIGNATURE-----
Comment: OpenPKG

iD8DBQE+dz6GgHWT4GPEy58RAsiNAKC+2Z6xASbe/P3fsqe6MZsCQHlSOQCg4Ds7
AQDR5amxuodObmeEmincdpM=
=hgQX
-----END PGP SIGNATURE-----


Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.

Contact

Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »