Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127924 - net-fs/samba: account passwords in debug logs (CVE-2006-1059)
Summary: net-fs/samba: account passwords in debug logs (CVE-2006-1059)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Security
URL: http://us3.samba.org/samba/security/C...
Whiteboard: B3 [noglsa] DerCorny
Keywords:
: 128112 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-28 14:47 UTC by Stefan Cornelius (RETIRED)
Modified: 2007-06-24 23:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for CVE-2006-1059 (CVE-2006-1059.patch,637 bytes, patch)
2006-03-28 14:53 UTC, Stefan Cornelius (RETIRED)
no flags Details | Diff
samba-3.0.21c-r1 ebuild (samba-3.0.21c-r1.ebuild,8.49 KB, text/plain)
2006-03-30 05:20 UTC, Christian Andreetta (RETIRED)
no flags Details
samba-3.0.22 ebuild (samba-3.0.22.ebuild,8.41 KB, text/plain)
2006-03-30 07:46 UTC, Christian Andreetta (RETIRED)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Cornelius (RETIRED) gentoo-dev 2006-03-28 14:47:36 UTC
The machine trust account password is the secret shared
between a domain controller and a specific member server.
Access to the member server machine credentials may allow
an attacker to access additional information regarding
user accounts in the domain.

The winbindd daemon included in Samba 3.0.21 and subsequent
patch releases (3.0.21a-c) writes the clear text of server's
machine credentials to its log file at level 5.  The winbindd
log files are world readable by default and often log files
are requested on open mailing lists as tools used to debug
server misconfigurations.

This affects servers configured to use domain or ads security
and possibly Samba domain controllers as well (if configured
to use winbindd).

 An unpatched server may
be protected by ensuring that non-administrative users are
unable to read any winbindd log files generated at level 5
or greater.
Comment 1 Stefan Cornelius (RETIRED) gentoo-dev 2006-03-28 14:53:48 UTC
Created attachment 83337 [details, diff]
patch for CVE-2006-1059
Comment 2 Stefan Cornelius (RETIRED) gentoo-dev 2006-03-28 14:55:24 UTC
satya, please provide new ebuilds with the patch above and attach them to this bug. Do not commit anything yet, thanks.
Comment 3 Christian Andreetta (RETIRED) gentoo-dev 2006-03-30 02:46:10 UTC
I'm thinking about the question: "for samba (upstream) devs, is this a bug or a feature?" (seriously, :-) ).
[brainstorming on]
Maybe the cleartext pwd is a desidered debug string. Infact, I remeber samba manual states that degug>=3 is for developers or serious bug analysis.
Could we restrict the permissions on the log dir instead?
I hope that and admin posting a log file would inspect it before, to strip every sensible data.
[brainstorming off]
Just my 2 cents.
Comment 4 Stefan Cornelius (RETIRED) gentoo-dev 2006-03-30 03:03:45 UTC
satya, it was the samba team itself that warned us, so I don't think that they consider it as feature.
Comment 5 Christian Andreetta (RETIRED) gentoo-dev 2006-03-30 05:20:43 UTC
Created attachment 83426 [details]
samba-3.0.21c-r1 ebuild

Ops... I didn't know the source of the patch.
Although this ebuild (tested) is a modified version of 3.0.21c, it could be used without changes for 3.0.21{a,b} also.
Comment 6 Christian Andreetta (RETIRED) gentoo-dev 2006-03-30 07:46:37 UTC
Created attachment 83435 [details]
samba-3.0.22 ebuild

Samba 3.0.22 has just come out: it ships with the security patch, so it is a 3.0.21c with the CAN patch (from the upstream changelog, nothing else has been added).
Compiled and tested (on x86). Since samba-3.0.21b was marked stable for nearly all archs, a new turn of arch tests is required for the bump.
Comment 7 Stefan Cornelius (RETIRED) gentoo-dev 2006-03-30 08:10:55 UTC
ok, this is public now. Please commit the ebuild so that I can call arches to stable it. thanks
Comment 8 Eduardo Tongson 2006-03-30 08:18:38 UTC
*** Bug 128112 has been marked as a duplicate of this bug. ***
Comment 9 Christian Andreetta (RETIRED) gentoo-dev 2006-03-31 00:26:20 UTC
samba 3.0.21{b,c}-r1 epatch the sources, while samba-3.0.22 ships with the patch included. All of them are in portage now.
The latest stable is 3.0.21b, so the arch tests could be called for either 3.0.21b-r1 or 3.0.22 (they are equivalent in functionalities).
Archs affected: amd64 arm hppa ia64 ppc ppc64 s390 sh x86 (mips, sparc and alpha are a few versions behind)
Comment 10 Stefan Cornelius (RETIRED) gentoo-dev 2006-03-31 08:04:46 UTC
arches please test and mark at least 3.0.21c-r1 (the one patched with epatch) stable. (3.0.22 is the new upstream release, equal functionality.) thank you
Comment 11 Markus Rothe (RETIRED) gentoo-dev 2006-04-01 09:21:28 UTC
stable on ppc64
Comment 12 Tobias Scherbaum (RETIRED) gentoo-dev 2006-04-03 10:45:13 UTC
3.0.22 marked ppc stable, also removing hppa from CC
Comment 13 Patrick McLean gentoo-dev 2006-04-05 10:00:36 UTC
stable on amd64
Comment 14 Markus Ullmann (RETIRED) gentoo-dev 2006-04-05 14:57:10 UTC
Stable on arm
Comment 15 Mark Loeser (RETIRED) gentoo-dev 2006-04-08 12:17:13 UTC
x86 done
Comment 16 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2006-04-08 12:29:59 UTC
This one is ready for GLSA decision. I tend to vote no.
Comment 17 Thierry Carrez (RETIRED) gentoo-dev 2006-04-09 03:47:05 UTC
I tend to vote no too.
Comment 18 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2006-04-09 09:48:44 UTC
it is only for debug level 5 : i vote No.
Comment 19 Stefan Cornelius (RETIRED) gentoo-dev 2006-04-09 09:57:25 UTC
voting no and closing, as always: feel free to reopen if you disagree.