Bug 134625 (CVE-2005-2851)

Summary: VUL-0: CVE-2005-2851: smb4k tmp file issue
Product: [Novell Products] SUSE Security Incidents Reporter: Ludwig Nussel <lnussel>
Component: IncidentsAssignee: E-mail List <kde-maintainers>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P5 - None CC: security-team
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: CVE-2005-2851: CVSS v2 Base Score: 2.1 (AV:L/AC:L/Au:N/C:P/I:N/A:N)
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ludwig Nussel 2005-11-21 09:05:20 UTC
We received the following report via full-disclosure.
The issue is public.

A program messing with sudo files? scary. Fortunately we didn't ship it so fixing STABLE at some time is sufficient.

Date: Fri, 18 Nov 2005 16:10:13 +0100
From: Sune Kloppenborg Jeppesen <jaervosz@gentoo.org>
To: gentoo-announce@gentoo.org
Cc: full-disclosure@lists.grok.org.uk, bugtraq@securityfocus.com,
	security-alerts@linuxsecurity.com
Subject: [Full-disclosure] [ GLSA 200511-15 ] Smb4k: Local unauthorized file
	access

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200511-15
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: Smb4k: Local unauthorized file access
      Date: November 18, 2005
      Bugs: #111089
        ID: 200511-15

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

A vulnerability has been identified that allows unauthorized access to
the contents of /etc/sudoers and /etc/super.tab files.

Background
==========

Smb4K is a SMB/CIFS share browser for KDE.

Affected packages
=================

    -------------------------------------------------------------------
     Package         /  Vulnerable  /                       Unaffected
    -------------------------------------------------------------------
  1  net-misc/smb4k       < 0.6.4                             >= 0.6.4

Description
===========

A vulnerability leading to unauthorized file access has been found. A
pre-existing symlink from /tmp/sudoers and /tmp/super.tab to a textfile
will cause Smb4k to write the contents of these files to the target of
the symlink, as Smb4k does not check for the existence of these files
before writing to them.

Impact
======

An attacker could acquire local privilege escalation by adding
username(s) to the list of sudoers.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All smb4k users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=net-misc/smb4k-0.6.4"

References
==========

  [ 1 ] CVE-2005-2851
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-2851
  [ 2 ] Smb4k Announcement
        http://smb4k.berlios.de/

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200511-15.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2005 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.0



_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
Comment 1 Dirk Mueller 2005-11-21 09:52:55 UTC
$ grep smb4k /work/export/versions_in_stable
smb4k                0.6.4      extended SMB and CIFS share browser for KDE

yes, the app is very scary - would be nice if the security team could look over it, currently no time. 
Comment 2 Thomas Biege 2009-10-13 20:37:12 UTC
CVE-2005-2851: CVSS v2 Base Score: 2.1 (AV:L/AC:L/Au:N/C:P/I:N/A:N)