Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107766 - net-proxy/ntlmaps: Wrong default permissions for sensitive conf file
Summary: net-proxy/ntlmaps: Wrong default permissions for sensitive conf file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Default Configs (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard: [noglsa] jaervosz
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-01 03:19 UTC by Thierry Carrez (RETIRED)
Modified: 2005-10-13 22:35 UTC (History)
2 users (show)

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


Attachments
Secure the permissions on the config file (ntlmaps-0.9.9.5.ebuild-secure-cfg.patch,361 bytes, patch)
2005-10-01 06:37 UTC, Tres 'RiverRat' Melton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Carrez (RETIRED) gentoo-dev 2005-10-01 03:19:25 UTC
From Debian Security Advisory DSA 830-1
CVE ID         : CAN-2005-2962

Drew Parsons noticed that the post-installation script of ntlmaps, an
NTLM authorisation proxy server, changes the permissions of the
configuration file to be world-readable.  It contains the user name
and password of the Windows NT system that ntlmaps connects to and,
hence, leaks them to lokal users.

On Gentoo :
-rw-r--r--  1 root root 8523 Oct  1 12:14 /etc/ntlmaps/server.cfg

Here we consider that it's up to the user to protect confidential information
with the right permissions, but it's a bad default permission for sure.
Comment 1 Tres 'RiverRat' Melton 2005-10-01 06:37:15 UTC
Created attachment 69631 [details, diff]
Secure the permissions on the config file
Comment 2 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-10-06 12:09:42 UTC
net-proxy please advise. 
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2005-10-06 13:33:02 UTC
the patch would be ok if the ntlmaps service wouldn't run as user nobody.
I'll see what I can do about that.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2005-10-06 14:43:49 UTC
fixed in 0.9.9.5-r1 and 0.9.9-r2. the later has been commited as x86.

now the ebuild creates ntlmaps user & group and run the service as ntlmaps.
also the new versions replace the permissions and group of the existing
/etc/ntlmaps/server.cfg, which I intend to keep it for awhile.
Comment 5 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-10-06 15:12:02 UTC
Thx Alin. 
 
Arches please test and mark stable. 
Comment 6 Fernando J. Pereda (RETIRED) gentoo-dev 2005-10-10 06:00:39 UTC
Stable on alpha

Cheers,
Ferdy
Comment 7 Bryan Østergaard (RETIRED) gentoo-dev 2005-10-10 18:21:47 UTC
ia64 stable.
Comment 8 Andrej Kacian (RETIRED) gentoo-dev 2005-10-11 06:56:44 UTC
Should 0.9.9.5-r1 go to stable as well? This bug is a bit unclear about that.
Comment 9 Thierry Carrez (RETIRED) gentoo-dev 2005-10-11 07:02:08 UTC
No, 0.9.9.5-r1 doesn't /need/ to go stable.
Comment 10 Andrej Kacian (RETIRED) gentoo-dev 2005-10-11 07:08:54 UTC
Why is x86@ still CCed then? Alin committed 0.9.9-r2 directly as stable on x86,
see comment #4.
Comment 11 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-10-13 22:35:42 UTC
Thx. All stable -> Closing without GLSA.