Gentoo: Fetchmail Denial of Service and password disclosure
Posted by Benjamin D. Thomas   
Gentoo Fetchmail has been found to have numerous vulnerabilities allowing for Denial of Service and password disclosure.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200701-13
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: Fetchmail: Denial of Service and password disclosure
      Date: January 22, 2007
      Bugs: #160463
        ID: 200701-13

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
=3D=3D=3D=3D=3D=3D=3D=3D

Fetchmail has been found to have numerous vulnerabilities allowing for
Denial of Service and password disclosure.

Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Fetchmail is a remote mail retrieval and forwarding utility.

Affected packages
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

    -------------------------------------------------------------------
     Package             /  Vulnerable  /                   Unaffected
    -------------------------------------------------------------------
  1  net-mail/fetchmail       < 6.3.6                         >=3D 6.3.6

Description
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Neil Hoggarth has discovered that when delivering messages to a message
delivery agent by means of the "mda" option, Fetchmail passes a NULL
pointer to the ferror() and fflush() functions when refusing a message.
Isaac Wilcox has discovered numerous means of plain-text password
disclosure due to errors in secure connection establishment.

Impact
=3D=3D=3D=3D=3D=3D

An attacker could deliver a message via Fetchmail to a message delivery
agent configured to refuse the message, and crash the Fetchmail
process. SMTP and LMTP delivery modes are not affected by this
vulnerability. An attacker could also perform a Man-in-the-Middle
attack, and obtain plain-text authentication credentials of users
connecting to a Fetchmail process.

Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

There is no known workaround at this time.

Resolution
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

All fetchmail users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=3Dnet-mail/fetchmail-6.3.6"

References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

  [ 1 ] CVE-2006-5867
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCVE-2006-5867
  [ 2 ] CVE-2006-5974
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCVE-2006-5974

Availability
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200701-13.xml

Concerns?
=3D=3D=3D=3D=3D=3D=3D=3D=3D

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=3D=3D=3D=3D=3D=3D=3D

Copyright 2007 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5