Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 245316
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stefan Behte <craig@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 245316 depends on: Show dependency tree
Bug 245316 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-11-02 19:52 0000
CVE-2008-4870 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-4870):
  dovecot 1.0.7 in Red Hat Enterprise Linux (RHEL) 5, and possibly
  Fedora, uses world-readable permissions for dovecot.conf, which
  allows local users to obtain the ssl_key_password parameter value.

------- Comment #1 From Stefan Behte 2008-11-02 19:54:26 0000 -------
We also leave that file world-readable.

------- Comment #2 From Wolfram Schlich 2008-11-03 17:25:43 0000 -------
fixed in 1.1.6-r1. thanks!

------- Comment #3 From Stefan Behte 2008-11-03 18:22:00 0000 -------
Arches, please test and mark stable.

------- Comment #4 From Andreas Westin 2008-11-03 19:05:24 0000 -------
I've installed 1.1.6-r1 and my dovecot.conf was still world readable.

------- Comment #5 From Stefan Behte 2008-11-03 19:25:03 0000 -------
For me, it's ok:
ls -l /etc/dovecot/dovecot.conf
-rw------- 1 root root 46584 Nov  3 20:21 /etc/dovecot/dovecot.conf

------- Comment #6 From Markus Meier 2008-11-03 22:10:42 0000 -------
not fixed, too (was an upgrade from 1.1.6, probably portage doesn't do this
right?). besides dovecot.conf doesn't seem to be replaced.

 # ls -l /etc/dovecot/
total 60
-rw-r--r-- 1 root root   410 Nov  3 22:07 dovecot-db-example.conf
-rw------- 1 root root  4883 Nov  3 22:07 dovecot-ldap.conf
-rw-r--r-- 1 root root 46637 Nov  2 00:54 dovecot.conf

------- Comment #7 From Stefan Behte 2008-11-03 22:24:01 0000 -------
I did a fresh install.
Didn't portage show up with a new dovecot.conf? I've got no time for tests
right now.

------- Comment #8 From Tobias Klausmann 2008-11-08 20:52:35 0000 -------
Stable on alpha.

------- Comment #9 From Robert Buchholz 2008-11-27 16:50:57 0000 -------
wschlich, please advise on the status of this bug. Both Andreas and Markus
claim this is not fixed in upgrade-scenarios.

------- Comment #10 From Wolfram Schlich 2008-11-28 08:16:43 0000 -------
Sorry, I've added some pkg_preinst() magic in 1.1.7.

------- Comment #11 From Stefan Behte 2008-11-28 12:23:24 0000 -------
Confirmed to work, thanks Wolfram.
Arches: Please test and mark stable:
'=net-mail/dovecot-1.1.7'

------- Comment #12 From satmd 2008-11-28 12:35:07 0000 -------
This patch broke getmail injection through dovecot's local delivery agent
(/usr/libexec/dovecot/deliver), because it tries read dovecot.conf without root
permission.

Obvious fix for me: usr /usr/sbin/sendmail -G -i -t

But now there's a big BUT...

recent dovecot suggests that dovecot.conf is world-readable and one should put
ssl_key_password in an EXTRA file (permission 0600) and to include_try that.
Now we see one possible reasoning for that suggestion.

------- Comment #13 From Tobias Scherbaum 2008-11-29 16:27:45 0000 -------
(In reply to comment #12)
> This patch broke getmail injection through dovecot's local delivery agent
> (/usr/libexec/dovecot/deliver), because it tries read dovecot.conf without root
> permission.
> 
> Obvious fix for me: usr /usr/sbin/sendmail -G -i -t
> 
> But now there's a big BUT...
> 
> recent dovecot suggests that dovecot.conf is world-readable and one should put
> ssl_key_password in an EXTRA file (permission 0600) and to include_try that.
> Now we see one possible reasoning for that suggestion.
> 

@Wolfram: please advise ...

------- Comment #14 From Wolfram Schlich 2008-11-29 20:35:34 0000 -------
Committed 1.1.7-r1:
Removed the code to forcibly change dovecot.conf permissions to 0600
and added a big fat warning to pkg_postinst().
That's it from my side.

------- Comment #15 From Markus Meier 2008-11-30 16:27:32 0000 -------
amd64/x86 stable

------- Comment #16 From Tobias Scherbaum 2008-12-06 18:58:42 0000 -------
ppc stable

------- Comment #17 From Raúl Porcel 2008-12-08 16:37:13 0000 -------
alpha/sparc stable

------- Comment #18 From Tobias Heinlein 2008-12-15 13:55:13 0000 -------
GLSA 200812-16, thanks everyone, sorry about the delay.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug