<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200511-06">
  <title>fetchmail: Password exposure in fetchmailconf</title>
  <synopsis>
    fetchmailconf fails to properly handle file permissions, temporarily
    exposing sensitive information to other local users.
  </synopsis>
  <product type="ebuild">fetchmail</product>
  <announced>2005-11-06</announced>
  <revised count="01">2005-11-06</revised>
  <bug>110366</bug>
  <access>local</access>
  <affected>
    <package name="net-mail/fetchmail" auto="yes" arch="*">
      <unaffected range="ge">6.2.5.2-r1</unaffected>
      <vulnerable range="lt">6.2.5.2-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    fetchmail is a utility that retrieves and forwards mail from
    remote systems using IMAP, POP, and other protocols. It ships with
    fetchmailconf, a graphical utility used to create configuration files.
    </p>
  </background>
  <description>
    <p>
    Thomas Wolff discovered that fetchmailconf opens the configuration
    file with default permissions, writes the configuration to it, and only
    then restricts read permissions to the owner.
    </p>
  </description>
  <impact type="normal">
    <p>
    A local attacker could exploit the race condition to retrieve
    sensitive information like IMAP/POP passwords.
    </p>
  </impact>
  <workaround>
    <p>
    Run "umask 077" to temporarily strengthen default permissions,
    then run "fetchmailconf" from the same shell.
    </p>
  </workaround>
  <resolution>
    <p>
    All fetchmail users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=net-mail/fetchmail-6.2.5.2-r1"</code>
  </resolution>
  <references>
    <uri link="http://fetchmail.berlios.de/fetchmail-SA-2005-02.txt">Fetchmail Security Advisory</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-3088">CVE-2005-3088</uri>
  </references>
  <metadata tag="submitter" timestamp="2005-11-04T12:31:43Z">
    koon
  </metadata>
  <metadata tag="bugReady" timestamp="2005-11-04T12:31:54Z">
    koon
  </metadata>
</glsa>
