esmtpd.pem has wrong permissions

Bug #730253 reported by dusanv
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
courier (Debian)
Fix Released
Unknown
courier (Ubuntu)
Triaged
High
Unassigned

Bug Description

Binary package hint: courier-mta

After a fresh install of courier-mta-ssl 0.63.0-2.1ubuntu1 on Ubuntu 10.04.2 LTS, I found that /etc/courier/esmtpd.pem is world and group readable. As per Courier documentation (http://www.courier-mta.org/install.html), this file should be owned by the Courier effective uid and not group or world readable.

Changed in courier (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi dusanv, thanks for taking the time to file this bug report and help us make Ubuntu better.

Agreed that this file should be created without world read set.

I've forwarded the bug to Debian, as soon as I get a bug # I will post it here.

Marking Confirmed until that bug # arrives.

Changed in courier (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Clint Byrum (clint-fewbar) wrote : mkesmtpdcert.in: Incorrect permissions on esmtpd.pem

This stems from an issue reported in Ubuntu and Debian here:

https://launchpad.net/bugs/730253

http://bugs.debian.org/621042

With gnutls, the mkesmtpdcert script takes great pains to make sure
esmtpd.key has permissions of 0600, and the same for the .cert file.

But then it creates esmtpd.pem file like this:

cat esmtpd.key esmtpd.cert >esmtpd.pem

This gives it whatever the default umask of the system is, meaning
usually the file will be created wold readable.

The attached patch gives it 0600 before putting sensitive data into it.

Changed in courier (Debian):
status: Unknown → New
Changed in courier (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.